Closed Bug 1815309 Opened 2 years ago Closed 2 years ago

Menus in permission doorhangers open on hover rather than click

Categories

(Firefox :: Menus, defect)

Desktop
macOS
defect

Tracking

()

VERIFIED FIXED
111 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox109 --- unaffected
firefox110 --- wontfix
firefox111 --- verified

People

(Reporter: pbz, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

Tested on macOS + Nightly 111.0a1 (2023-02-06) (64-bit)

STR:

  1. Open https://permission.site
  2. Click on the "Screen Share" button
  3. In the permission doorhanger that opens mouse hover over the expand arrow of the "block" button.

Expected:
Nothing happens unless you click the arrow panel

Actual:
On hover the menu opens

Mozregression:

16:17.49 INFO: Last good revision: 0c989b2bcd7882a9e7106e7879ab8933c2e09071
16:17.49 INFO: First bad revision: 47c002d3637247e71ee901f32421deaecc9d8ea3
16:17.49 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=0c989b2bcd7882a9e7106e7879ab8933c2e09071&tochange=47c002d3637247e71ee901f32421deaecc9d8ea3
Flags: needinfo?(emilio)

Set release status flags based on info from the regressing bug 1805414

This also happens on Windows and probably Linux. It's basically a similar thing as bug 1809019.

Flags: needinfo?(emilio)
Assignee: nobody → emilio
Status: NEW → ASSIGNED

So what does the DOM tree look like here? Why does the menu open?

Flags: needinfo?(emilio)

There's a <button type="menu"> inside a <panel>. So if we treat the panel as a menu, the <button> opens because of this

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bc947b40e222 Make IsOnMenu() only return true for menupopups/popup elements. r=smaug
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox110 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

Comment on attachment 9316229 [details]
Bug 1815309 - Make IsOnMenu() only return true for menupopups/popup elements. r=smaug

Beta/Release Uplift Approval Request

  • User impact if declined: comment 0
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: comment 0
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Relatively simple fix to preserve old behavior.
  • String changes made/needed: none
  • Is Android affected?: No
Flags: needinfo?(emilio)
Attachment #9316229 - Flags: approval-mozilla-release?
Attachment #9316311 - Flags: approval-mozilla-release?
QA Whiteboard: [qa-triaged]

Reproduced the issue with Firefox 111.0a1 (2023-2-06) on Windows 10x64. The menu opens on hover after following the steps from comment 0.
The issue is verified fixed with Firefox 111.0b2 on Windows 10x64 and macOS 12. The menu no longer opens on hover.

Comment on attachment 9316311 [details]
Bug 1815309 - Test. r=smaug

Hitting this bug seems an infrequent scenario, let's have it in 111 in two weeks, thanks!

Attachment #9316311 - Flags: approval-mozilla-release? → approval-mozilla-release-
Attachment #9316229 - Flags: approval-mozilla-release? → approval-mozilla-release-
Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: