Bug 757262. Try bailing out of plugin instantiation if we're in an inactive document. r=josh

This commit is contained in:
Robert O'Callahan 2012-05-30 01:13:36 +12:00
parent 961147edca
commit cde3e8ec6a

View File

@ -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;