Bug 548185 Crash on event.dataTransfer.setDragImage({},0,0) [@ nsINode::GetCurrentDoc() ]

r=smaug
This commit is contained in:
timeless@mozdev.org 2010-02-28 12:18:19 +01:00
parent 0c5fea1c77
commit 0451e36ff8

View File

@ -401,6 +401,9 @@ static nsIPresShell*
GetPresShellForContent(nsIDOMNode* aDOMNode)
{
nsCOMPtr<nsIContent> content = do_QueryInterface(aDOMNode);
if (!content)
return nsnull;
nsCOMPtr<nsIDocument> document = content->GetCurrentDoc();
if (document) {
document->FlushPendingNotifications(Flush_Display);