Product images are not displayed until scroll to bottom and back
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: alice0775, Unassigned)
References
(Regression, )
Details
(Keywords: nightly-community, regression)
Steps to reproduce:
- Clear all cache
- open https://www.buffalo.jp/product/category/power.html
- Click
取扱商品
link at menu
---- No product images are displayed --- BUG
Optionally
4. Scroll to bottom and back
---- The product images are displayed
Actual results:
Product images are not displayed until scroll to bottom and back.
Screencast: https://youtu.be/WL_RDz0amK0
Expected results:
The product images are displayed without scroll back
Reporter | ||
Comment 2•2 years ago
|
||
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=a2e0699b6cb88cd88f1b0be00be031449a2d62fd&tochange=86d3343d25ce81ecb6715017acefe51f1e881634
Comment 3•2 years ago
|
||
:hiro, since you are the author of the regressor, bug 1613611, could you take a look? Also, could you set the severity field?
For more information, please visit auto_nag documentation.
Reporter | ||
Comment 4•2 years ago
|
||
Workaround
Set dom.image-lazy-loading.root-margin.bottom.percentage to true.
or
Set dom.image-lazy-loading.enabled to true.
Updated•2 years ago
|
Comment 5•2 years ago
|
||
A relevant part code of this issue is here in our speculative loading. When we parse the img element there's loading=lazy attribute, so we skip loading the img src speculatively. After that, when we bind the img element to DOM tree, there has already been no loading=lazy attribute, thus we trigger loading the img src at here in HTMLImageElement::LoadSelectedImage. (and I do see the img element has been loaded in devtools)
Honestly I don't quite understand why the image doesn't appear there. This issue is more or less related to our speculative loading feature.
If DOM team thinks this is high priority severe bug, I will take more time on this. (CCing Henri, he might have some insight on this)
Updated•2 years ago
|
Updated•2 years ago
|
Comment 6•2 years ago
|
||
Omitting a speculative load should never prevent an image from being loaded later, and it's not immediately obvious to me why the behavior here differs from script-inserted images that the speculative loader obviously has never seen.
Of the people who are active these days, blame suggests that Emilio and Edgar know the relevant image loading code better than I do.
Comment 7•2 years ago
|
||
I don't think this should be considered a speculative parsing bug either.
However I can't reproduce this on Linux at least, tho... Alice, has the site been fixed or can you still reproduce somehow? Is there any prefs needed to repro this that aren't default? e.g. in comment 4 you say "dom.image-lazy-loading.enabled to true" (which should be the default). I assume that's a typo and you meant false, but if that's not the case the site might depend on lazy loading being enabled?
Reporter | ||
Comment 8•2 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #7)
However I can't reproduce this on Linux at least, tho... Alice, has the site been fixed or can you still reproduce somehow?
The issue is no longer reproduced.
Updated•2 years ago
|
Description
•