From a3a80e3b3f41e58446096bcdcf085e550afcd449 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 14 May 2023 09:06:21 -0400 Subject: [PATCH] Do not bail out when `content-disposition` is `inline` Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2656 --- src/js/traffic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/traffic.js b/src/js/traffic.js index fc8616aa617fe..cd9067a8ec4bb 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -857,7 +857,8 @@ const filterDocument = (( ) => { } } // https://bugzilla.mozilla.org/show_bug.cgi?id=1426789 - if ( headerValueFromName('content-disposition', headers) ) { return; } + const disposition = headerValueFromName('content-disposition', headers); + if ( disposition !== '' && disposition.startsWith('inline') === false ) { return; } const stream = request.stream = browser.webRequest.filterResponseData(extras.requestId);