Open Bug 1326639 Opened 7 years ago Updated 2 years ago

Page info -> media - it's impossible to resize block with media elements if no element is selected

Categories

(Firefox :: Page Info Window, defect)

defect

Tracking

()

People

(Reporter: arni2033, Unassigned)

Details

>>>
STR_1:
1. Open url [1]
2. Right-click the image
3. Click "View Image Info"
4. In the "Page Info" window opened in Step 3, resize the block containing media elements
  (by dragging resizer to the bottom)

AR:  Button "help" deforms a bit, and that's all
ER:  The block should be resized in a normal way (see Str 2)

> [1] data:text/html,<img src="https://bugzilla.mozilla.org/skins/contrib/Mozilla/tabzilla.png" oncontextmenu="setTimeout(`document.querySelector('img').removeAttribute('src')`,0)"><img src="https://bugzilla.mozilla.org/skins/contrib/Mozilla/tabzilla.png" hidden>


STR_2:  (reference of good behavior)
1. Open url [1]
2. Right-click outside the image, click "View Page Info"
3. Click "Media"
4. In the "Page Info" window opened in Step 2, resize the block containing media elements
  (by dragging resizer to the bottom)

AR:  The height of said block increases as I move mouse to the bottom of the screen, just as expected.


Note:  I encountered this on several sites that change displayed ads/images in similar manner.
No longer blocks: 1277113
Component: Untriaged → Page Info Window
The problem here is that by default we select the first row in the media tab, but we skip this behavior when Page Info was opened from the "View Image Info" context menu item (ie. when gImageElement isn't null).

If the selectImage() function doesn't find an element matching gImageElement, then nothing gets selected at all. We should select the first element at the end of that function as a fallback.

By the way, it's possible to have no selection at all, in which case the bottom part of the media tab is hidden (try using the ctrl key to deselect the last selected item).
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.