Bug 1045500 - Skip processing the plugin name for plugin crashes in the front-end for GMP plugins. r=ttaubert

This commit is contained in:
Georg Fritzsche 2014-07-29 16:46:16 +02:00
Родитель 46556d5773
Коммит cefa8b68f9
1 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

@ -1162,7 +1162,8 @@ var gPluginHandler = {
let submitReports = true; // XXX followup for .getPropertyAsBool("submitReports");
let pluginName = propBag.getPropertyAsAString("pluginName");
let pluginDumpID = propBag.getPropertyAsAString("pluginDumpID");
let browserDumpID = null;
let browserDumpID = null;
let gmpPlugin = false;
try {
browserDumpID = propBag.getPropertyAsAString("browserDumpID");
@ -1170,8 +1171,16 @@ var gPluginHandler = {
// For GMP crashes we don't get a browser dump.
}
// Remap the plugin name to a more user-presentable form.
pluginName = this.makeNicePluginName(pluginName);
try {
gmpPlugin = propBag.getPropertyAsBool("gmpPlugin");
} catch (e) {
// This property is only set for GMP plugins.
}
// For non-GMP plugins, remap the plugin name to a more user-presentable form.
if (!gmpPlugin) {
pluginName = this.makeNicePluginName(pluginName);
}
let messageString = gNavigatorBundle.getFormattedString("crashedpluginsMessage.title", [pluginName]);