From ada732575af1bfa2536dcbdfe074641c6ec44042 Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 24 Apr 2015 07:16:46 -0400 Subject: [PATCH] forgot to document fix in code re. #111 --- src/js/traffic.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); }