Closed Bug 1826072 Opened 2 years ago Closed 2 years ago

Allowed/ Blocked Temporarily permission is not correctly displayed inside the URL bar

Categories

(Firefox :: Site Permissions, defect, P1)

Firefox 113
Desktop
All
defect

Tracking

()

VERIFIED FIXED
113 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox111 --- unaffected
firefox112 --- unaffected
firefox113 --- verified

People

(Reporter: atrif, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(5 files)

Attached image image.png

Found in

  • 113.0a1 (2023-04-02)

Affected versions

  • 113.0a1 (2023-04-02)

Tested platforms

  • Affected platforms: Windows 10x64, macOS 12, Ubuntu 20.04
  • Unaffected platforms: none

Steps to reproduce

  1. Open a camera or microphone permission page (e.g https://www.onlinemictest.com/) and allow or block microphone access.
  2. Open the permission panel from the URL bar.
  3. Observe the Allowed/ Blocked Temporarily permission string.

Expected result

  • The permission string is correctly arranged.

Actual result

  • The permission string is on two rows.

Regression range

Additional notes

  • Attached a screenshot.

:emilio, since you are the author of the regressor, bug 1822578, could you take a look?

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)

What we want is to not have a min-width from the default button styles,
but we still want it to take as much space as it needs, if available.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b98e9b5c1303 Use auto min-width for permission remove button. r=Gijs
Priority: -- → P1
Component: Settings UI → Site Permissions
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Attached image image.png

I am still seeing the same behavior with the latest Nightly 113.0a1 (20230403215207). The Allowed/Blocked Temporarily string is displayed on two rows. Is this ok? Thank you!

Flags: needinfo?(emilio)

No, you're totally right, thanks! I must've goofed my testing before landing the patch.

Status: RESOLVED → REOPENED
Flags: needinfo?(emilio)
Resolution: FIXED → ---

Err, so the original patch is necessary but not sufficient, and I
clearly goofed my testing (I had removed this attribute in a separate
commit).

The issue is that this button ends up with a markup like:

<button class="permission-popup-permission-remove-button">
<label flex="1" class="permission-popup-permission-state-label">Allowed Temporarily</label>
<hbox class="box-inherit button-box" align="center" pack="center" flex="1" anonid="button-box">
<image class="button-icon"/>
<label class="button-text"/>
</hbox>
</button>

So the label and hbox divide the available space in half. Removing any
of the flex="1" attributes would cause the desired rendering.

I don't think the hbox needs to be flexible tbh, but ok, that's a
riskier change. I'm pretty sure the label in this case doesn't need to
be flexible at all though, specially since we don't want these buttons
to take any minimum amount of space.

An alternative would be to use flex: 1 auto or so for the label (via
CSS). That'd match the pre-regression behavior more exactly, but again I
don't think flexing the label is needed at all.

Depends on D174706

Keywords: leave-open
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c2847afa663c Update a couple selectors to use focus-visible instead of moz-focusring. r=Itiel
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED

Verified fixed with Firefox 113.0a1 (20230405212330) on Windows 10x64, macOS 12, and Ubuntu 22.04. The Allowed/Blocked Temporarily string is correctly displayed on one row as before.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: