Bug 1365184 - Fix docgroup mismatch during cycle collection (r=smaug)

MozReview-Commit-ID: Ld68RGU6lmB
This commit is contained in:
Bill McCloskey 2017-05-19 15:27:35 -07:00
parent 32f9f451fa
commit c1a1aeca32

View File

@ -5087,7 +5087,7 @@ nsDocument::BeginUpdate(nsUpdateType aUpdateType)
// in the wrong DocGroup. We're unlikely to run JS or do anything else
// observable at this point. We reach this point when cycle collecting a
// <link> element and the unlink code removes a style sheet.
if (mDocGroup && !mIsGoingAway && !mIgnoreDocGroupMismatches) {
if (mDocGroup && !mIsGoingAway && !mInUnlinkOrDeletion && !mIgnoreDocGroupMismatches) {
mDocGroup->ValidateAccess();
}