зеркало из https://github.com/mozilla/gecko-dev.git
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
This commit is contained in:
Родитель
d7799e93d3
Коммит
3974b1bd53
|
@ -52,6 +52,12 @@ void LegacySHEntry::AbandonBFCacheEntry(uint64_t aNewSharedID) {
|
||||||
mShared = shared.forget();
|
mShared = shared.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NS_IMETHODIMP
|
||||||
|
LegacySHEntry::GetBfcacheID(uint64_t* aBFCacheID) {
|
||||||
|
*aBFCacheID = mShared->GetID();
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
void SHEntryParent::ActorDestroy(ActorDestroyReason aWhy) {
|
void SHEntryParent::ActorDestroy(ActorDestroyReason aWhy) {
|
||||||
mEntry->mActor = nullptr;
|
mEntry->mActor = nullptr;
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,6 +56,7 @@ class LegacySHEntry final : public nsSHEntry, public CrossProcessSHEntry {
|
||||||
|
|
||||||
using nsSHEntry::AbandonBFCacheEntry;
|
using nsSHEntry::AbandonBFCacheEntry;
|
||||||
void AbandonBFCacheEntry(uint64_t aNewSharedID);
|
void AbandonBFCacheEntry(uint64_t aNewSharedID);
|
||||||
|
NS_IMETHODIMP GetBfcacheID(uint64_t* aBFCacheID) override;
|
||||||
|
|
||||||
uint64_t GetSharedStateID() const { return mShared->GetID(); }
|
uint64_t GetSharedStateID() const { return mShared->GetID(); }
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче