Backed out changeset 2d49d73f38aa (bug 1727514) for causing frequent crashes. a=backout

This commit is contained in:
Sandor Molnar
2021-09-16 15:52:56 +03:00
parent 7bac0d0890
commit d4735562cb
9 changed files with 16 additions and 156 deletions

View File

@@ -2842,14 +2842,8 @@ void BrowsingContext::DidSet(FieldIndex<IDX_IsInBFCache>) {
});
if (isInBFCache) {
PreOrderWalk([&](BrowsingContext* aContext) {
aContext->mIsInBFCache = true;
Document* doc = aContext->GetDocument();
if (doc) {
// Container needs to be cleared after mIsInBFCache is set to true.
doc->SetContainer(nullptr);
}
});
PreOrderWalk(
[&](BrowsingContext* aContext) { aContext->mIsInBFCache = true; });
}
}