Closed Bug 1561266 Opened 5 years ago Closed 5 years ago

[macOS] Autoplay media options dropdown from Settings is not properly aligned

Categories

(Firefox :: Settings UI, defect, P1)

Unspecified
macOS
defect
Points:
3

Tracking

()

VERIFIED FIXED
Firefox 69
Iteration:
69.3 - Jun 10 - 23
Tracking Status
firefox-esr60 --- unaffected
firefox-esr68 --- unaffected
firefox68 --- unaffected
firefox69 --- verified

People

(Reporter: Gabi, Assigned: daleharvey)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(3 files, 1 obsolete file)

Attached image AutoplayWindows10.png (obsolete) —

[Affected versions]:

  • 69.0a1 (2019-06-24) (64-bit)

[Affected platforms]:

  • macOS 10.14
  • macOS 10.13

[Unaffected platforms]:

  • Windows 10x64
  • Ubuntu 18.4x64

[Steps to reproduce]:

  1. Launch Firefox
  2. Go to Preferences/Permissions
  3. Go to Autoplay and open Settings
  4. Click on the Autoplay global settings
  5. Observe the drop down alignment for autoplay options

[Expected result]:

  • Global autoplay options drop down is not properly alligned

[Actual result]:

  • Global autoplay drop down should be properly aligned, see the correct screenshot from Windows 10

[Regression range]:
Not regression, new feature

Depends on: 1557002
Summary: [macOS] Autoplay media options dropdown from Settings is properly alligned → [macOS] Autoplay media options dropdown from Settings is not properly aligned
Attached image AutoplayWindows10.png
Attachment #9073799 - Attachment is obsolete: true
Blocks: 1557002
No longer depends on: 1557002

Dale, can you check what's going on here? Thanks!

Flags: needinfo?(dharvey)
Regressed by: 1541283
Assignee: nobody → dharvey
Flags: needinfo?(dharvey)
Priority: -- → P1

Hey Neil, Gijs informed me you had worked around this area

The menupopup here is contained within a <browser> so doesnt have enough horizontal space to show centered on the selected item the left margin however still shows. If I set position="after_end" on the menupopup then it shows as it does in windows, but I cant do that from just <menuitem> and seems like this should be handled automatically

Any suggestions on what I should do to fix this?

Cheers
Dale

Flags: needinfo?(enndeakin)

The horizontal alignment in the image looks correct to me. On Mac, the popup should appear offset left of the button area by 13 pixels.

Are you talking about the vertical alignment? The vertical alignment isn't correct as it appears to be cut off by the subwindow frame. You could fix that by adding incontentshell="true" to the iframe the subwindow frame is using.

Flags: needinfo?(enndeakin)

(In reply to Neil Deakin from comment #5)

The horizontal alignment in the image looks correct to me. On Mac, the popup should appear offset left of the button area by 13 pixels.

Really? It looks off to me... It looks OK when we manage to overlay the popup on top of the menulist, with the selected item shown on top of the menulist element, but not when we show the popup below/above the anchoring menulist. Is this what Safari and other native apps do everywhere?

Are you talking about the vertical alignment? The vertical alignment isn't correct as it appears to be cut off by the subwindow frame. You could fix that by adding incontentshell="true" to the iframe the subwindow frame is using.

Looks like we'd want to add this to the <menupopup>, right?

Flags: needinfo?(enndeakin)

Are you talking about the vertical alignment? The vertical alignment isn't correct as it appears to be cut off by the subwindow frame. You could fix that by adding incontentshell="true" to the iframe the subwindow frame is using.

Looks like we'd want to add this to the <menupopup>, right?

Thanks setting this worked great

Pushed by dharvey@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0d8f537f9a7c
Let popup display out of the permissions popup. r=Gijs
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 69

(In reply to :Gijs (he/him) from comment #6)

Really? It looks off to me... It looks OK when we manage to overlay the popup on top of the menulist, with the selected item shown on top of the menulist element, but not when we show the popup below/above the anchoring menulist. Is this what Safari and other native apps do everywhere?

This is consistent with native dropdowns.

Flags: needinfo?(enndeakin)
Flags: qe-verify+
Flags: needinfo?(gasofie)
Iteration: --- → 69.3 - Jun 10 - 23
Points: --- → 3

Verified as fixed with macOS 10.12.6 and macOS 10.10 on 69.0b6.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Flags: needinfo?(gasofie)

Please nominate this for ESR68 approval when you get a chance.

Flags: needinfo?(dharvey)

Comment on attachment 9075809 [details]
Bug 1561266 - Let popup display out of the permissions popup.

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Visible layout fix
  • User impact if declined: incorrect layout
  • Fix Landed on Version: 69
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Minor layout change, verified
  • String or UUID changes made by this patch:
Flags: needinfo?(dharvey)
Attachment #9075809 - Flags: approval-mozilla-esr68?

Comment on attachment 9075809 [details]
Bug 1561266 - Let popup display out of the permissions popup.

Fixes a minor UI regression. Approved for 68.1esr.

Attachment #9075809 - Flags: approval-mozilla-esr68? → approval-mozilla-esr68+

This change patches code which got added in 69 in bug 1543812. Does anything need to be done here for esr68?

Flags: needinfo?(dharvey)

Nope I should have checked before the uplift requet, this UI isnt on 68 so nothing to do here, sorry

Flags: needinfo?(dharvey)

Can you remove the approval-mozilla-esr68+, please? (Not needed, see comment 17.)

Flags: needinfo?(jcristau)
Flags: needinfo?(jcristau)
Attachment #9075809 - Flags: approval-mozilla-esr68+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: