Closed Bug 1794757 Opened 2 years ago Closed 2 years ago

Save Changes and Cancel buttons are slightly clipped for the Autoplay Permissions

Categories

(Firefox :: Theme, defect)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
108 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox105 --- wontfix
firefox106 --- wontfix
firefox107 --- wontfix
firefox108 --- verified

People

(Reporter: atrif, Assigned: Gijs)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached image image.png

Found in

  • 107.0a1 (20221011160345)

Affected versions

  • 107.0a1 (20221011160345)
  • 106.0 (20221010110315)
  • 105.0.3 (20221007134813)

Tested platforms

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

Steps to reproduce

  1. Open about:preferences#privacy and click on Setting for Autoplay from the Permissions area.
  2. Observe the Cancel and Save Changes buttons.

Expected result

  • The buttons are displayed as expected.

Actual result

  • The buttons are slightly cut off on the bottom side.

Regression range

Additional notes

  • Attached a screenshot with the issue.
Has STR: --- → yes

:dao, since you are the author of the regressor, bug 1784488, could you take a look?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dao+bmo)
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Flags: needinfo?(dao+bmo)

The sitePermissions code is reused, and all dialogs work OK except the autoplay one.
This is because the autoplay code adds extra content not present in the other
dialogs, and localizes it.
The SubDialog code relies on determining the size of the dialog once the
mozSubDialogReady promise resolves, which it does before fluent puts in l10n data
for the content that was just added. This patch fixes that.

It also, as a driveby, correctly pauses and resumes observing l10n attributes
in the doc when making modifications, to avoid fluent doing a second pass for
the same content.

Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/878883e92b09
autoplay dialog should wait for translation to finish before showing and determining size to avoid buttons being cut off, r=kpatenio
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch

Verified fixed with Firefox 108.0a1 (2022-10-27) on Windows 10x64, macOS 12 and Ubuntu 20.04. The Autoplay dialog is displayed as expected and the buttons are no longer clipped.

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

Attachment

General

Created:
Updated:
Size: