When you place menu creation in a runtime.onInstalled
listener using menus.create
, as recommended by the docs, it works as expected initially.
However, if you disable and re-enable the extension, the item disappears from the context menu.
Here is the sample code:
browser.runtime.onInstalled.addListener(() => {
browser.menus.create({
id: "someId",
title: "Some title",
contexts: ["image"],
});
});
Is this an MV3 issue? If so, is there a way to bypass it?
Thank you!