Let GeckoView be used to decode SVG images
Categories
(GeckoView :: General, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: tigeroakes, Unassigned)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0
Steps to reproduce:
We'd like to be able to decode SVG favicons in Android Components/Fenix
Actual results:
Currently we cannot support SVG. This causes some compat issues as sites are moving to only SVG icons now that its support in Chrome and Firefox desktop. As an example twitter had a mask icon in its list: abs.twimg.com/responsive-web/web/icon-svg.9e211f626ec9d2812.svg
AC issue: https://github.com/mozilla-mobile/android-components/issues/2081
Expected results:
GeckoView provides some API so that embedders can use it to render an SVG. It looks like the ImageDecoder class is exactly what we want, but its currently not public.
Reporter | ||
Comment 1•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Backed out for toolchains failures on ImageDecoderTest.kt
backout: https://hg.mozilla.org/integration/autoland/rev/d4c6cd2e13bb057eb4d5f8c579f440936bf17241
failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=309816104&repo=autoland&lineNumber=1074
[task 2020-07-15T04:35:13.261Z] 2:34.68 > Task :geckoview:compileWithGeckoBinariesDebugAndroidTestKotlin
[task 2020-07-15T04:35:13.261Z] 2:34.68 e: /builds/worker/workspace/build/src/mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/ImageDecoderTest.kt: (32, 9): Unresolved reference: ImageDecoder
[task 2020-07-15T04:35:13.261Z] 2:34.68 /builds/worker/workspace/build/src/mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/ImageDecoderTest.kt:32:9: error: Unresolved reference: ImageDecoder
[task 2020-07-15T04:35:13.261Z] 2:34.68 e: /builds/worker/workspace/build/src/mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/ImageDecoderTest.kt: (40, 9): Unresolved reference: ImageDecoder
Comment 4•3 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:tigeroakes, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Comment 5•3 years ago
|
||
Clear needinfos that are pending on inactive users.
Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE
.
For more information, please visit auto_nag documentation.
Description
•