Closed Bug 1787130 Opened 2 years ago Closed 2 years ago

Double separator in context menu before extension items

Categories

(Thunderbird :: Add-Ons: Extensions API, defect)

Thunderbird 102
defect

Tracking

(thunderbird_esr102? fixed)

RESOLVED FIXED
106 Branch
Tracking Status
thunderbird_esr102 ? fixed

People

(Reporter: manikulin, Assigned: TbSync)

References

Details

Attachments

(1 file)

Steps to reproduce:

Try an extension that creates a context menu item having

contexts: [ "message_list", "page", "frame", "selection", "link", "image", "video", "audio", ]

for various objects: messages in the list, text, links, selected fragments in the message body. Pay attention to appearance of the context menu.

Actual results:

Sometimes double line separating add-on item is added, sometimes it is just single line.

The problem appeared around thunderbird-102, perhaps a bit earlier and has not fixed in current builds. Thunderbird-91 is not affected or maybe there is space between double line so it appears as a bit thicker one.

Linux, KDE.

Expected results:

Context menu items added by add-ons always separated by a single line.

Try run:
https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=55074259352f2e08b1accf4d3394e4ce8134a37c

Could you check if this fixes all of the reported cases for you, and if you see a regression, this patch could have introduced?

Flags: needinfo?(manikulin)
Assignee: nobody → john
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

(In reply to John Bieling (:TbSync) from comment #3)

Updated try run:
https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=311e1bb628f1e076a480c7b586be94ff72b2ef2a

Thank you. I have not tried hard to check various scenarios, but at least in the following cases I do not see double separator any more:

  • Message list
  • Message body page, selection
  • mailto: link in the message body (for http: links double separator does not appear even in "public" builds)
Flags: needinfo?(manikulin)
Target Milestone: --- → 106 Branch

Pushed by alessandro@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/45d0d89ca3fc
Fix double separator for webExt menu entries. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

Comment on attachment 9294384 [details]
Bug 1787130 - Fix double separator for webExt menu entries. r=aleca

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined: Double seperator in context menu.
Testing completed (on c-c, etc.): On BETA for 1 month.
Risk to taking this patch (and alternatives if risky): Should be fine. Tested with a local build.

Attachment #9294384 - Flags: approval-comm-esr102?

Comment on attachment 9294384 [details]
Bug 1787130 - Fix double separator for webExt menu entries. r=aleca

[Triage Comment]
Approved for esr102

Attachment #9294384 - Flags: approval-comm-esr102? → approval-comm-esr102+

I still see the bug in 102.5.0 on Linux,
with context "folder_pane", on folders. It's working correctly in the context menu for accounts, but not for folders.

The bug appears when there are multiple items added by the same extension. The double separator appears in the moment when the submenu opens.

Blocks: 1801675

Filed bug 1801675 about that, as continuation of this bug here.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: