Commit 3974b1bd authored by Peter Van der Beken's avatar Peter Van der Beken
Browse files

Bug 1588489 - Fix for getting the BFCache ID from an entry in the parent process. r=annyG

Differential Revision: https://phabricator.services.mozilla.com/D49169

--HG--
extra : rebase_source : 5a095b1237a210e2ffcc6888f8271b8b5be6dd6b
extra : source : 7d400025faba588fe9a77103f151d6954a14ac13
extra : histedit_source : 55299b48422de0af4af8ae1712e08315fe2046a4
parent d7799e93
......@@ -52,6 +52,12 @@ void LegacySHEntry::AbandonBFCacheEntry(uint64_t aNewSharedID) {
mShared = shared.forget();
}
NS_IMETHODIMP
LegacySHEntry::GetBfcacheID(uint64_t* aBFCacheID) {
*aBFCacheID = mShared->GetID();
return NS_OK;
}
void SHEntryParent::ActorDestroy(ActorDestroyReason aWhy) {
mEntry->mActor = nullptr;
}
......
......@@ -56,6 +56,7 @@ class LegacySHEntry final : public nsSHEntry, public CrossProcessSHEntry {
using nsSHEntry::AbandonBFCacheEntry;
void AbandonBFCacheEntry(uint64_t aNewSharedID);
NS_IMETHODIMP GetBfcacheID(uint64_t* aBFCacheID) override;
uint64_t GetSharedStateID() const { return mShared->GetID(); }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment