Bug 1689601, remove an assertion in SessionStorageManager.cpp since it isn't valid anymore with bfcache, r=peterv,ttung

Differential Revision: https://phabricator.services.mozilla.com/D105233
This commit is contained in:
Olli Pettay 2021-03-02 12:13:18 +00:00
parent 12a97288a1
commit 8871d57cd7

View File

@ -48,9 +48,10 @@ void RecvPropagateBackgroundSessionStorageManager(
if (sManagers) {
if (RefPtr<BackgroundSessionStorageManager> mgr =
sManagers->Get(aCurrentTopContextId)) {
// Assuming the target top browsing context should haven't been
// registered yet.
MOZ_DIAGNOSTIC_ASSERT(!sManagers->Contains(aTargetTopContextId));
// Because of bfcache, we may re-register aTargetTopContextId in
// CanonicalBrowsingContext::ReplacedBy.
// XXXBFCache do we want to tweak this behavior and ensure this is
// called only once?
sManagers->InsertOrUpdate(aTargetTopContextId, std::move(mgr));
}
}