mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
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:
parent
1726e4166e
commit
cd5708a26d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user