mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Remove obsolete Firefox workaround code
Related commit:
2e745f9bfb
This commit is contained in:
parent
0013e04fd3
commit
02b78fb717
2 changed files with 4 additions and 11 deletions
|
|
@ -29,8 +29,6 @@ import { ubolLog } from './debug.js';
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
const isGecko = browser.runtime.getURL('').startsWith('moz-extension://');
|
||||
|
||||
const resourceDetailPromises = new Map();
|
||||
|
||||
function getScriptletDetails() {
|
||||
|
|
@ -467,16 +465,11 @@ function registerScriptlet(context, scriptletDetails) {
|
|||
allFrames: true,
|
||||
matches,
|
||||
excludeMatches,
|
||||
matchOriginAsFallback: true,
|
||||
runAt: 'document_start',
|
||||
world: 'MAIN',
|
||||
};
|
||||
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1736575
|
||||
// `MAIN` world not yet supported in Firefox
|
||||
if ( isGecko === false ) {
|
||||
directive.world = 'MAIN';
|
||||
directive.matchOriginAsFallback = true;
|
||||
}
|
||||
|
||||
// register
|
||||
if ( registered === undefined ) {
|
||||
context.toAdd.push(directive);
|
||||
|
|
|
|||
|
|
@ -16,10 +16,10 @@
|
|||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
"id": "uBOLiteRedux@raymondhill.net",
|
||||
"strict_min_version": "127.0"
|
||||
"strict_min_version": "128.0"
|
||||
},
|
||||
"gecko_android": {
|
||||
"strict_min_version": "127.0"
|
||||
"strict_min_version": "128.0"
|
||||
}
|
||||
},
|
||||
"declarative_net_request": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue