Backed out changeset 2d49d73f38aa (bug 1727514) for causing frequent crashes. a=backout
This commit is contained in:
@@ -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; });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user