Bug 1722202 - Exempt WPAD requests from HTTPS-only mode upgrades r=necko-reviewers,dragana

Differential Revision: https://phabricator.services.mozilla.com/D121939
This commit is contained in:
Valentin Gosu 2021-08-06 10:36:52 +00:00
parent 9f18e86200
commit 31a43b0d79

View File

@ -685,6 +685,7 @@ void nsPACMan::ContinueLoadingAfterPACUriKnown() {
// allow deprecated HTTP request from SystemPrincipal
nsCOMPtr<nsILoadInfo> loadInfo = channel->LoadInfo();
loadInfo->SetAllowDeprecatedSystemRequests(true);
loadInfo->SetHttpsOnlyStatus(nsILoadInfo::HTTPS_ONLY_EXEMPT);
channel->SetLoadFlags(nsIRequest::LOAD_BYPASS_CACHE);
channel->SetNotificationCallbacks(this);