I can use setPopup() to control the content, and show() to make the icon for my WebExtension's pageAction
appear programmatically for a given tab. But I want the content of the popup itself to become visible at a time that my (background) script chooses.
Asked
Active
Viewed 33 times
0

arantius
- 1,715
- 1
- 17
- 28
-
You will need to open a new tab or window. – Daniel Herr Mar 14 '17 at 00:25
-
There is no way to open an *actual* `pageAction` or `browserAction` popup, but [you can fake it](http://stackoverflow.com/a/40296092/3773011). I need to move the code in that answer into an answer specifically about programmatically opening a Chrome extension/Firefox WebExtension popup. I'll do so in a bit. I'm working on something else at the moment. – Makyen Mar 14 '17 at 01:37