mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
fixed comment
This commit is contained in:
parent
0010bfc102
commit
5a263bf39d
1 changed files with 3 additions and 5 deletions
|
|
@ -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 ) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue