Bug 699807 - Don't create runnables for setting the title on unlinked documents. r=smaug.

--HG--
extra : rebase_source : 108acb25caced7dbf4cc93e9afab60f6ebf8a9b6
This commit is contained in:
Peter Van der Beken 2011-11-07 13:56:50 +01:00
parent 087de76d53
commit b3cd9776ea

View File

@ -5245,6 +5245,12 @@ nsDocument::SetTitle(const nsAString& aTitle)
void
nsDocument::NotifyPossibleTitleChange(bool aBoundTitleElement)
{
NS_ASSERTION(!mInUnlinkOrDeletion || !aBoundTitleElement,
"Setting a title while unlinking or destroying the element?");
if (mInUnlinkOrDeletion) {
return;
}
if (aBoundTitleElement) {
mMayHaveTitleElement = true;
}