Bug 1148012 - Expose run ID through nsIObjectLoadingContent.idl. r=josh,smaug.

The run ID for a plugin is retrieved and cached in the nsObjectLoadingContent
on plugin instantiation.
This commit is contained in:
Mike Conley
2015-03-17 13:28:32 -04:00
parent 65a98b8305
commit ca7d1a4482
9 changed files with 82 additions and 2 deletions

View File

@@ -1778,3 +1778,22 @@ nsNPAPIPluginInstance::GetContentsScaleFactor()
}
return scaleFactor;
}
nsresult
nsNPAPIPluginInstance::GetRunID(uint32_t* aRunID)
{
if (NS_WARN_IF(!aRunID)) {
return NS_ERROR_INVALID_POINTER;
}
if (NS_WARN_IF(!mPlugin)) {
return NS_ERROR_FAILURE;
}
PluginLibrary* library = mPlugin->GetLibrary();
if (!library) {
return NS_ERROR_FAILURE;
}
return library->GetRunID(aRunID);
}