fixed comment

This commit is contained in:
gorhill 2015-06-11 15:18:32 -04:00
parent 0010bfc102
commit 5a263bf39d

View file

@ -743,11 +743,9 @@ vAPI.net.registerListeners = function() {
// fail at transposing `other` into `font` for URLs which are outside // fail at transposing `other` into `font` for URLs which are outside
// what is expected. At least when headers are received we can check // what is expected. At least when headers are received we can check
// for content type `font/*`. Blocking at onHeadersReceived time is // for content type `font/*`. Blocking at onHeadersReceived time is
// less worst than not blocking at all. Also, ideally vAPI shouldn't // less worse than not blocking at all. Also, due to Chromium bug,
// know about uBlock, but we have to deal with reality here. Also, // `other` always becomes `object` when it can't be normalized into
// due to Chromium bug, `other` always become `object` in case it // something else. Test case for "unfriendly" font URLs:
// could not be normalized into something else.
// Test case for "unfriendly" font URLs:
// https://www.google.com/fonts // 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 ) {