There is a case where requests have started, the addon has shutdown (and Feature.jsm has been unloaded), and the onBeforeRequest listener is still trying to execute on those requests. This checks to see if the necessary API/module is present before processing the request details.
There is a case where requests have started, the addon has shutdown (and Feature.jsm has been unloaded), and the
onBeforeRequest
listener is still trying to execute on those requests. This checks to see if the necessary API/module is present before processing the request details.