-
Notifications
You must be signed in to change notification settings - Fork 77
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
uBO intermittently don't block scripts #128
Comments
Put back the template and fill in all the requested info. |
Probably a duplicate of gorhill/uBlock#1327. |
I was just going to tag it with that bug. |
Yes, this is the same issue I was experiencing. I tried to enable On other machines I have tried setting I don't know what the best fix is, but both methods seems to work. |
|
I am pretty sure Firefox's fix does not specifically fix the issue for uBO, as uBO never tells Firefox when all its filter lists are loaded. The fix is probably that uBO is guaranteed to be launched after uBO has been launched. If so, |
This is still not fixed. I tested with:
When I reopen Firefox, it will load the image: |
The setting is experimental, it may work and may not due to race condition. |
Yes, I understand that. I tested it myself because there's a lot of information that may lead people to think that it's fixed (including a Firefox update), when it's not. The only workaround I know of is to just leave an open tab (about:blank, about:home, about:newtab, whatever) selected when closing Firefox, so that in the next session that will be the active tab, and not one with content that should have been blocked. |
or simply don't restore your session, restoring your session causes the race condition to trigger in all browsers and they simply don't wait for extensions to load. This behaviour, unfortunately, is by-design. Until the browser-devs fix it as mentioned in the wiki, do not consider it to be fixed. This issue in particular is invalid because the race condition prevented uBO from doing what it was supposed to do, so not a uBO issue but rather another browser issue mentioned by gorhill is the cause. |
Duplicate of gorhill/uBlock#1327 |
I just recently read about this here https://bugzilla.mozilla.org/show_bug.cgi?id=1501159#c2 |
This is what uBO is doing if |
I try commenting out
|
The "suspend" listener is removed once uBO install the listener used for filtering. "Top level scope" means the listener is added not through an event, which is what uBO is doing. Don't modify the code and see if uBO is blocking early requests -- uBO will report early requests blocked in browser console (Firefox) or its own console (Chromium). |
I get a "listener not re-registered" in browser console at launch (when using I am going to have to read this bug entry to understand what I need to do -- I thought I had to only register a listener early... |
A bit clearer here: https://bugzilla.mozilla.org/show_bug.cgi?id=1503721. My understanding is that uBO should not add/remove a listener which purpose is specifically to handle early requests and nothing else -- it has to be added and never removed. |
No matter what, I am not able to get rid of the error message (Nightly) -- I register a global listener at the global lexical scope and never remove it, still:
|
This snippet blocks early requests if put inside
It does NOT work for URLs specified in command line (but works for subresources). Works for pages resumed from previous session. |
Back a versions ago (Chromium 55 to 60 I guess), if That behaviour was perfect and no connection was made, but for some reason went away and no longer happens, can this behaviour be brought back ? |
Blocking whole document was causing gorhill/uBlock#3130. |
That was affecting Firefox only though.. |
Could you add parameter in the setting which can be set via advanced settings so as to bring that behaviour ? Something like |
My code snippet should block everything unconditionally - something is wrong in Firefox. Interesting thing - ABP seems to work fine on startup. Of course they don't support "document" blocking, but all subresourcess (except iframes?) seems to be blocked. |
Related issues: - #2067 - uBlockOrigin/uBlock-issues#128 Related mozbug issue: - https://bugzilla.mozilla.org/show_bug.cgi?id=1503721
I want to block ANY script from executing, so I have added the following rules to "My rules", everything else is default:
However, intermittently uBlock Origin still allow scripts to run. I notice this when
opening Firefox and see that Google autocomplete is working, a feature that requires
Javascript.
If I open the logger and type something in the Google search field,
xhr
isprinted as the type of request. If the page is reloaded, scripts are blocked as
expected.
I'm using Firefox 61.0.1 and uBlock Origin 1.16.12, but I have seen this behaviour
across multiple versions of both Firefox and uBlock Origin.
The text was updated successfully, but these errors were encountered: