Closed Bug 1638334 Opened 4 years ago Closed 2 years ago

WebExtension bookmarks context menu in library window has some bugs

Categories

(WebExtensions :: Frontend, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1768371

People

(Reporter: kernp25, Unassigned)

References

Details

Attachments

(4 files)

Attached file manifest.zip

The context menu item will appear for items, that are not really bookmarks.
And when using it with apis like bookmarks.get(), it will fail.

Flags: needinfo?(rob)
Attached image firefox_wEbQXho8vI.png

The menus.OnClickData and the error, that was thrown when using bookmarks.get() for an invalid bookmark.

Attached image firefox_93pKWGF6uI.png

The context menu item will appear for invalid bookmarks in the library window.

Attached image IMHxxrY64n.png

It will appear for these items.

Regression window:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=24f969298ec5c1a7cbc444bfc8f3d77b07f46bbe&tochange=f2f4a6eb1576cba580ee99971f5fc035cbaeeab1

Suspect: 8b35181c3ccc747106037b61a9b52adfbba5ed60 Peter Simonyi — Bug 1419195: Show items from WebExtensions in Places Library context menu r=mixedpuppy

Looks like an implementation bug.

Blocks: 1419195
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: -- → S4
Priority: -- → P5
Component: General → Frontend
Flags: needinfo?(rob)

The component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit auto_nag documentation.

Priority: P5 → --
Priority: -- → P5

To fix this, https://searchfox.org/mozilla-central/rev/df4c90d4b8c92c99f76334acfe4813c573c12661/browser/components/extensions/parent/ext-menus.js#1200 should be updated to filter those items, using PlacesUtils.isVirtualLeftPaneItem(node.bookmarkGuid).

See Also: → 1768371

The suggestion from comment 6 has been applied in the patch to bug 1768371, so I'll close this bug.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: