Bug 1640853 - Using PermissionManager for HTTPS Only Mode upgrade exceptions. r=ckerschb,nhnt11,nika,johannh,necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D77040
This commit is contained in:
julianwels
2020-06-15 11:19:39 +00:00
parent 756e6524c9
commit 107d9f83ab
11 changed files with 170 additions and 119 deletions

View File

@@ -199,10 +199,6 @@ class nsDocShellLoadState final {
void SetFileName(const nsAString& aFileName);
bool IsHttpsOnlyModeUpgradeExempt() const;
void SetIsHttpsOnlyModeUpgradeExempt(bool aIsExempt);
// Give the type of DocShell we're loading into (chrome/content/etc) and
// origin attributes for the URI we're loading, figure out if we should
// inherit our principal from the document the load was requested from, or
@@ -398,10 +394,6 @@ class nsDocShellLoadState final {
// mFileName.IsVoid() should return true.
nsString mFileName;
// If the HTTPS-Only mode is enabled, every insecure request gets upgraded to
// HTTPS by default. The load is exempt from that if this flag is set to true.
bool mIsHttpsOnlyModeUpgradeExempt;
// This will be true if this load is triggered by attribute changes.
// See nsILoadInfo.isFromProcessingFrameAttributes
bool mIsFromProcessingFrameAttributes;