mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1128064: Check for null mContent in nsPluginInstanceOwner::GetDocument; r=jimm
This commit is contained in:
parent
7a4feaee85
commit
a72962d364
@ -580,8 +580,9 @@ NS_IMETHODIMP nsPluginInstanceOwner::ShowStatus(const char16_t *aStatusMsg)
|
||||
|
||||
NS_IMETHODIMP nsPluginInstanceOwner::GetDocument(nsIDocument* *aDocument)
|
||||
{
|
||||
if (!aDocument)
|
||||
if (!aDocument || !mContent) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
|
||||
// XXX sXBL/XBL2 issue: current doc or owner doc?
|
||||
// But keep in mind bug 322414 comment 33
|
||||
|
Loading…
Reference in New Issue
Block a user