diff --git a/extensions/chromium/pdfHandler.js b/extensions/chromium/pdfHandler.js index bd440a923dd69..e0f3818c65d90 100644 --- a/extensions/chromium/pdfHandler.js +++ b/extensions/chromium/pdfHandler.js @@ -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" }, }, ], @@ -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" }, }, ],