forgot to document fix in code re. #111

This commit is contained in:
gorhill 2015-04-24 07:16:46 -04:00
parent 0513c4fd27
commit ada732575a
1 changed files with 5 additions and 1 deletions

View File

@ -352,7 +352,11 @@ var onRootFrameHeadersReceived = function(details) {
var µb = µBlock; var µb = µBlock;
// Check if the main_frame is a download // Check if the main_frame is a download
// ... // https://github.com/gorhill/uBlock/issues/111
// We will assume that whatever root document is of type
// 'application/x-[...]' is a download operation.
// I confirmed this also work with original issue:
// https://github.com/chrisaljoudi/uBlock/issues/516
if ( headerValue(details.responseHeaders, 'content-type').lastIndexOf('application/x-', 0) === 0 ) { if ( headerValue(details.responseHeaders, 'content-type').lastIndexOf('application/x-', 0) === 0 ) {
µb.tabContextManager.unpush(tabId, details.url); µb.tabContextManager.unpush(tabId, details.url);
} }