Bug 1709012 - Remove NS_ASSERTION about executor queue being empty upon destruction. r=edgar

Differential Revision: https://phabricator.services.mozilla.com/D162701
This commit is contained in:
Henri Sivonen 2022-11-22 12:30:04 +00:00
parent 0c706ad429
commit 3e13c693ee

View File

@ -141,8 +141,16 @@ nsHtml5TreeOpExecutor::~nsHtml5TreeOpExecutor() {
}
}
}
NS_ASSERTION(NS_FAILED(mBroken) || mOpQueue.IsEmpty(),
"Somehow there's stuff in the op queue.");
// We used to have an `NS_ASSERTION` here that asserted
// that either `mBroken` is true or `mOpQueue` is empty.
// Sometimes a tree op executor ended up being cycle collected
// with the assertion firing. It is not understood what
// code path abandons an instance of the tree op executor
// without terminating it so that the cycle collector sees
// it with stuff still in the queue. The assertion was removed
// to avoid sheriffing the assertion failure without a path
// to understanding how the object gets abandoned to cycle
// collection.
}
// nsIContentSink