[mv3] Remove obsolete Firefox workaround code

Related commit:
2e745f9bfb
This commit is contained in:
Raymond Hill 2025-02-22 11:07:58 -05:00
parent 0013e04fd3
commit 02b78fb717
No known key found for this signature in database
GPG key ID: 25E1490B761470C2
2 changed files with 4 additions and 11 deletions

View file

@ -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);

View file

@ -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": {