Bug 1695734 - Remove Learn More link from content script hang infobars r=NeilDeakin

Depends on D106816

Differential Revision: https://phabricator.services.mozilla.com/D106821
This commit is contained in:
Doug Thayer 2021-03-01 21:18:03 +00:00
parent 1726e4166e
commit cd5708a26d

View File

@ -549,11 +549,6 @@ var ProcessHangMonitor = {
let bundle = win.gNavigatorBundle;
let buttons = [
{
label: bundle.getString("processHang.add-on.learn-more.text"),
link:
"https://support.mozilla.org/kb/warning-unresponsive-script#w_other-causes",
},
{
label: bundle.getString("processHang.button_stop.label2"),
accessKey: bundle.getString("processHang.button_stop.accessKey"),
@ -582,15 +577,22 @@ var ProcessHangMonitor = {
brandShortName,
]);
buttons.unshift({
label: bundle.getString("processHang.button_stop_sandbox.label"),
accessKey: bundle.getString(
"processHang.button_stop_sandbox.accessKey"
),
callback() {
ProcessHangMonitor.stopGlobal(win);
buttons.unshift(
{
label: bundle.getString("processHang.add-on.learn-more.text"),
link:
"https://support.mozilla.org/kb/warning-unresponsive-script#w_other-causes",
},
});
{
label: bundle.getString("processHang.button_stop_sandbox.label"),
accessKey: bundle.getString(
"processHang.button_stop_sandbox.accessKey"
),
callback() {
ProcessHangMonitor.stopGlobal(win);
},
}
);
} else {
let scriptBrowser = report.scriptBrowser;
if (scriptBrowser == win.gBrowser?.selectedBrowser) {