mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 757262. Try bailing out of plugin instantiation if we're in an inactive document. r=josh
This commit is contained in:
parent
2c5fce383c
commit
30d91531c8
@ -654,6 +654,10 @@ nsObjectLoadingContent::InstantiatePluginInstance(const char* aMimeType, nsIURI*
|
||||
if (!doc) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
if (!doc->IsActive()) {
|
||||
NS_ERROR("Shouldn't be calling InstantiatePluginInstance in an inactive document");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
doc->FlushPendingNotifications(Flush_Layout);
|
||||
|
||||
nsresult rv = NS_ERROR_FAILURE;
|
||||
|
Loading…
Reference in New Issue
Block a user