Bug 850090. Don't assert things about our stylesheets during unlink, since our state can be kinda inconsistent then. r=smaug

This commit is contained in:
Boris Zbarsky 2013-04-05 00:57:39 -04:00
parent 0611604263
commit b9050f0bb1

View File

@ -3738,7 +3738,7 @@ nsDocument::RemoveStyleSheet(nsIStyleSheet* aSheet)
nsCOMPtr<nsIStyleSheet> sheet = aSheet; // hold ref so it won't die too soon
if (!mStyleSheets.RemoveObject(aSheet)) {
NS_NOTREACHED("stylesheet not found");
NS_ASSERTION(mInUnlinkOrDeletion, "stylesheet not found");
return;
}