Closed Bug 1636243 Opened 5 years ago Closed 4 years ago

Disfunctional AppMenu behaviour during specific interactions

Categories

(Thunderbird :: Toolbars and Tabs, defect)

defect

Tracking

(thunderbird_esr78? fixed, thunderbird82 wontfix)

RESOLVED FIXED
83 Branch
Tracking Status
thunderbird_esr78 ? fixed
thunderbird82 --- wontfix

People

(Reporter: aleca, Assigned: aleca)

Details

(Keywords: ux-consistency)

Attachments

(2 files, 2 obsolete files)

Attached image cursor-appmenu.png

I stumbled upon a couple of glitches in the main AppMenu that should be addressed.

  • The AppMenu opens and closes immediately if opened the first time in the Chat Tab.
    To recreate the issue you have to be in the Chat Tab and open the AppMenu for the first time.
    If the AppMenu has been previously opened in any other tab, the issue cannot be reproduced.

  • Unable to close the AppMenu if clicking on the AppMenu Button when the cursor is on top of the area where the chevron overlaps the button (attachment for reference).
    The console returns: JavaScript error: resource:///modules/CustomizableUI.jsm, line 2040: TypeError: target.getAttribute is not a function

This problem affects also Firefox, and I think we could resolve it by pushing the AppMenu down in order to not have any overlap with the button.

(In reply to Alessandro Castellani (:aleca) from comment #0)

  • The AppMenu opens and closes immediately if opened the first time in the Chat Tab.
    To recreate the issue you have to be in the Chat Tab and open the AppMenu for the first time.
    If the AppMenu has been previously opened in any other tab, the issue cannot be reproduces.

The same happens on the calendar tab.

Found another tiny issue.

Clicking on Messages causes this console error:

JavaScript error: chrome://messenger/content/mailWindowOverlay.js, line 831:
TypeError: openFeedView.children.forEach is not a function
Version: unspecified → Trunk
Severity: -- → S4
Assignee: paul → alessandro
Attached patch 1636243-appmenu.diff (obsolete) — Splinter Review

This patch fixes the issues listed above.

Attachment #9181447 - Flags: review?(mkmelin+mozilla)
Status: NEW → ASSIGNED
Comment on attachment 9181447 [details] [diff] [review] 1636243-appmenu.diff Review of attachment 9181447 [details] [diff] [review]: ----------------------------------------------------------------- Seems ok, r=mkmelin
Attachment #9181447 - Flags: review?(mkmelin+mozilla) → review+
Target Milestone: --- → 83 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/cca8a5a4b9d1
Fix disfunctional AppMenu behaviour during specific interactions. r=mkmelin DONTBUILD

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Sorry about that.
The test opens the main app menu without passing any event, so no originalTarget is available.
I fixed it and launched a try run: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=d29d5c7c7ba4d05137d56bfe762fa63772b1f450

Attached patch 1636243-appmenu.diff (obsolete) — Splinter Review

Patch updated with tests fixed.

Attachment #9181447 - Attachment is obsolete: true
Attachment #9181649 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9181649 [details] [diff] [review] 1636243-appmenu.diff Review of attachment 9181649 [details] [diff] [review]: ----------------------------------------------------------------- ::: mail/components/customizableui/content/panelUI.js @@ +275,5 @@ > domEvent = aEvent; > } > > + // If the opening of the menu is triggered from a test, we don't have an > + // event nor a target. We try to use the originalTarget to account for I don't think the main code should cater for tests - then you would get tests that don't test what they should. But I think it's valid also for other cases, especially since the documentation says " @param aEvent the event (if any) that triggers showing the menu." So please adjust the comment not to be about catering for tests.
Attachment #9181649 - Flags: review?(mkmelin+mozilla) → review+
Attachment #9181649 - Attachment is obsolete: true
Attachment #9181662 - Flags: review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/54b01f3c6348
Fix disfunctional AppMenu behaviour during specific interactions. r=mkmelin

Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED

78 uplift?

Comment on attachment 9181662 [details] [diff] [review]
1636243-appmenu.diff

[Approval Request Comment]
Regression caused by (bug #): -
User impact if declined: Minor, as the fixed issues are not blockers
Testing completed (on c-c, etc.): on c-c and beta 83
Risk to taking this patch (and alternatives if risky): very low

Attachment #9181662 - Flags: approval-comm-esr78?

Comment on attachment 9181662 [details] [diff] [review]
1636243-appmenu.diff

[Triage Comment]
Approved for esr78

Attachment #9181662 - Flags: approval-comm-esr78? → approval-comm-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: