Bug 1663488 - Fix CanonicalBrowsingContext::NotifyOnHistoryReload. r=smaug

Depends on D89421

Differential Revision: https://phabricator.services.mozilla.com/D89422
This commit is contained in:
Peter Van der Beken
2020-09-08 14:04:33 +00:00
parent e844ffe2af
commit 1437f11e49
5 changed files with 44 additions and 7 deletions

View File

@@ -26,6 +26,8 @@ class nsIChannel;
class nsIReferrerInfo;
class OriginAttibutes;
namespace mozilla {
template <typename, class>
class UniquePtr;
namespace dom {
class DocShellLoadStateInit;
} // namespace dom
@@ -141,9 +143,14 @@ class nsDocShellLoadState final {
const mozilla::dom::LoadingSessionHistoryInfo* GetLoadingSessionHistoryInfo()
const;
// Copies aLoadingInfo and stores the copy in this nsDocShellLoadState.
void SetLoadingSessionHistoryInfo(
const mozilla::dom::LoadingSessionHistoryInfo& aLoadingInfo);
// Stores aLoadingInfo in this nsDocShellLoadState.
void SetLoadingSessionHistoryInfo(
mozilla::UniquePtr<mozilla::dom::LoadingSessionHistoryInfo> aLoadingInfo);
bool LoadIsFromSessionHistory() const;
const nsString& Target() const;