nullcheck document to prevent crash when there isn't a document. r=saari/sr=hyatt. bug#89373
git-svn-id: svn://10.0.0.236/trunk@99346 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5e2c9b51ca
commit
8fd48c91ce
@ -609,7 +609,8 @@ nsPopupSetFrame::ActivatePopup(PRBool aActivateFlag)
|
||||
// reflow will cause the popup to show itself again. (bug 71219)
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
content->GetDocument(*getter_AddRefs(doc));
|
||||
doc->FlushPendingNotifications();
|
||||
if ( doc )
|
||||
doc->FlushPendingNotifications();
|
||||
|
||||
// make sure we hide the popup. We can't assume that we'll have a view
|
||||
// since we could be cleaning up after someone that didn't correctly
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user