Skip to content

Commit

Permalink
Merge pull request mozilla#18728 from Rob--W/crx-mv3-fallback-detect-…
Browse files Browse the repository at this point in the history
…fixup

[CRX] Fix feature detect of DNR responseHeaders option
  • Loading branch information
timvandermeij authored Sep 15, 2024
2 parents bf5c987 + a91ba11 commit 014ce7c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions extensions/chromium/pdfHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,10 @@ async function isHeaderConditionSupported() {
addRules: [
{
id: ruleId,
urlFilter: "|does_not_match_anything",
condition: { responseHeaders: [{ header: "whatever" }] },
condition: {
responseHeaders: [{ header: "whatever" }],
urlFilter: "|does_not_match_anything",
},
action: { type: "block" },
},
],
Expand All @@ -244,8 +246,10 @@ async function isHeaderConditionSupported() {
addRules: [
{
id: ruleId,
urlFilter: "|does_not_match_anything",
condition: { responseHeaders: [] },
condition: {
responseHeaders: [],
urlFilter: "|does_not_match_anything",
},
action: { type: "block" },
},
],
Expand Down

0 comments on commit 014ce7c

Please sign in to comment.