Closed Bug 377364 Opened 17 years ago Closed 17 years ago

Page Info: Media tab should be consistent with the the Image Properties in the Element Properties window.

Categories

(Firefox :: Page Info Window, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(2 files)

Page Info should be consistent with the element properties window on the way it displays the type of an image. See bug 344660.
And "Address" should be "Location", as in the Element Properties. I'm not going to file a bug for that, maybe you can fix it here. On the other hand, I could imagine that using the same dtd for both cases is the right thing to do, which would be worth a separate bug.
We also have:

  Page Info / Media tab       | Element Properties / Image Properties
 ------------------------------------------------------------------------
  Size                        | Size of File
                              |
  Alternate Text              | Alternate text
                              |
  Specified Dimensions: N x N |
  Actual Dimensions: N x N    | Image Dimensions: N x N (scaled to N x N)

And the order is different: for example in Page Info / Media, "Alternate Text" is right under "Address", but it is the last line of the Image Properties in the Element Properties window.
Summary: Page Info: Media tab. The type of images should be displayed like in the image properties window. → Page Info: Media tab should be consistent with the the Image Properties in the Element Properties window.
We also have a compactness issue in the bottom part of the Media tab of Page Info. The number of rows can vary between 3 and 9.
Whiteboard: [needs patch]
Attached patch patch v1Splinter Review
I focused more on the compactness issue than on being very consistent with the Element Properties window.

Copied from the Element Properties window:
 * The specified dimensions and actual dimensions (when different) are on the same row,
 * When the size is unknown, display "Unknown (not cached)" and get rid of the "Cache Source" row,
 * When the MIME type is image/xxx, display it as XXX Image (and display the number of frames for animated pictures).

As we are not trying to provide information on the DOM element of the img tag, but on the picture, the difference between "Title" and "Alternate Text" is irrelevant.  In the previous version of Page Info, these two rows when both set nearly always displayed the same value.  They are now merged into a single "Associated Text" row.  I know we will probably hear some screaming here but I think it's the right thing to do.

The row "Type" is now always displayed. When we can't get the MIME type, we fall back to the value of the "Type" column of the treeview.

A min-height value for the grid was added in the CSS to always keep enough room for 5 rows, to prevent the jumping behavior we had before.  The only (uncommon) case that will still make the UI jump is when both the alt (or title) and longdesc attributes are set on the HTML tag.

Mano: The patch looks bigger than it actually is: most of the "new" code is copied from metadata.js (for example, the code used to get the frame count).
Attachment #298380 - Flags: ui-review?(beltzner)
Attachment #298380 - Flags: review?(mano)
Comment on attachment 298380 [details] [diff] [review]
patch v1

This is great!
Attachment #298380 - Flags: ui-review?(beltzner) → ui-review+
Whiteboard: [needs patch] → [needs review mano]
Comment on attachment 298380 [details] [diff] [review]
patch v1

r=mano
Attachment #298380 - Flags: review?(mano) → review+
Comment on attachment 298380 [details] [diff] [review]
patch v1

a=beltzner for 1.9
Attachment #298380 - Flags: approval1.9+
Checked in.

I removed the braces around this line before checking in, per Mano's request over IRC:
sizeText = gBundle.getString("mediaUnknownNotCached");
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Whiteboard: [needs review mano]
Depends on: 426029
Depends on: 471558
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: