1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-02 17:19:38 +02:00

Do not bail out when content-disposition is inline

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2656
This commit is contained in:
Raymond Hill 2023-05-14 09:06:21 -04:00
parent e79d9b2f85
commit a3a80e3b3f
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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);