-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Brave connects to googletagmanager.com #14027
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
Comments
cc @ryanbr |
Hmm, im not able to reproduce on Nightly (1.25.13) at least (using mitmproxy and MacOS). @fabi-hub are you still seeing on current versions? I wonder if the script you're seeing might be calling it from the service worker, in which case it should be fixed as of #13781 Can you let us know if you're still seeing @fabi-hub, as this would be a serious problem if this is still happening |
I just downloaded Version 1.25.13 and it didn't changed for me. Gorhill explained why this is happening in Egde and Chome with uBlock Origin: "The blocked resources won't be parsed/processed/executed in the browser, however the pre-connections and DNS requests won't be prevented: https://imgur.com/a/HCY7Qdx." Link When I look into the .js file from Googletagmanager, I get this:
*/ (function() { So at least not Googles code, but why uBlocks code? I don't have uBlock installed in Brave. |
We ship the same resource replacements that uBlock Origin ships (more details here, we will also be shortly announcing how Brave will be generating and contributing additional resource replacements too. If you're seeing the above uBlock resource replacement, you can be confident that nothing is being fetched from Google (my local test shows the same). About why Fiddler reports a connection, I can't say at the moment (I do not have a Windows machine I can test on, though I am asking around Brave if others do). Its possible that what Gorhill is saying is correct, but it would be surprising; we disable DNS prefetching in general in Brave. It may be the case that Chrome is pre-connecting before a blocking decision is made (that would be very surprising, extremely bad, and almost certainly a bug in Chrome, Brave, and other Chromium browsers). It wouldn't be a serious privacy leak (the preconnect setup doesn't include anything about the context, or cookies, or similar), but its still IP and unnecessary network work. But, maybe that is the case, and the certainly stranger things have happened! I will get back to you ASAP with more information. Thank you for following up on the issue! |
just to follow up again real quick, after dipping into Wireshark, I am able to see DNS (and what i think is TLS preconnect) connections related to requests that end up being blocked (and, so are wasteful). Again, I think the privacy loss here is small (given the communication being done), but its not zero, and the current behavior is definitely wasteful, so its something we should sort out. I'm talking with other Brave folks now, and I hope to have an update shortly |
One more quick update here. At least some of what you're seeing is the result of our CNAME decloaking implementation. This new issue, #15302, has more details, but, suffice it to say, this is indeed a bug (or at least, a place for perf improvement), and we're on it! Its odd if Chrome shows the same thing though; i have no explanation for that! |
Last, I'm going to close this issue in favor of #15302, since that describes the fix that'll be implemented, an so can be tagged in a PR. If you are interested, please follow this topic there. And again, thank you very much for taking the time to report this! |
Thanks a lot, |
Not sure if the fix has been implemented but I seem to have the same issue, using ublock origin with brave seems to allow all the network requests through even though they are blocked as well as just brave blocking. This link as an example. Excuse the large amount of blocklists. :D |
Hi @Dryader , the fix for this is being worked on here #15302 . The short of it is
Hope that helps (and all credit to @antonok-edm who is working on the fix) |
@pes10k good to hear, thanks for replying. :D |
Description
Brave connects to googletagmanager.com, when I open macrumors.com or other sites who use googletagmanager.
It's not happening with uBlock Origin.
Steps to Reproduce
Actual result:
First Brave shows googletagmanager as blocked.


But if you look into Fiddler you'll see it's not
Expected result:
No connection to googletagmanager.com just like uBlock Origin
Reproduces how often:
Everytime
Brave version (brave://version info)
1.19.92 Chromium: 88.0.4324.152 (Offizieller Build) (64-Bit
Miscellaneous Information:
I used Fiddler for Windows
https://www.telerik.com/
The text was updated successfully, but these errors were encountered: