mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 01:59:38 +02:00
fix #3639
This commit is contained in:
parent
adcc8c1a27
commit
10a4a6465e
@ -70,6 +70,14 @@ var warResolve = (function() {
|
||||
};
|
||||
})();
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/3639
|
||||
// https://github.com/EFForg/https-everywhere/issues/14961
|
||||
// https://bugs.chromium.org/p/chromium/issues/detail?id=111700
|
||||
// Do not redirect to a WAR if the platform suffers from spurious redirect
|
||||
// conflicts, and the request to redirect is not `https:`.
|
||||
// This special handling code can removed once the Chromium issue is fixed.
|
||||
var suffersSpuriousRedirectConflicts = vAPI.webextFlavor.soup.has('chromium');
|
||||
|
||||
/******************************************************************************/
|
||||
/******************************************************************************/
|
||||
|
||||
@ -91,7 +99,11 @@ RedirectEntry.prototype.toURL = function(details) {
|
||||
if (
|
||||
this.warURL !== undefined &&
|
||||
details instanceof Object &&
|
||||
details.requestType !== 'xmlhttprequest'
|
||||
details.requestType !== 'xmlhttprequest' &&
|
||||
(
|
||||
suffersSpuriousRedirectConflicts === false ||
|
||||
details.requestURL.startsWith('https:')
|
||||
)
|
||||
) {
|
||||
return this.warURL + '?secret=' + vAPI.warSecret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user