Popup

For devtools, open about:debugging#/runtime/this-firefox > Inspect

Popup MDN docs

Page Action

Page action (and Address bar button) are tab specific. The code for them is written in popup.js (browser-action script). idk yet where it goes.

The main methods are

  • setPopup to specific html file to use
  • onClicked
  • browser.pageAction.show(tabId) and browser.pageAction.hide(tabId) to get tabId use browser.tabs.query({ active: true, currentWindow: true })[0].id