browser.contextMenus.create({
id: "show",
title: "Show page action",
});
browser.contextMenus.onClicked.addListener((info, tab) => {
if (info.menuItemId === "show") {
browser.pageAction.show(tab.id);
}
});pageAction.show() / notebook
pageAction.show()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.