Closed Bug 1932859 Opened 19 days ago Closed 1 day ago

[Experiment] The Firefox menu is dismissed if clicking inside the "DEVICE_MIGRATION_FXA_CTA_EXP1" message

Categories

(Firefox :: Messaging System, defect, P3)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
135 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox132 --- unaffected
firefox133 --- wontfix
firefox134 --- affected
firefox135 --- verified

People

(Reporter: cmuntean, Assigned: mconley, NeedInfo)

References

Details

Attachments

(2 files)

[Affected versions]:

  • Firefox Release 133.0 (Build ID: 20241118181856)
  • Firefox Nightly 134.0a1 (Build ID: 20241120171202)

[Affected Platforms]:

  • Windows 10 x64
  • macOS 15.0.1
  • Ubuntu 24.04 x64

[Prerequisites]:

  • Have following prefs set:
    • nimbus.debug = true
  • Be enrolled in any of the treatment branches of the experiment. You can force enroll in the treatment-a branch by navigating to: about:studies?optin_slug=account-adoption-app-menu-experiment-firefox-release&optin_branch=treatment-a&optin_collection=nimbus-preview

[Steps to reproduce]:

  1. Open the browser using the profile from the prerequisites.
  2. Click the "Open application menu button" button in order to open the Hamburger menu.
  3. Click inside the message displayed.

[Expected result]:

  • Nothing happens.

[Actual result]:

  • The Hamburger menu is dismissed.

[Notes]:

  • The issue is also reproducible for the PXI menu.
  • Attached is a screen recording of the issue.

:mconley it looks like this is also something you'd like to take a look at

Flags: needinfo?(mconley)

I'm of the opinion that this bug is valid, but doesn't block the messaging experiment that we aim to do. I'll go ahead and set this as a P3 for now.

Flags: needinfo?(mconley)
Priority: -- → P3
Summary: The Firefox menu is dismissed if clicking inside the "DEVICE_MIGRATION_FXA_CTA_EXP1" message → [Experiment] The Firefox menu is dismissed if clicking inside the "DEVICE_MIGRATION_FXA_CTA_EXP1" message

Agree it doesn't block the experiment. What does P3 mean in terms of time to fix? We will almost certainly roll this out, and it would be good to have this fixed before we do. Can it catch Firefox 135?

Assignee: nobody → mconley

Yes, I think this should be straight-forward.

The change in CustomizableUI is required because the routine wasn't designed to handle
custom elements with shadow roots. The routine's job is to walk up the ancestry of
the click event and determine if any of the parents have certain characteristics
that would indicate that the event should not close the panel, and without this
change it would bail out as soon as it hit the shadow root if the event's original
target was inside the custom element.

In this case, the element enclosing the fxa-menu-message is the "appMenu-fxa-menu-message"
toolbaritem with closemenu="none", which this modification now lets
CustomizableUI detect.

Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/aa3c500f251f Prevent auto-closing of the AppMenu / FxA panels when generically clicking the FxA menu message CTA. r=pdahiya,omc-reviewers
Status: NEW → RESOLVED
Closed: 1 day ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch

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

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

For more information, please visit BugBot documentation.

Flags: needinfo?(mconley)

I have verified this issue on the latest Nightly 135.0a1 (Build ID: 20241210205259) on Windows 10 x64, macOS 14.4.1 and Linux Mint 20.1.

  • The menu is no longer dismissed if you click inside the message.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: