diff --git a/app/httpsEverywhere.js b/app/httpsEverywhere.js index 4a503ff8939..ecba6d22d26 100644 --- a/app/httpsEverywhere.js +++ b/app/httpsEverywhere.js @@ -142,6 +142,10 @@ function onBeforeRedirect (details) { if (!mainFrameUrl || !Filtering.isResourceEnabled(module.exports.resourceName, mainFrameUrl)) { return } + // Ignore URLs that are not HTTP + if (!['http:', 'https:'].includes(urlParse(details.url).protocol)) { + return + } var canonicalUrl = canonicalizeUrl(details.url)