mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1045500 - Skip processing the plugin name for plugin crashes in the front-end for GMP plugins. r=ttaubert
This commit is contained in:
parent
42d8526108
commit
ea6930f8b5
@ -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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user