I have been trying to read up on how to use WebExtension Page Actions by reading the following docs:
- https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/page_action
- https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/pageAction
- https://developer.mozilla.org/en-US/Add-ons/WebExtensions/user_interface/Page_actions
- https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/pageAction/show
I am unable to find how I configure my extension to show the page action button in the URL bar when a page from example.com has loaded. All the docs seem to assume the page action icon is already visible and shows how to handle clicks on it.
First I thought I could configure it through the manifest but it does not seem to be supported in the same way as content scripts. Then I tried to find an API to call from background.js but have not found any.
How do I show my page action icon on example.com?