browserAction.openPopup()

Open the browser action's popup.
 

You can only call this function from inside the handler for a user action.

Syntax

browser.browserAction.openPopup()

Parameters

None.

Return value

A Promise that is resolved with no arguments.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxOperaFirefox for Android
openPopupChrome Full support 67
Disabled
Full support 67
Disabled
Disabled From version 67: this feature is behind the #extension-apis preference (needs to be set to Enabled). To change preferences in Chrome, visit chrome://flags.
Edge No support NoFirefox Full support 57Opera No support NoFirefox Android No support No

Legend

Full support  
Full support
No support  
No support
User must explicitly enable this feature.
User must explicitly enable this feature.

Examples

Open the popup when the user selects a context menu item:

browser.menus.create({
  id: "open-popup",
  title: "open popup",
  contexts: ["all"]
});

browser.menus.onClicked.addListener(() => {
  browser.browserAction.openPopup();
});

Document Tags and Contributors

Last updated by: mdnwebdocs-bot,