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
Multiple entries for the same resources in the logger (Firefox only) #1122
Comments
From what I can see when stepping in the debugger, uBO is reporting accurately, those duplicated blocked requests were really fired twice by Firefox to uBO's onBeforeRequest() listener. They are also labelled as distinct network requests as the have different request ids. |
Thanks for the quick response.
With uBO disabled, I see that in Network devtool, there's only one For reference, the same occurs in Google Chrome: So, since these requests are really fired twice by Firefox, If that's the case, I'd like to ask please consider adding an option in logger, to only display |
Even using DevTools built-in blocker creates duplicate: It seems Firefox is requesting resource second time in case of error? Even if Chrome is doing this it does not send all requests to extensions. For example 301 redirects are always visible in Firefox but not in Chrome - gorhill/uBlock-for-firefox-legacy#229 (comment) |
Browser quirk ? I have noticed duplicates in Chrome too many times, always thought this was browser behavior or website was forcing a request until the content got loaded |
Declined, I rather have the logger output exactly what is happening inside uBO. |
Prerequisites
Description
The issue is that, only in Firefox (no issue in Google Chrome), there are multiple entries for the same resources in uBO logger.
But, when I disable uBO via about:addons,
there are no such multiple network request entries for these resources in the Network devtool.
For reference I quote the only relevant comment I found, by @gorhill , in gorhill/uBlock#391 (comment)
(It's from 5 years ago, at that time Firefox was at version 38) :
If the above still stands stands (I mean, with the current Firefox version 77), and it's not a uBO issue but a Firefox issue, should I report it to bugzilla.mozilla.org ? In such case, could you please help me with providing technical details to include in my report?
A specific URL where the issue occurs
Here are two example URLs (it occurs consistently/every time) :
Steps to Reproduce
In a fresh Firefox 77.0.1 profile with only uBO installed
Open uBO logger
Open Network devtool and tick the
Disable cache
checkbox, or presh Ctrl+F5(bypassing cache) on each pageLoad https://majorgeeks.com/
Switch to uBO logger, for convenience filter the logger output to view only "Blocked* entries:
notice that the following entries appear twice:
Load https://rarbgproxy.org/torrents.php
Notice in uBO logger that the following entry appears twice:
Expected behavior:
There should be no multiple entries in the logger
(for comparison there are no such entries in uBO logger with Google Chrome)
Actual behavior:
There are several multiple entries in the logger.
Your environment
The text was updated successfully, but these errors were encountered: