зеркало из https://github.com/mozilla/gecko-dev.git
calling CreatePluginInstance instead of CreateInstance, so MIME type is available early.
This commit is contained in:
Родитель
18fe13a2bf
Коммит
b59586b258
|
@ -768,7 +768,7 @@ NPP_New(NPMIMEType pluginType,
|
|||
|
||||
// Create a new plugin instance and start it.
|
||||
nsIPluginInstance* pluginInstance = NULL;
|
||||
thePlugin->CreateInstance(thePluginManager, nsIPluginInstance::GetIID(), (void**)&pluginInstance);
|
||||
thePlugin->CreatePluginInstance(thePluginManager, nsIPluginInstance::GetIID(), pluginType, (void**)&pluginInstance);
|
||||
if (pluginInstance == NULL) {
|
||||
return NPERR_OUT_OF_MEMORY_ERROR;
|
||||
}
|
||||
|
|
|
@ -768,7 +768,7 @@ NPP_New(NPMIMEType pluginType,
|
|||
|
||||
// Create a new plugin instance and start it.
|
||||
nsIPluginInstance* pluginInstance = NULL;
|
||||
thePlugin->CreateInstance(thePluginManager, nsIPluginInstance::GetIID(), (void**)&pluginInstance);
|
||||
thePlugin->CreatePluginInstance(thePluginManager, nsIPluginInstance::GetIID(), pluginType, (void**)&pluginInstance);
|
||||
if (pluginInstance == NULL) {
|
||||
return NPERR_OUT_OF_MEMORY_ERROR;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче