browserAction.openPopup()

Opens the extension popup window in the active window but does not grant tab permissions.

Syntax

browser.browserAction.openPopup(
  function(popupView) {...} // function
)

Parameters

callback
function. The function is passed the following arguments:
popupViewOptional
object. JavaScript 'window' object for the popup window if it was succesfully opened.

Additional objects

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?45.0Yes33
Firefox
Basic supportNo

Examples

Acknowledgements

This API is based on Chromium's chrome.browserAction API. This documentation is derived from browser_action.json in the Chromium code.

Document Tags and Contributors

 Contributors to this page: wbamberg
 Last updated by: wbamberg,