Hi,
I’ve created an add-on which listens to several events like onBeforeRequest.
The lines:
var callbackFilter = {types: [“main_frame”, “sub_frame”, “xmlhttprequest”, “websocket”], urls: ["<all_urls>"]};
browser.webRequest.onBeforeRequest.addListener (onBeforeRequestCallback, callbackFilter);
are executed at the beginning in the background script.
This works fine when Firefox is opened and a webpage is opened afterwards.
But when Firefox is started via command line with an URL as parameter, the event for the first URL is not fired. The following events were fired correctly.
Command line example: start firefox https://www.mozilla.org
Can anybody confirm this behavior?