Closed Bug 1400024 Opened 7 years ago Closed 7 years ago

Photon Hamburger menu has inconsistent closing behavior based on button clicked

Categories

(Firefox :: Menus, defect, P1)

57 Branch
All
Unspecified
defect

Tracking

()

VERIFIED FIXED
Firefox 57
Iteration:
57.3 - Sep 19
Tracking Status
firefox57 --- fixed

People

(Reporter: u554753, Assigned: adw)

References

Details

(Whiteboard: [reserve-photon-structure])

Attachments

(1 file)

Steps to Reproduce 1. Open the photon hamburger window 2. Click the word "Zoom" in the menu 3. Click the word "Edit" in the menu Expected Results: Either the menu is supposed to disappear when the user clicks the word or the menu is supposed to stay. Actual Results: When clicking "Zoom", the menu disappears. When clicking "Edit", the menu stays.
Whiteboard: [photon-structure] [triage]
It's because closemenu=none is on the edit toolbarbutton but not the zoom button. Although maybe there's a reason for that since every button but the full-screen button has it. I added closemenu=auto to the full-screen button for good measure, but it doesn't seem to be necessary at least on macOS.
Assignee: nobody → adw
Status: NEW → ASSIGNED
Iteration: --- → 57.3 - Sep 19
Flags: qe-verify?
Priority: -- → P1
Whiteboard: [photon-structure] [triage] → [reserve-photon-structure]
Attachment #8908852 - Flags: review?(mdeboer) → review?(gijskruitbosch+bugs)
Comment on attachment 8908852 [details] Bug 1400024 - Clicks on Zoom label in Photon app menu shouldn't close the menu. https://reviewboard.mozilla.org/r/180472/#review185708 r=me with a hack for the fullscreen button added. ::: browser/components/customizableui/content/panelUI.inc.xul:583 (Diff revision 1) > <toolbarseparator orient="vertical"/> > <toolbarbutton id="appMenu-fullscreen-button" > class="subviewbutton subviewbutton-iconic" > observes="View:FullScreen" > type="checkbox" > + closemenu="auto" While this does close the panel eventually, at least on OS X it happens after the fullscreen transition and in the meantime the panel gets moved and/or squashed and looks terrible. In my testing, adding the following markup seems to avoid this: ``` onclick="this.closest('panel').hidePopup()" ``` This is pretty hacky, but hey, it works!
Attachment #8908852 - Flags: review?(gijskruitbosch+bugs) → review+
(In reply to :Gijs from comment #3) > Comment on attachment 8908852 [details] > Bug 1400024 - Clicks on Zoom label in Photon app menu shouldn't close the > menu. > > https://reviewboard.mozilla.org/r/180472/#review185708 > > r=me with a hack for the fullscreen button added. > > ::: browser/components/customizableui/content/panelUI.inc.xul:583 > (Diff revision 1) > > <toolbarseparator orient="vertical"/> > > <toolbarbutton id="appMenu-fullscreen-button" > > class="subviewbutton subviewbutton-iconic" > > observes="View:FullScreen" > > type="checkbox" > > + closemenu="auto" > > While this does close the panel eventually, at least on OS X it happens > after the fullscreen transition and in the meantime the panel gets moved > and/or squashed and looks terrible. In my testing, adding the following > markup seems to avoid this: > > ``` onclick="this.closest('panel').hidePopup()" > ``` > > This is pretty hacky, but hey, it works! Err, and this should probably check if (event.button == 0).
That happens currently too (without the patch) if I'm seeing the same thing as you fwiw. But it's worth fixing regardless, I agree.
(In reply to Drew Willcoxon :adw from comment #5) > That happens currently too (without the patch) if I'm seeing the same thing > as you fwiw. But it's worth fixing regardless, I agree. Err, yes, I should have been more clear, sorry. I just figured we could fix it while we were fixing this. :-)
Attachment #8908852 - Flags: review?(mdeboer)
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
I have reproduced this bug with Nightly 57.0a1 (2017-09-14) on Ubuntu 16.04, 64 bit! The fix is now verified on Latest Nightly 57.0a1 . Build ID 20170919100405 User Agent Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
QA Whiteboard: [bugday-20170920]
Status: RESOLVED → VERIFIED
Flags: qe-verify? → qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: