I am interested in catching loads before they hit the network. The docs say
Properties relating to the tab’s content (for example: title, favicon, and url) will not be correct at [the ‘open’ event]. If you need to access these properties, listen for the ready event
That implies there is no way to get a target URL before Firefox starts resolving it. I want to inspect the target URL before sending any packets and decide whether to cancel, forward, or tweak it at that point. Is there an undocumented part of the SDK that allows this? I tried tab.on('loadstart')
but got nothing.
I’ve found this loadContent thing in demo form only which sounds like it should do what I want, but it’s very complex and I can’t figure out how it fits into the high level API, if it does at all.