Closed Bug 902559 Opened 13 years ago Closed 9 years ago

Stop using data: URIs in Gaia

Categories

(Firefox OS Graveyard :: Gaia, defect)

defect
Not set
normal

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.
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.
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.
Depends on: 806374
Depends on: 889902
Whiteboard: [MemShrink] → [MemShrink:P2]
Depends on: 958433
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.