Bug 1233098 - Refactor CSP upgrade insecure requests flag within loadInfo (r=sicking)

This commit is contained in:
Christoph Kerschbaumer
2016-01-14 12:38:15 -08:00
parent f739b36009
commit fe3f1cdf0a
14 changed files with 35 additions and 55 deletions

View File

@@ -1746,7 +1746,7 @@ HTMLFormElement::GetActionURL(nsIURI** aActionURL,
bool isHttpScheme = false;
rv = actionURL->SchemeIs("http", &isHttpScheme);
NS_ENSURE_SUCCESS(rv, rv);
if (isHttpScheme && document->GetUpgradeInsecureRequests()) {
if (isHttpScheme && document->GetUpgradeInsecureRequests(false)) {
// let's use the old specification before the upgrade for logging
nsAutoCString spec;
rv = actionURL->GetSpec(spec);