Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Early return for URLS that are already HTTPS #17010

Merged
merged 1 commit into from
Nov 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions chromium/background-scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,13 @@ function onBeforeRequest(details) {

let uri = new URL(details.url);

/**
* We never wanted to rewrite HTTPS requests
*/
if ('https:' === uri.protocol) {
return;
}

// Check if a user has disabled HTTPS Everywhere on this site. We should
// ensure that all subresources are not run through HTTPS Everywhere as well.
let firstPartyHost;
Expand Down