Closed Bug 1575088 Opened 5 years ago Closed 5 years ago

"Permissions Set" blue-dot is stretched vertically, in site-info doorhanger

Categories

(Firefox :: Site Identity, defect, P1)

defect

Tracking

()

VERIFIED FIXED
Firefox 70
Tracking Status
firefox70 --- fixed

People

(Reporter: dholbert, Assigned: timhuang)

References

Details

(Whiteboard: [privacy-panel][skyline])

Attachments

(3 files)

Attached image screenshot

STR:

  1. Visit some site where you have permissions set.
    (For example: https://www.google.com/maps/ , click the "dot" in lower right corner, and click the checkbox for "Remember this decision" and then the button to Allow Location Access")

  2. Click the Site ID button (the lock icon at left edge of URL bar)

  3. Look at the "Permissions Set" area

ACTUAL RESULTS:
The blue circle icon (to the right of "Permissions Set") is stretched vertically, so it's an awkward oval shape.

EXPECTED RESULTS:
It should be a circle.

The issue might be OS-specific (by virtue of depending on the size of the "Permissions Set" text). I'm on Linux, if it matters.

It looks like the icon is a XUL <image> that has this styling:

list-style-image: url(chrome://browser/skin/badge-blue.svg);
width: 16px;
height: 16px;

...but it's inside of an hbox alongside a label, so it actually gets stretched to the height of the label.

There are several possible fixes:

  • Give its hbox parent -moz-box-align: start so that it doesn't stretch its kids in the cross axis.
  • Wrap the image in a wrapper box which can be the thing that gets stretched (instead of the image)
  • ...or maybe there's something else that is more elegant & would also work.
Component: General → Site Identity and Permission Panels
Depends on: 1566810
Flags: needinfo?(tihuang)
Attached image narrower screenshot

Thanks Daniel, I will work on this.

Assignee: nobody → tihuang
Status: NEW → ASSIGNED
Flags: needinfo?(tihuang)
Whiteboard: [privacy-panel][skyline]

This patch fixes the style issue by make the container of the permission
granted indicator to centered align its children.

Pushed by tihuang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/57991c0539e4
Fix the style issue of the permission granted indicator. r=johannh
Priority: -- → P1
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70

Thanks for the quick action!

Hi Daniel,

Would you be able to verify the bug? Thanks.

Sure! I think tomorrow's nightly is the first one that'll have the fix, so I'll take a look then.

(The latest nightly still shows the issue, but I think that makes sense, given how recently the fix hit mozilla-central.)

Flags: needinfo?(dholbert)

Verified - this looks good in Nightly 70.0a1 (2019-08-21) (64-bit)

Status: RESOLVED → VERIFIED
Flags: needinfo?(dholbert)

Thanks!!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: