diff --git a/docshell/base/SerializedLoadContext.h b/docshell/base/SerializedLoadContext.h index 2c60ed9700a..0d6426c3144 100644 --- a/docshell/base/SerializedLoadContext.h +++ b/docshell/base/SerializedLoadContext.h @@ -28,6 +28,11 @@ class SerializedLoadContext { public: SerializedLoadContext() + : mIsNotNull(false) + , mIsPrivateBitValid(false) + , mIsContent(false) + , mUsePrivateBrowsing(false) + , mUseRemoteTabs(false) { Init(nullptr); } diff --git a/docshell/shistory/nsSHistory.cpp b/docshell/shistory/nsSHistory.cpp index d83a767f6cc..6400fe64dbd 100644 --- a/docshell/shistory/nsSHistory.cpp +++ b/docshell/shistory/nsSHistory.cpp @@ -233,6 +233,7 @@ nsSHistory::nsSHistory() : mIndex(-1) , mLength(0) , mRequestedIndex(-1) + , mRootDocShell(nullptr) { // Add this new SHistory object to the list PR_APPEND_LINK(this, &gSHistoryList); @@ -1004,6 +1005,7 @@ class TransactionAndDistance public: TransactionAndDistance(nsISHTransaction* aTrans, uint32_t aDist) : mTransaction(aTrans) + , mLastTouched(0) , mDistance(aDist) { mViewer = GetContentViewerForTransaction(aTrans); @@ -1017,7 +1019,6 @@ public: shentryInternal->GetLastTouched(&mLastTouched); } else { NS_WARNING("Can't cast to nsISHEntryInternal?"); - mLastTouched = 0; } }