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

Just wanted to leave a note here that I'm still occasionally receiving this error on HTTPS Everywhere 2018.4.11

lightheaded avatar Jun 11 '18 06:06 lightheaded

@lightheaded thanks, I've pinged Chromium again on this issue: https://bugs.chromium.org/p/chromium/issues/detail?id=111700#c37

Hainish avatar Jun 13 '18 02:06 Hainish

@lightheaded Having the exact web page where this happens would be useful to determine whether this is really the same exact issue identified here.

gorhill avatar Jun 13 '18 09:06 gorhill

@gorhill it's hard to track as it seemingly happens at random. But today I caught it blocking something on Amazon:

This extension failed to redirect a network request to https://g-ecx.images-amazon.com/images/G/02/kindle/merch/2017/ACC/Promo/ACCBundles//UK_Bundle_Muscat_160X97.jpg because another extension (HTTPS Everywhere) redirected it to https://d1ge0kk1l5kms0.cloudfront.net/images/G/02/kindle/merch/2017/ACC/Promo/ACCBundles//UK_Bundle_Muscat_160X97.jpg

lightheaded avatar Jun 27 '18 10:06 lightheaded

@lightheaded I am not aware of any filters in uBO which would want to redirect the URL your are mentioning.

Also, I find it surprising that HTTPS Everywhere would want to redirect a https: URL to another https: URL. The one related rule in HTTPS-E is to redirect from http: to https::

  • https://github.com/EFForg/https-everywhere/blob/73c41f6157287a02c42406e1b5d8115c7595f7a2/src/chrome/content/rules/Images-Amazon.com.xml#L31-L32

In any case, assuming you created custom rules to cause the behavior you are observing on your side, as said above, uBO fix with regard to HTTPS-E is a mitigation, i.e. this should take care of most conflicts, but this won't take care of conflict arising as a result of HTTPS-E redirecting a https: URL to another https URL (which I believe shouldn't be happening normally?)

gorhill avatar Jun 27 '18 12:06 gorhill

@gorhill FYI, there's an open issue https://github.com/EFForg/https-everywhere/issues/10843 to remove https:->https: redirects where possible.

jeremyn avatar Jun 27 '18 23:06 jeremyn

It seems that chrome will stop notifying the users for extension conflicts in the dev channel.

This CL introduces the onActionIgnored event on the web request API which is fired when an extension's proposed modification to a network request is ignored. This happens in case of conflicts with other extensions. This should allow the extensions to address conflicts as they like.

Also, we no longer notify the user in case of conflicts between extensions.

Ref

https://groups.google.com/a/chromium.org/forum/#!msg/extensions-reviews/YYn1etdxjgw/55bBFxxfCgAJ

https://developer.chrome.com/extensions/webRequest#event-onActionIgnored

cschanaj avatar Aug 28 '18 01:08 cschanaj

Fantastic! Thanks for the heads up @cschanaj - we should definitely handle this event.

Hainish avatar Aug 28 '18 02:08 Hainish

Can this be closed? Marked as fixed since Aug 24.

Consider starring this Chromium issue if you want a fix, I added a comment at the end: https://bugs.chromium.org/p/chromium/issues/detail?id=111700#c31

I haven't had this issue for a while.

terrorist96 avatar Nov 09 '18 23:11 terrorist96

Yep, nothing on my systems for a while too.

Libbum avatar Nov 09 '18 23:11 Libbum