mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01: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
|
||||
// what is expected. At least when headers are received we can check
|
||||
// for content type `font/*`. Blocking at onHeadersReceived time is
|
||||
// less worst than not blocking at all. Also, ideally vAPI shouldn't
|
||||
// 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:
|
||||
// less worse than not blocking at all. Also, due to Chromium bug,
|
||||
// `other` always becomes `object` when it can't 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 ) {
|
||||
|
|
Loading…
Reference in a new issue