Bug 1843239, [Cached] Location.hash, r=peterv

Differential Revision: https://phabricator.services.mozilla.com/D183788
This commit is contained in:
Olli Pettay
2023-07-31 11:15:17 +00:00
parent 5c26abf678
commit 91e0558e8d
7 changed files with 58 additions and 8 deletions

View File

@@ -1160,7 +1160,10 @@ class nsDocShell final : public nsDocLoader,
const nsAString& aTitle, bool aReplace,
nsIURI* aCurrentURI, bool aEqualURIs);
private: // data members
private:
void SetCurrentURIInternal(nsIURI* aURI);
// data members
nsString mTitle;
nsCString mOriginalUriString;
nsTObserverArray<nsWeakPtr> mPrivacyObservers;
@@ -1205,6 +1208,7 @@ class nsDocShell final : public nsDocLoader,
mozilla::UniquePtr<mozilla::ObservedDocShell> mObserved;
// mCurrentURI should be marked immutable on set if possible.
// Change mCurrentURI only through SetCurrentURIInternal method.
nsCOMPtr<nsIURI> mCurrentURI;
nsCOMPtr<nsIReferrerInfo> mReferrerInfo;