Bug 1653026 - Added HTTPS-Only Mode upgrade info to browser UI state. r=mattwoodrow,necko-reviewers,dragana

Differential Revision: https://phabricator.services.mozilla.com/D86566
This commit is contained in:
julianwels
2020-10-06 00:34:55 +00:00
parent 5a5a78e38c
commit c0d05f3250
20 changed files with 97 additions and 46 deletions

View File

@@ -5820,9 +5820,7 @@ nsDocShell::OnLocationChange(nsIWebProgress* aProgress, nsIRequest* aRequest,
// changes the current window global, but that happens before this and we
// have a lot of tests that depend on the specific ordering of messages.
if (!(aFlags & nsIWebProgressListener::LOCATION_CHANGE_SAME_DOCUMENT)) {
GetBrowsingContext()
->Canonical()
->UpdateSecurityStateForLocationOrMixedContentChange();
GetBrowsingContext()->Canonical()->UpdateSecurityState();
}
}
return NS_OK;