gorhill / uMatrix

uMatrix: Point and click matrix to filter net requests according to source, destination and type
GNU General Public License v3.0
4.55k stars 470 forks source link

uMatrix blocks service worker even if it's disabled #933

Closed AFE-GmdG closed 6 years ago

AFE-GmdG commented 6 years ago

uMatrix blocks service worker even if uMatrix is disabled

Intro

Hello, I'm one of the developers of just-run.it and we're using service workers for some caching and offline features. Since, I'm the only one in our team which is using uMatrix. I found some weird behavior of uMatrix in conjunction with service worker:

Environment

Windows 10 Pro Google Chrome, Version 64.0.3282.119 (Offizieller Build) (64-Bit) uMatrix 1.3.2

relevant uMatrix Settings

https-strict: * true
https-strict: behind-the-scene false
matrix-off: about-scheme true
matrix-off: chrome-extension-scheme true
matrix-off: chrome-scheme true
matrix-off: localhost true
matrix-off: opera-scheme true
referrer-spoof: behind-the-scene false
* * * block
* * css allow
* * frame block
* * image allow
* 1st-party * allow
* 1st-party frame allow

matrix-off: just-run.it true

Steps to reproduce

expected behavior

Just run it work correctly

actual behavior

Just run it failed to load the service worker with a error in the console Failed to load resource: net::ERR_BLOCKED_BY_CLIENT

additional tests

If you deactivate the uMatrix addon at all in the chrome addon settings page the website is running correctly.

additional screenshots

image image image

gorhill commented 6 years ago

You removed built-in rule matrix-off: behind-the-scene true. Did you look at the behind-the-scene requests in the logger?

uBlock-user commented 6 years ago

Won't happen unless you add a rule like no-workers: * true or no-workers: just-run.it true