mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 548185 Crash on event.dataTransfer.setDragImage({},0,0) [@ nsINode::GetCurrentDoc() ]
r=smaug
This commit is contained in:
parent
0c5fea1c77
commit
0451e36ff8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user