Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requests of type font not handled in Firefox #185

Closed
norstbox opened this issue May 8, 2015 · 2 comments
Closed

Requests of type font not handled in Firefox #185

norstbox opened this issue May 8, 2015 · 2 comments

Comments

@norstbox
Copy link

norstbox commented May 8, 2015

Open any web page which uses Web Fonts, for example MDN

  • Network request logger show no requests of type font
  • Web font can't be blocked by using filter.

Chromium free from the above issues.

uBlock 0.9.6.0 and 0.9.6.1-rc.0
Firefox 37
Windows 8.1

@lewisje
Copy link

lewisje commented May 9, 2015

I noticed that the vAPI code (an attempt at cross-platform compatibility) does try to recognize webfonts as having type font even though the webRequest API does not have that listed, and presumably they would be considered other: https://developer.chrome.com/extensions/webRequest#type-ResourceType

        var ext = tail.slice(pos) + '.';
        if ( '.eot.ttf.otf.svg.woff.woff2.'.indexOf(ext) !== -1 ) {
            details.type = 'font';
            return;
        }

I'm not sure where in the code there is any attempt to convert font into a type recognized by webRequest, before deciding to block it.

EDIT I am an idiot because I ended up responding as if the problem were in Chrome, rather than Firefox.

@gorhill
Copy link
Owner

gorhill commented May 9, 2015

(Never mind, I thought I was commenting on uMatrix.)

I know why this happens, will fix tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants