1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-03 02:37:21 +02:00

[mv3] Raise minimum chromium version to 118

This allows to drop the special handling of `isUrlFilterCaseSensitive`
for chromium-based browsers.
This commit is contained in:
Raymond Hill 2024-05-29 09:57:09 -04:00
parent 044b7face1
commit ad77938f24
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 1 additions and 19 deletions

View File

@ -25,7 +25,7 @@
"128": "img/icon_128.png"
},
"manifest_version": 3,
"minimum_chrome_version": "105.0",
"minimum_chrome_version": "118.0",
"name": "__MSG_extName__",
"options_page": "dashboard.html",
"optional_host_permissions": [

View File

@ -338,24 +338,6 @@ async function processNetworkFilters(assetDetails, network) {
log(`\tRejected filter count: ${network.rejectedFilterCount}`);
log(`Output rule count: ${rules.length}`);
// https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/RuleCondition#browser_compatibility
// isUrlFilterCaseSensitive is true by default in Chromium. It will be
// false by default in Chromium 118+.
if ( platform !== 'firefox' ) {
for ( const rule of rules ) {
const { condition } = rule;
if ( condition === undefined ) { continue; }
if ( condition.urlFilter === undefined ) {
if ( condition.regexFilter === undefined ) { continue; }
}
if ( condition.isUrlFilterCaseSensitive === undefined ) {
condition.isUrlFilterCaseSensitive = false;
} else if ( condition.isUrlFilterCaseSensitive === true ) {
condition.isUrlFilterCaseSensitive = undefined;
}
}
}
// Minimize requestDomains arrays
for ( const rule of rules ) {
const condition = rule.condition;