Lazily load broken image icons.
Categories
(Core :: Layout: Images, Video, and HTML Frames, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox113 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(3 files)
| Assignee | ||
Comment 1•2 years ago
|
||
With the patches of bug 1815229, these errors appear:
browser/base/content/test/performance/browser_startup_images.js | Loaded image resource://gre-resources/loading-image.png should have been shown
Looks like a legit bug!
| Assignee | ||
Comment 2•2 years ago
|
||
- Use static prefs.
- Move IconLoad to the cpp file since it's only used in one translation
unit.
This is in preparation to make the image loads lazy.
| Assignee | ||
Comment 3•2 years ago
|
||
This pref has been false since forever, completely untested, and I see
no references to it anywhere. I'm pretty sure having a loading image
placeholder wouldn't be web compatible, particularly in the current days
with all the lazy-loading shenanigans etc.
I propose just removing this code, and simplifying surrounding code for
clarity.
Depends on D170157
| Assignee | ||
Comment 4•2 years ago
|
||
With the patches of bug 1815229, these errors appear:
browser/base/content/test/performance/browser_startup_images.js | Loaded image resource://gre-resources/loading-image.png should have been shown
It's a real issue, where we eagerly load the broken image icon and so on
even though we don't use them.
This fixes it by lazily-loading the icon once, only when needed.
Depends on D170158
| Assignee | ||
Updated•2 years ago
|
Comment 7•2 years ago
|
||
| bugherder | ||
Comment 10•2 years ago
|
||
| Assignee | ||
Updated•2 years ago
|
Comment 11•2 years ago
|
||
Comment 12•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/735440c1b416
https://hg.mozilla.org/mozilla-central/rev/a18068f374df
Description
•