Merge pull request #18728 from Rob--W/crx-mv3-fallback-detect-fixup

[CRX] Fix feature detect of DNR responseHeaders option
This commit is contained in:
Tim van der Meij 2024-09-15 15:43:23 +02:00 committed by GitHub
commit 014ce7c1db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -227,8 +227,10 @@ async function isHeaderConditionSupported() {
addRules: [ addRules: [
{ {
id: ruleId, id: ruleId,
urlFilter: "|does_not_match_anything", condition: {
condition: { responseHeaders: [{ header: "whatever" }] }, responseHeaders: [{ header: "whatever" }],
urlFilter: "|does_not_match_anything",
},
action: { type: "block" }, action: { type: "block" },
}, },
], ],
@ -244,8 +246,10 @@ async function isHeaderConditionSupported() {
addRules: [ addRules: [
{ {
id: ruleId, id: ruleId,
urlFilter: "|does_not_match_anything", condition: {
condition: { responseHeaders: [] }, responseHeaders: [],
urlFilter: "|does_not_match_anything",
},
action: { type: "block" }, action: { type: "block" },
}, },
], ],