Bug 1658924: Implement HTTPS-First and automatically fall back to http if secure top-level connection is not available r=necko-reviewers,JulianWels,mattwoodrow,dragana

Differential Revision: https://phabricator.services.mozilla.com/D111686
This commit is contained in:
Christoph Kerschbaumer
2021-04-13 17:43:12 +00:00
parent 72ac18ae89
commit c76a9a7de2
17 changed files with 393 additions and 32 deletions

View File

@@ -131,6 +131,10 @@ class nsDocShellLoadState final {
void SetForceAllowDataURI(bool aForceAllowDataURI);
bool IsExemptFromHTTPSOnlyMode() const;
void SetIsExemptFromHTTPSOnlyMode(bool aIsExemptFromHTTPSOnlyMode);
bool OriginalFrameSrc() const;
void SetOriginalFrameSrc(bool aOriginalFrameSrc);
@@ -404,6 +408,10 @@ class nsDocShellLoadState final {
// to a data URI will be allowed.
bool mForceAllowDataURI;
// If this attribute is true, then the top-level navigaion
// will be exempt from HTTPS-Only-Mode upgrades.
bool mIsExemptFromHTTPSOnlyMode;
// If this attribute is true, this load corresponds to a frame
// element loading its original src (or srcdoc) attribute.
bool mOriginalFrameSrc;