зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1148012 - Send the run ID and plugin name along with the plugin-crashed observer notification. r=josh.
--HG-- extra : rebase_source : 091451422a6e31849a5d4999c968d71715a1d836
This commit is contained in:
Родитель
d95fcd35e3
Коммит
194c589ef5
|
@ -3773,6 +3773,7 @@ nsPluginHost::PluginCrashed(nsNPAPIPlugin* aPlugin,
|
|||
const nsAString& browserDumpID)
|
||||
{
|
||||
nsPluginTag* crashedPluginTag = TagForPlugin(aPlugin);
|
||||
MOZ_ASSERT(crashedPluginTag);
|
||||
|
||||
// Notify the app's observer that a plugin crashed so it can submit
|
||||
// a crashreport.
|
||||
|
@ -3782,6 +3783,18 @@ nsPluginHost::PluginCrashed(nsNPAPIPlugin* aPlugin,
|
|||
nsCOMPtr<nsIWritablePropertyBag2> propbag =
|
||||
do_CreateInstance("@mozilla.org/hash-property-bag;1");
|
||||
if (obsService && propbag) {
|
||||
uint32_t runID = 0;
|
||||
PluginLibrary* library = aPlugin->GetLibrary();
|
||||
|
||||
if (!NS_WARN_IF(!library)) {
|
||||
library->GetRunID(&runID);
|
||||
}
|
||||
propbag->SetPropertyAsUint32(NS_LITERAL_STRING("runID"), runID);
|
||||
|
||||
nsCString pluginName;
|
||||
crashedPluginTag->GetName(pluginName);
|
||||
propbag->SetPropertyAsAString(NS_LITERAL_STRING("pluginName"),
|
||||
NS_ConvertUTF8toUTF16(pluginName));
|
||||
propbag->SetPropertyAsAString(NS_LITERAL_STRING("pluginDumpID"),
|
||||
pluginDumpID);
|
||||
propbag->SetPropertyAsAString(NS_LITERAL_STRING("browserDumpID"),
|
||||
|
|
Загрузка…
Ссылка в новой задаче