1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-19 03:05:22 +02:00

Commented to document test case where this happens

This commit is contained in:
gorhill 2015-06-11 15:10:17 -04:00
parent 6d023e2a52
commit 98af936d3c

View File

@ -747,6 +747,8 @@ vAPI.net.registerListeners = function() {
// know about uBlock, but we have to deal with reality here. Also,
// due to Chromium bug, `other` always become `object` in case it
// could not be normalized into something else.
// Test case for "unfriendly" font URLs:
// https://www.google.com/fonts
if ( details.type === 'object' ) {
if ( headerValue(details.responseHeaders, 'content-type').lastIndexOf('font/', 0) === 0 ) {
details.type = 'font';