Bug 1698959: Clean up dead terminatePlugin references r=dthayer

PLUGIN_HANG events are no longer sent so terminatePlugin is unused.

Differential Revision: https://phabricator.services.mozilla.com/D113884
This commit is contained in:
David Parks 2021-05-01 01:12:45 +00:00
Родитель 2284427083
Коммит 27e7bb9383
2 изменённых файлов: 0 добавлений и 20 удалений

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

@ -131,15 +131,6 @@ var ProcessHangMonitor = {
});
},
/**
* Terminate the plugin process associated with a hang being reported
* for the selected browser in |win|. Will attempt to generate a combined
* crash report for all processes.
*/
terminatePlugin(win) {
this.handleUserInput(win, report => report.terminatePlugin());
},
/**
* Dismiss the browser notification and invoke an appropriate action based on
* the hang type.
@ -155,9 +146,6 @@ var ProcessHangMonitor = {
this._recordTelemetryForReport(report, "user-aborted");
this.terminateScript(win);
break;
case report.PLUGIN_HANG:
this.terminatePlugin(win);
break;
}
},
@ -172,10 +160,6 @@ var ProcessHangMonitor = {
report.terminateScript();
break;
}
case report.PLUGIN_HANG: {
report.terminatePlugin();
break;
}
}
},

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

@ -139,10 +139,6 @@ class GeckoViewProcessHangMonitor extends GeckoViewModule {
report.terminateScript();
break;
}
case report.PLUGIN_HANG: {
report.terminatePlugin();
break;
}
}
}