Initial navigation blocked if website has service worker that enables navigation preload #156
Comments
Site loads fine, no such offline error page is shown. Secondly, no such "service worker navigation preload request" error appears in the console either. |
I am able to reproduce. |
Screen capture of the issue in Chrome 75 Beta and uMatrix 1.3.17rc1: https://youtu.be/r7qKTpD-fc0 (I've just read that you are now able to reproduce the issue but maybe the video can still be useful. 🙂) |
Unfortunately, Chrome is passing bad information to uMatrix: It's telling uMatrix that the network request of type I consider this bad information to be a Chromium bug. |
When I search
It seems to not be specific to Service Worker with Navigation Preload. |
@mikhaelkh I believe documentUrl commit appears to be the cause. |
That commit just made the browser bug more prominent, it's happening also because Chrome is feeding bad information to uBO. However I think I can mitigate this one because the request type is |
Thanks, this spurious deletion is literally trolling me on youtube and github where I'm losing my cookie based settings randomly every now and then and me having to set them again and again. |
Related discussion/issue: - uBlockOrigin/uMatrix-issues#156 (comment) - uBlockOrigin/uMatrix-issues#155 Due to a Chromium issue about not providing the proper context information, a negative side-effect was introduced with fix to #155. This commit will force the originator of a network request of type `main_frame` to be that of the request URL itself, i.e. the originator of a top-level document request is the requested document itself.
Closing since there is nothing which can be done to work around this Chromium issue -- users will have to create rules specific to Chromium to deal with this. |
You said that "Chrome is passing bad information to uMatrix". This sounds like a bug in Chrome to me. Could you report this issue at https://crbug.com? I'm not familiar with the code of uMatrix or the WebExtensions API. |
I have filed a Chrome bug report: https://bugs.chromium.org/p/chromium/issues/detail?id=965960 Please leave a comment if I've missed something. |
Prerequisites
Description
If a website has a service worker that enables Navigation Preload then such navigation preload requests are blocked by uMatrix. This then causes the page to fail to load.
A specific URL where the issue occurs
https://www.computerbase.de/
Steps to Reproduce
What should happen: The navigation preload request for https://www.computerbase.de/forum/ should pass the checks of uMatrix. The page should load fine.
What actually happens: The navigation preload request for https://www.computerbase.de/forum/ is blocked by uMatrix (see the screenshot below). This causes our service worker to show an "offline" fallback/error page.
(Reproducing this issue is not 100% reliable. Afaik, Chrome only sends navigation preload requests when the service worker is not already running. Maybe you need more than one try to reproduce this issue. You can try to manually stop the computerbase.de service worker in the "Application" tab of the Chrome developer tools between steps 2 and 3.)
This issue was originally reported by one of our users here: https://www.computerbase.de/forum/threads/login-probleme-seit-14-mai-der-aktive-benutzer-hat-sich-geaendert.1872153/post-22667228
Ruleset
(I've used a fresh Chrome profile and didn't add/delete any rules. )
Supporting evidence
Your environment
The text was updated successfully, but these errors were encountered: