mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-23 02:42:41 +01:00
code review #2014: gracefully deal with importing from a pre-1.9.12 module
This commit is contained in:
parent
56176c8eb7
commit
d721b83e21
@ -34,7 +34,14 @@
|
||||
null
|
||||
);
|
||||
|
||||
processObserver.start();
|
||||
// https://developer.mozilla.org/en-US/Firefox/Multiprocess_Firefox/Message_Manager/Frame_script_loading_and_lifetime#Unloading_frame_scripts
|
||||
// There is no way to unload a frame script, so when the extension will
|
||||
// update, it may happen `processObserver` is not available because of
|
||||
// trying to import from an older module version.
|
||||
// TODO: remove the test once everybody is updated to 1.9.10+.
|
||||
if ( processObserver ) {
|
||||
processObserver.start();
|
||||
}
|
||||
})();
|
||||
|
||||
/******************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user