Bug 1736563 - Part 1: Use uint32_t for bfcache status flags r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D129013
This commit is contained in:
@@ -6768,7 +6768,7 @@ bool nsDocShell::CanSavePresentation(uint32_t aLoadType,
|
||||
// If the document does not want its presentation cached, then don't.
|
||||
RefPtr<Document> doc = mScriptGlobal->GetExtantDoc();
|
||||
|
||||
uint16_t bfCacheCombo = 0;
|
||||
uint32_t bfCacheCombo = 0;
|
||||
bool canSavePresentation =
|
||||
doc->CanSavePresentation(aNewRequest, bfCacheCombo, true);
|
||||
MOZ_ASSERT_IF(canSavePresentation, bfCacheCombo == 0);
|
||||
@@ -9376,7 +9376,7 @@ nsresult nsDocShell::InternalLoad(nsDocShellLoadState* aLoadState,
|
||||
// before calling Stop() below.
|
||||
if (mozilla::SessionHistoryInParent()) {
|
||||
Document* document = GetDocument();
|
||||
uint16_t flags = 0;
|
||||
uint32_t flags = 0;
|
||||
if (document && !document->CanSavePresentation(nullptr, flags, true)) {
|
||||
// This forces some flags into the WindowGlobalParent's mBFCacheStatus,
|
||||
// which we'll then use in CanonicalBrowsingContext::AllowedInBFCache,
|
||||
|
||||
Reference in New Issue
Block a user