Popup
For devtools, open about:debugging#/runtime/this-firefox > Inspect
Page Action
Page action (and Address bar button) are tab specific. The code for them is written in idk yet where it goes.popup.js (browser-action script).
The main methods are