Closed
Bug 902559
Opened 13 years ago
Closed 9 years ago
Stop using data: URIs in Gaia
Categories
(Firefox OS Graveyard :: Gaia, defect)
Firefox OS Graveyard
Gaia
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: justin.lebar+bug, Unassigned)
References
Details
(Keywords: meta, Whiteboard: [MemShrink:P2])
We should outlaw data: URIs in Gaia.
data: URIs take 2.7x as much memory as a blob to store the same information. We also are known to make copies of URIs in the platform -- e.g. bug 897741.
Last time I checked, we stored the Gaia wallpaper and ringtone as data URIs. There are probably other ones, too.
The first step for someone investigating this bug would be to gather a memory report, using the tools/get_about_memory.py script in the root B2G repository. Any big data URIs will show up in there.
Comment 1•13 years ago
|
||
FWIW - I know app customizations make heavy use of data URIs to represent each icon for the app. It's probably worthwhile digging into the customization workflow here as a result to see where data URIs are being used.
| Reporter | ||
Comment 2•13 years ago
|
||
Good call.
After we fix the customization flow, perhaps the thing to do is, after we fix Gaia, to set a CSP which disallows data URIs (I think this is possible). This will break everyone who has a bad customization.
Updated•13 years ago
|
Whiteboard: [MemShrink] → [MemShrink:P2]
Depends on: 956215
Depends on: 956192
Comment 3•9 years ago
|
||
Closing out old Firefox OS specific memshrink bugs.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•