Bug 466326 - #!!! ASSERTION: killing mutation events: 'nsContentUtils::IsSafeToRunScript(), r=enn,sr=sicking

This commit is contained in:
Olli Pettay
2008-12-03 12:56:58 +02:00
parent 47fc047bfd
commit 2f67623b93

View File

@@ -586,7 +586,8 @@ void
nsMenuFrame::PopupClosed(PRBool aDeselectMenu)
{
nsWeakFrame weakFrame(this);
mContent->UnsetAttr(kNameSpaceID_None, nsGkAtoms::open, PR_TRUE);
nsContentUtils::AddScriptRunner(
new nsUnsetAttrRunnable(mContent, nsGkAtoms::open));
if (!weakFrame.IsAlive())
return;