Open Bug 1215589 Opened 9 years ago Updated 2 years ago

Background images not initially displayed in content do not appear in the media tab the first time


(Firefox :: Page Info Window, defect)





(Reporter: mconley, Unassigned)



1) Start the browser (it's necessary to restart the browser between runs of these STR, since the HTTP cache will prevent you from reproducing it a second time in a row).
2) Visit
3) Open Page Info for the page, _without_ hovering the link


The second entry in the Media tab should show an image.


The second entry in the Media tab is blank until you choose the first item again and switch back.

I suspect this is because the second image is a background image that is not displayed, so hasn't been loaded. When the page info gunk in content.js starts to analyze the images, it kicks off a load of the image and then immediately checks for the natural dimensions even though the image hasn't been loaded yet.

We should probably refactor the page info stuff in content.js to be more asynchronous, and to wait for the images to be loaded before sending the information up to the parent.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.