Closed
Bug 1400024
Opened 4 years ago
Closed 4 years ago
Photon Hamburger menu has inconsistent closing behavior based on button clicked
Categories
(Firefox :: Menus, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | fixed |
People
(Reporter: u554753, Assigned: adw)
References
(Blocks 1 open bug)
Details
(Whiteboard: [reserve-photon-structure])
Attachments
(1 file)
|
59 bytes,
text/x-review-board-request
|
Details |
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.
Updated•4 years ago
|
Whiteboard: [photon-structure] [triage]
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 2•4 years ago
|
||
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 | ||
Updated•4 years ago
|
Assignee: nobody → adw
Status: NEW → ASSIGNED
Updated•4 years ago
|
Iteration: --- → 57.3 - Sep 19
Flags: qe-verify?
Priority: -- → P1
Whiteboard: [photon-structure] [triage] → [reserve-photon-structure]
Updated•4 years ago
|
Attachment #8908852 -
Flags: review?(mdeboer) → review?(gijskruitbosch+bugs)
Comment 3•4 years ago
|
||
| mozreview-review | ||
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+
Comment 4•4 years ago
|
||
(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).
| Assignee | ||
Comment 5•4 years ago
|
||
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.
Comment 6•4 years ago
|
||
(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. :-)
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•4 years ago
|
Attachment #8908852 -
Flags: review?(mdeboer)
| Assignee | ||
Comment 8•4 years ago
|
||
https://hg.mozilla.org/integration/autoland/rev/206b2ca14b91
Comment 9•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/206b2ca14b91
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Comment 10•4 years ago
|
||
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]
Updated•4 years ago
|
Status: RESOLVED → VERIFIED
Updated•4 years ago
|
Flags: qe-verify? → qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•