https-everywhere icon indicating copy to clipboard operation
https-everywhere copied to clipboard

Redirect conflict with uBlock Origin

Open terrorist96 opened this issue 8 years ago • 70 comments

Type: other

This extension failed to redirect a network request to https://s7.addthis.com/js/300/addthis_widget.js#pubid=tenthamendment because another extension (uBlock Origin) redirected it to chrome-extension://cjpalhdlnbpafiamejdnhcphjbkeiagm/web_accessible_resources/af3c919ee9a3d97f5dedaf2f8bec146a.javascript?secret=qqesz4qhqw5h.

Looks like a surrogate redirect conflict?

@gorhill

terrorist96 avatar Mar 21 '18 23:03 terrorist96

I'm getting the same, in my case with a Google Analytics URL.

Appeared today with version 2018.2.26

This extension failed to redirect a network request to https://www.google-analytics.com/analytics.js because another extension (uBlock Origin) redirected it to chrome-extension://cjpalhdlnbpafiamejdnhcphjbkeiagm/web_accessible_resources/59fb24a2d12455d15bea20980e8a6801.javascript?secret=jblm6nqcej3g.

blackhelicoptersdotnet avatar Mar 22 '18 03:03 blackhelicoptersdotnet

This extension failed to redirect a network request to https://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-59c545b43f9cd35b because another extension (uBlock Origin) redirected it to chrome-extension://cjpalhdlnbpafiamejdnhcphjbkeiagm/web_accessible_resources/af3c919ee9a3d97f5dedaf2f8bec146a.javascript?secret=nrw0ygwf8axk.

ghost avatar Mar 22 '18 04:03 ghost

https://github.com/gorhill/uBlock/issues/1170#issuecomment-168989068

gorhill avatar Mar 22 '18 08:03 gorhill

@gorhill Your comment says "The resources used by uBO for redirection purpose are found in this file." but the linked file, https://github.com/gorhill/uBlock/blob/master/assets/ublock/resources.txt , doesn't exist anymore. Is there an equivalent?

jeremyn avatar Mar 22 '18 15:03 jeremyn

I corrected the link, the resource files have been moved to a different repo since I wrote this comment: https://github.com/uBlockOrigin/uAssets/blob/master/filters/resources.txt.

gorhill avatar Mar 22 '18 15:03 gorhill

Thanks @gorhill .

As an enhancement for HTTPS Everywhere, we might take resources.txt and use it to create exceptions for the various rewrites it does. For example we could add a checkbox that says "Exclude uBlock Origin rewrites" which, if checked, will not rewrite the items in resources.txt, and instead let uBlock Origin handle them.

I'm not saying this is a good idea to do, but it's something that could be done.

jeremyn avatar Mar 22 '18 15:03 jeremyn

I would appreciate this 'resources.txt' as exeptions, because honestly I don't want https everywhere to be redirecting me to tracking sites I explicitly block with ublock; the way it works now, trackers totally being blocked from loading, is the preferred scenario. I just want the ! to disappear making me think there are 'actual' problems with https on the site I am visiting.

mystica555 avatar Mar 22 '18 19:03 mystica555

@terrorist96 @blackhelicopters @ariksc @mystica555 Can you all please edit your comments to provide a URL where you go to see the problem? Not the error from the developer console, but the URL in your browser's address bar.

jeremyn avatar Mar 22 '18 20:03 jeremyn

I'll try to post it if I come across it again. BTW, here's the PR Privacy Badger made to avoid this issue from occurring: https://github.com/EFForg/privacybadger/pull/1905

terrorist96 avatar Mar 22 '18 21:03 terrorist96

@jeremyn

we might take resources.txt and use it to create exceptions for the various rewrites it does

In that case resources.txt is not the right place for this, that would rather be the filters themselves, those with the redirect= option in any of the filter lists in https://github.com/uBlockOrigin/uAssets/tree/master/filters. There is a lots of these, and these lists are constantly edited. For the specific case here, this would be this filter:

||addthis.com/*/addthis_widget.js$script,redirect=addthis.com/addthis_widget.js

Which in plain language means: redirect all network requests for addthis_widget.js from addthis.com to a local, neutered version of the script.

gorhill avatar Mar 22 '18 22:03 gorhill

This extension failed to redirect a network request to https://www.google-analytics.com/ga.js because another extension (uBlock Origin)

I have also had

This extension failed to redirect a network request to https://s7.addthis.com/js/300/addthis_widget.js#pubid=tenthamendment because another extension (uBlock Origin) redirected it to chrome-extension://cjpalhdlnbpafiamejdnhcphjbkeiagm/web_accessible_resources

madusmacus avatar Mar 23 '18 12:03 madusmacus

@gorhill Thanks. So it sounds like the logic for us might be: go through the files in https://github.com/uBlockOrigin/uAssets/tree/master/filters , look for filter lines that start with || and include redirect=, and add those partial-URLs to a list controlled by the checkbox I suggested earlier at https://github.com/EFForg/https-everywhere/issues/14961#issuecomment-375353304.

Why is this issue popular suddenly? Did something change recently in uBlock Origin?

jeremyn avatar Mar 23 '18 15:03 jeremyn

Why is this issue popular suddenly? Did something change recently in uBlock Origin?

I wondered. uBO has supported redirection since quite a while now, to data: URIs. However in a recent release uBO will redirect to web accessible resources instead of data: URIs. This has changed to solve long standing issue https://github.com/gorhill/uBlock/issues/2823. Not sure whether this is what is causing more reports about this -- redirecting to data: URIs was also causing such conflicts before (as pointed out at old issue https://github.com/gorhill/uBlock/issues/1170).

gorhill avatar Mar 23 '18 15:03 gorhill

All of the reports here so far are reporting redirects to something under web_accessible_resources, so the recent uBlock Origin change may be related. But it sounds like these reporters should have seen the same error before, except it would have been to data: instead of web_accessible_resources, right?

jeremyn avatar Mar 23 '18 15:03 jeremyn

it would have been to data: instead of web_accessible_resources, right?

Yes, it's what I find puzzling.

gorhill avatar Mar 23 '18 15:03 gorhill

Been getting this on two different computers this week. Both with this message:

This extension failed to redirect a network request to https://widgets.outbrain.com/outbrain.js because another extension (uBlock Origin) redirected it to chrome-extension:[LONGSTRING]/web_accessible_resources

Jed-Tech avatar Mar 23 '18 16:03 Jed-Tech

Pinging @Bisaloo @brainwane @gloomy-ghost @Hainish @J0WI @wonderchook to let them know about this.

jeremyn avatar Mar 23 '18 16:03 jeremyn

I'm also getting this error in my extensions, the variant that cites google analytics and uBlockOrigin. I don't want to unblock that url in UBO and tried to find a way to exclude it from HTTPSEverywhere and couldn't.

HvyMtlChaos avatar Mar 25 '18 03:03 HvyMtlChaos

Since this is only a warning and does not affect the functionality of either uBlock or HTTPS Everywhere, I was going to vote for wontfix. But after having a look at the comments on Chrome store, it looks like it's making many users worried.

I'm still not sure how to fix this though...

Bisaloo avatar Mar 26 '18 08:03 Bisaloo

There's a very obvious indication by chrome that something is wrong, which I have never seen before. People have to be worried with that icon appearing.

languitar avatar Mar 26 '18 08:03 languitar