diff --git a/src/js/traffic.js b/src/js/traffic.js index f854e6b38..6530eb921 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -352,7 +352,11 @@ var onRootFrameHeadersReceived = function(details) { var µb = µBlock; // 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 ) { µb.tabContextManager.unpush(tabId, details.url); }