Closed
Bug 956192
Opened 11 years ago
Closed 11 years ago
Replace data: uris in shared/
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: fabrice, Unassigned)
References
Details
(Whiteboard: [MemShrink])
Attachments
(1 file)
data: uris cause memory usage issues, so we must avoid them. Currently they are found in:
shared/js/opensearch.js:
shared/style/confirm/content_details.html:
shared/style/confirm/content.html:
shared/style/input_areas/index.html:
shared/style_unstable/lists/index.html:
shared/style_unstable/tabs/index.html:
shared/style_unstable/toolbars/index.html:
shared/style_unstable/progress_activity/index.html:
shared/style_unstable/drawer/index.html:
shared/style_unstable/seekbars/index.html
Several of these are used by the email and clock apps so that is already a real issue.
Blocks: 902559
Updated•11 years ago
|
Whiteboard: [MemShrink]
Comment 2•11 years ago
|
||
Hey Fabrice,
the uris in to "shared/style/" and "shared/style_unstable/" are only for reference/demo for the [BB] we can change them with real images if needed (just ping me if I can help with this).
the uris in to "shared/js/opensearch.js" I don't have idea who own them.
Hope this helps :)
Flags: needinfo?(pivanov)
| Reporter | ||
Comment 3•11 years ago
|
||
(In reply to Pavel Ivanov [:ivanovpavel] from comment #2)
> Hey Fabrice,
>
> the uris in to "shared/style/" and "shared/style_unstable/" are only for
> reference/demo for the [BB] we can change them with real images if needed
> (just ping me if I can help with this).
Well, the email and clock apps are importing these shared files. Can you move the images into their own files?
> the uris in to "shared/js/opensearch.js" I don't have idea who own them.
ok. kgrandon, do we still use this file?
Flags: needinfo?(kgrandon)
Comment 4•11 years ago
|
||
(In reply to Fabrice Desré [:fabrice] from comment #3)
> ok. kgrandon, do we still use this file?
The file is no longer used. I have removed it: https://github.com/mozilla-b2g/gaia/commit/fc6080c035c99c1483da693265eac8755e1d8255
Flags: needinfo?(kgrandon)
Comment 5•11 years ago
|
||
Attachment #8355901 -
Flags: review?(fabrice)
Comment 6•11 years ago
|
||
(In reply to Fabrice Desré [:fabrice] from comment #0)
> data: uris cause memory usage issues, so we must avoid them. Currently they
> are found in:
>
> shared/js/opensearch.js:
> shared/style/confirm/content_details.html:
> shared/style/confirm/content.html:
> shared/style/input_areas/index.html:
> shared/style_unstable/lists/index.html:
> shared/style_unstable/tabs/index.html:
> shared/style_unstable/toolbars/index.html:
> shared/style_unstable/progress_activity/index.html:
> shared/style_unstable/drawer/index.html:
> shared/style_unstable/seekbars/index.html
>
> Several of these are used by the email and clock apps so that is already a
> real issue.
Just out of curiosity, do you have figures on the impact ?
| Reporter | ||
Comment 7•11 years ago
|
||
Comment on attachment 8355901 [details] [review]
patch for Gaia/master
I'd like a gaia reviewer to look at that instead of me!
Attachment #8355901 -
Flags: review?(fabrice)
| Reporter | ||
Comment 8•11 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #6)
>
> Just out of curiosity, do you have figures on the impact ?
In general, we pay the price of the base64 encoding (33% overhead) and the fact that JS strings use 16bits characters (100% overhead). See bug 902559 and dependents for gory details on how that already caused us trouble.
Comment 9•11 years ago
|
||
Comment on attachment 8355901 [details] [review]
patch for Gaia/master
Hey Kevin,
can you take a look?
Attachment #8355901 -
Flags: review?(kgrandon)
Comment 10•11 years ago
|
||
The referenced files in Comment 0 are actually for demo purposes, and not part of the build. If we have a hard requirement of having no references, then we should remove them - but if not I would be ok with leaving them.
The only two places I could find within the system that is actively using them might be here:
https://github.com/mozilla-b2g/gaia/blob/master/apps/system/style/accessibility/accessibility.css#L2
https://github.com/mozilla-b2g/gaia/blob/master/apps/system/style/system/system.css#L223
Speaking of, that line in system.css is a duplicate, and I will file a bug to fix it.
Flags: needinfo?(fabrice)
| Reporter | ||
Comment 11•11 years ago
|
||
Kevin, the email app is using them, so the "demo purposes" kind of morphed into "let's use them!".
email/shared/style_unstable/lists/index.html:43:
email/shared/style_unstable/lists/index.html:49:
email/shared/style_unstable/lists/index.html:53:
email/shared/style_unstable/tabs/index.html:38:
email/shared/style_unstable/tabs/index.html:42:
email/shared/style_unstable/tabs/index.html:46:
email/shared/style_unstable/toolbars/index.html:26:
email/shared/style_unstable/toolbars/index.html:30:
email/shared/style_unstable/toolbars/index.html:34:
email/shared/style_unstable/toolbars/index.html:39:
email/shared/style_unstable/toolbars/index.html:43:
email/shared/style_unstable/progress_activity/index.html:47:
email/shared/style_unstable/drawer/index.html:53:
email/shared/style_unstable/seekbars/index.html:45:
email/shared/style/confirm/content.html:34:
email/shared/style/input_areas/index.html:32:
Flags: needinfo?(fabrice)
Comment 12•11 years ago
|
||
Fabrice - I am fairly certain that these files are simply a relic of the email build system, which basically copies the entire shared folder into the email application.
All of the email content should be located in: apps/email/js/cards/
I am also quite confused by the pull request in this bug - it doesn't seem to change any data URIs. Anyway - I haven't found evidence of usage of data URIs in production code, though it does appear in grep results. I'm going to close this for now as WONTFIX (those are just demo pages), but if you think this is wrong, please reopen.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Updated•11 years ago
|
Attachment #8355901 -
Flags: review?(kgrandon)
You need to log in
before you can comment on or make changes to this bug.
Description
•