Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

[Chrom*] connections not being blocked after reload #234

Closed
requiredregistration opened this issue May 28, 2015 · 16 comments
Closed

[Chrom*] connections not being blocked after reload #234

requiredregistration opened this issue May 28, 2015 · 16 comments

Comments

@requiredregistration
Copy link

going to http://the-witness.net/, gets the doc by opening 2 connections, after reloading, connections are opened to google servers also

no problem in firefox, only 1 connection is opened and the requests to google are blocked

latest stable versions, firefox with 0.9.1.1, chrome with 0.9.1.2-dev.1

the rules

https-strict: * true
* * * block
* * frame block
@requiredregistration
Copy link
Author

when "Prefetch resources to load pages more quickly" is enabled, it causes the above issue

when it is disabled, it behaves as in firefox

@requiredregistration requiredregistration changed the title [Chrome] connections not being blocked after reload [Chrom*] connections not being blocked after reload May 28, 2015
@gorhill
Copy link
Owner

gorhill commented May 28, 2015

There is so much uMatrix can do with Chrome's prefetch, it's why it's advised to turn that feature off. You should see the requests from prefetch in the behind-the-scene matrix though, and if you want to use pre-fetch, this is where you will have to filter these requests if you want to block them.

Please confirm you see them in the behind-the-scene matrix, and if so, then close the issue, there is nothing uMatrix can do, the requests which are behind-the-scene are so because it's not possible for uMatrix to associate them with a specific tab.

Browsers' prefetch features are incompatible with privacy minded habits anyways.

@requiredregistration
Copy link
Author

i didn't enable the option and i always have it disabled, it is enabled by default for new users

i came across this issue when i ran chrome as a new user, without going to the settings first, i installed and configured umatrix, and i saw that connections to google servers were being opened when reloading

when i learned that it was the option that caused the issue, i closed the issue here, but i reopened it because i didn't know if you were aware of the issue and if you were planning to address the issue if it was possible to address it

the requests that are sent by the resource prefetcher are not logged

@gorhill
Copy link
Owner

gorhill commented May 29, 2015

I am trying to reproduce. First, the setting is:

[ ] Predict network actions to improve page load performance

Right?

Second, you say you see the issue after forcing a refresh of the page? I tried this, and google was reported in the logger and blocked as expected. How did you check for those connections?

I want precise and concise step by step on how to reproduce -- I just want to follow them without having to guess anything. Once I reproduce and I confirm that uMatrix/uBlock are not called for these pre-fetched requests, will have to document prominently for users to disable that feature..

@requiredregistration
Copy link
Author

the setting is Prefetch resources to load pages more quickly, as i mentioned in the first comment

when that is enabled, the requests to fonts.googleapis.com bypass umatrix, and i can see the google connections at chrome://net-internals/#events and with network analysis tools

in the umatrix logger it shows that the request was blocked, but that is false

@gorhill
Copy link
Owner

gorhill commented May 30, 2015

Prefetch resources to load pages more quickly

Ok, they change the wording in Chrome vs. Chromium.

Ok here is what I see using chrome://net-internals/#events, if the setting is enabled, the TCP connection is made before the details of the request is passed uMatrix/uBlock, ifthe setting is disabled, the TCP connection is made after, if and only if the request is not blocked by uMatrix/uBlock.

Looking through the Chrome API, I see there is an API to disable that setting. So given the nature of uMatrix/uBlock, I will force this setting to be disabled.

@requiredregistration
Copy link
Author

here are the differences:

Chrome
chrome

Chromium
chromium

thank you

@dorkbox
Copy link

dorkbox commented Jun 1, 2015

There has to be a better way to do this -- changing users privacy settings (even for something as trivial as this) should never happen. Perhaps a dialog explaining what to do?

@gorhill
Copy link
Owner

gorhill commented Jun 1, 2015

@dorkbox uBlock/uMatrix's job is to block network requests, and users trust that it does what it says it does. Not disabling pre-fetching betrays that trust [1], as the reality is that most people will install and not care to RTFM. I have users' interests at heart first and foremost, including those who don't RTFM, so this will stay.


[1] Just opening a TCP connection causes the remote server to become aware of one's IP address, with no data yet having been transferred. This is not compatible with a privacy-minded extension, for which it is expected the remote server of a blocked network request is completely unaware of your existence.

@dorkbox
Copy link

dorkbox commented Jun 1, 2015

@gorhill I appreciate your honesty in this matter, as well as the work you and others have done. Your given points make sense, and I agree.
If I may make a suggestion, would you consider linking the commit that made this change into the wiki? I understand this would be terrible idea for every change made, but in this specific case, it would help those wanting to follow the privacy changes that were made, rather than having to dig through the commit history to find it.

@gorhill
Copy link
Owner

gorhill commented Jun 1, 2015

@dorkbox Done.

@dorkbox
Copy link

dorkbox commented Jun 1, 2015

@gorhill Perfect. Thank you.

@ghost
Copy link

ghost commented Feb 19, 2017

in Chromium 58.0.3018.0 (Developer Build) (64-bit)
"Use a prediction service to load pages more quickly" is always shown as set to on if either uMatrix or uBlock Origin extensions are Enabled. It's probably a chromium bug.
screenshot: https://bugs.chromium.org/p/chromium/issues/detail?id=658618#c6

@gorhill
Copy link
Owner

gorhill commented Feb 19, 2017

Yes I've seen this with uBlock Origin too. Not sure what is going on with Chrome's redesigned Settings page.

@gorhill
Copy link
Owner

gorhill commented Feb 19, 2017

According to chrome://predictors/ (select "Resource Prefetch Predictor" tab), it is really disabled, even though it shows as enabled with uBO or uMatrix. So the issue appears to be only a rendering issue on Chrome's Settings page.

@ghost
Copy link

ghost commented Feb 22, 2017

Looks like it's about to get fixed: https://bugs.chromium.org/p/chromium/issues/detail?id=693301#c4
<3

Noxgrim pushed a commit to Noxgrim/uMatrix that referenced this issue Dec 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants