From ca8d24fb08922d222f976b25775c19b60f6926e8 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sun, 22 Feb 2015 09:13:08 -0500 Subject: [PATCH] this fixes #862 --- platform/chromium/vapi-background.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index a993347..18db684 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -449,9 +449,15 @@ vAPI.net.registerListeners = function() { } var path = µburi.path; var pos = path.lastIndexOf('.'); + + // https://github.com/gorhill/uBlock/issues/862 + // If no transposition possible, transpose to `object` as per + // Chromium bug 410382 (see below) if ( pos === -1 ) { + details.type = 'object'; return; } + var ext = path.slice(pos) + '.'; if ( '.eot.ttf.otf.svg.woff.woff2.'.indexOf(ext) !== -1 ) { details.type = 'font';