mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-02 00:59:38 +02:00
Commented to document test case where this happens
This commit is contained in:
parent
6d023e2a52
commit
98af936d3c
@ -747,6 +747,8 @@ vAPI.net.registerListeners = function() {
|
|||||||
// know about uBlock, but we have to deal with reality here. Also,
|
// know about uBlock, but we have to deal with reality here. Also,
|
||||||
// due to Chromium bug, `other` always become `object` in case it
|
// due to Chromium bug, `other` always become `object` in case it
|
||||||
// could not be normalized into something else.
|
// could not be normalized into something else.
|
||||||
|
// Test case for "unfriendly" font URLs:
|
||||||
|
// https://www.google.com/fonts
|
||||||
if ( details.type === 'object' ) {
|
if ( details.type === 'object' ) {
|
||||||
if ( headerValue(details.responseHeaders, 'content-type').lastIndexOf('font/', 0) === 0 ) {
|
if ( headerValue(details.responseHeaders, 'content-type').lastIndexOf('font/', 0) === 0 ) {
|
||||||
details.type = 'font';
|
details.type = 'font';
|
||||||
|
Loading…
Reference in New Issue
Block a user