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

Categories

(Firefox :: Page Info Window, defect)

defect

Tracking

()

People

(Reporter: mconley, Unassigned)

Details

STR:

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 https://people.mozilla.org/~mconley2/moz/bug-1180991/index.html
3) Open Page Info for the page, _without_ hovering the link

ER:

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

AR:

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.