-
Notifications
You must be signed in to change notification settings - Fork 85
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
Service worker with navigation preload causes blocking of navigation requests #608
Comments
That's the only reason. I cannot reproduce this issue. |
FYI, that filter doesn't exist in Easy Privacy, after installing uBlock Origin, force update your filters to get rid of outdated third-party filters which come with the extension package. |
@uBlock-user Could it be that you cannot reproduce this issue because you've disabled navigation preload? To quote you from uMatrix issue #156: "As per chrome://serviceworker-internals, navigation preload enabled is set to false, this is why it seems I can't reproduce." @gorhill was then able to reproduce the issue. The filter rule cannot be the sole issue because the problem goes away if you skip step 1 (such that there is no service worker and no navigation preload). Furthermore, I'm not the only one experiencing this issue. It was originally reported by one of our users (https://www.computerbase.de/forum/threads/login-probleme-offline-meldungen-seit-14-mai-2019.1872153/post-22701821) and I successfully reproduced it (using a fresh Chrome profile) to submit this bug report. |
@steffenweber Did you force update your filters yet ?
It's disabled by default, see https://github.com/gorhill/uBlock/wiki/Dashboard:-Settings#disable-pre-fetching
Nowhere there I see the user reporting it for uBlock Origin.
Disabling the adblocker is a terrible way to recognise uBO as the culprit, that doesn't prove anything at all. Investigation starts with the logger. |
Afaik, prefetching/preloading is about
As you've meanwhile noticed, our user has identified uBlock Origin as the problem in his second post.
I agree that it would have been useful if he had provided the logs himself but I think it doesn't change much if I can provide the logs that you are asking for. Here is another screencast which shows that force updating the filters doesn't change anything: https://www.youtube.com/watch?v=9t2D0CEs-2Y Please try to reproduce the issue by following exactly what I do in the video. |
I can reproduce your issue with the below STR.
|
Now add |
You're correct, that will not help. Add |
Easy Privacy has this filter |
Thank you for the explanation why However, similar to uMatrix Issue #156, the root cause is that the navigation preload request has the type |
That's a whole another issue and not relevant to this bug because here we have a terrible filter added in Easy Privacy by Easylist team. Secondly, this issue is not similar to uBlockOrigin/uMatrix-issues#156 except for the fact you're seeing the Offline page which is really mis-leading in this case.
There is no preload navigation being blocked here, this a site breakage issue caused by a badfilter which is not surprising given it happens every now and then -- https://github.com/uBlockOrigin/uBlock-issues/issues?q=is%3Aissue+is%3Aclosed+label%3Afilterlist You should appeal to Easylist team and have |
I'm sorry, I meant to say uMatrix Issue #155 (not 156). uMatrix Issue #155 is very similar to this issue here because both bugs are triggered by the type |
This issue will happen regardless, because main_frame = document and $document != $image which will satisfy the condition required for
uBlock doesn't see/deal with cookies at all, this is why I suggest you not compare uMatrix with uBO, they're similar, not the same.
Why would there be a workaround when there's no issue with uBO itself ? This is something that doesn't make sense to me. You keep insisting that the issue is with uBO, while I proved here that there is no issue. Site breakage is not a uBlock issue and never has been. |
Why doesn't this issue exist if there is no service worker (i.e. skip step 1 in the steps to reproduce)? My guess is that uBlock special-cases The issue occurs as soon as there is a service worker with navigation preload (which causes the request type to be Edit: If you add a filter |
From uBO's perspective, it's first a filter issue. Once the filter issue is solved, there is a chance it become a uBO issue because of uBlockOrigin/uMatrix-issues#156, for example if someone blocks all 3rd-party in dynamic filtering pane. Just as with uBlockOrigin/uMatrix-issues#156, in the end it's a browser issue, because the context given to uBO by the browser is incorrect, So the filter issue can be fixed, but further issues arising from uBlockOrigin/uMatrix-issues#156 can't be fixed. |
because of a bad filter match.
if it was a uBO issue it would still happen without service worker. Service worker only triggers the Chromium issue, nothing else. In the end, If uBO's doing anything, it's only triggering an underlying browser issue at best, that doesn't make it a uBO issue automatically.
The site is broken same as before, ignore the Offline msg which is misleading as I told you before, it's site breakage, |
Prerequisites
Description
If a website has a service worker that uses Navigation Preload then uBlock Origin thinks that such navigation preload requests are subresource requests and blocks them if they match a filter. I'm pretty sure that this is the equivalent of the uMatrix issue #156.
A specific URL where the issue occurs
https://www.computerbase.de/forum/threads/google-analytics-und-dsgvo.1874439/
Steps to Reproduce
Expected behavior:
The page should load fine.
Actual behavior:
The page load is blocked because uBlock origin thinks that this navigation is a subresource request and because an EasyPrivacy filter coincidentally matches the "google-analytics" part of the URL.
Screencast
https://www.youtube.com/watch?v=pdDTjVT9y20
Your environment
The text was updated successfully, but these errors were encountered: