Bug 1177346 Part 3 - Remove debugger paused warning, r=ochameau.

--HG--
extra : rebase_source : d162952d703892be0546460e5272d491ab91601d
This commit is contained in:
Brian Hackett 2019-01-03 06:40:21 -10:00
Родитель 6efdb381f5
Коммит 2e57e98ac1
2 изменённых файлов: 0 добавлений и 44 удалений

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

@ -133,7 +133,6 @@ function Inspector(toolbox) {
this._onContextMenu = this._onContextMenu.bind(this);
this._onMarkupFrameLoad = this._onMarkupFrameLoad.bind(this);
this._updateSearchResultsLabel = this._updateSearchResultsLabel.bind(this);
this._updateDebuggerPausedWarning = this._updateDebuggerPausedWarning.bind(this);
this.onDetached = this.onDetached.bind(this);
this.onHostChanged = this.onHostChanged.bind(this);
@ -319,13 +318,6 @@ Inspector.prototype = {
this.selection.on("new-node-front", this.onNewSelection);
this.selection.on("detached-front", this.onDetached);
if (this.target.isLocalTab) {
this.target.on("thread-paused", this._updateDebuggerPausedWarning);
this.target.on("thread-resumed", this._updateDebuggerPausedWarning);
this.toolbox.on("select", this._updateDebuggerPausedWarning);
this._updateDebuggerPausedWarning();
}
// Log the 3 pane inspector setting on inspector open. The question we want to answer
// is:
// "What proportion of users use the 3 pane vs 2 pane inspector on inspector open?"
@ -483,35 +475,6 @@ Inspector.prototype = {
this.searchResultsLabel.textContent = str;
},
/**
* Show a warning notification box when the debugger is paused. We show the warning only
* when the inspector is selected.
*/
_updateDebuggerPausedWarning: function() {
if (!this.toolbox.threadClient.paused && !this._notificationBox) {
return;
}
const notificationBox = this.notificationBox;
const notification = this.notificationBox.getNotificationWithValue(
"inspector-script-paused");
if (!notification && this.toolbox.currentToolId == "inspector" &&
this.toolbox.threadClient.paused) {
const message = INSPECTOR_L10N.getStr("debuggerPausedWarning.message");
notificationBox.appendNotification(message,
"inspector-script-paused", "", notificationBox.PRIORITY_WARNING_HIGH);
}
if (notification && this.toolbox.currentToolId != "inspector") {
notificationBox.removeNotification(notification);
}
if (notification && !this.toolbox.threadClient.paused) {
notificationBox.removeNotification(notification);
}
},
get React() {
return this._toolbox.React;
},
@ -1434,9 +1397,6 @@ Inspector.prototype = {
this.sidebar.off("hide", this.onSidebarHidden);
this.sidebar.off("destroy", this.onSidebarHidden);
this.target.off("will-navigate", this._onBeforeNavigate);
this.target.off("thread-paused", this._updateDebuggerPausedWarning);
this.target.off("thread-resumed", this._updateDebuggerPausedWarning);
this._toolbox.off("select", this._updateDebuggerPausedWarning);
for (const [, panel] of this._panels) {
panel.destroy();

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

@ -13,10 +13,6 @@
breadcrumbs.siblings=Siblings
# LOCALIZATION NOTE (debuggerPausedWarning): Used in the Inspector tool, when
# the user switch to the inspector when the debugger is paused.
debuggerPausedWarning.message=Debugger is paused. Some features like mouse selection will not work.
# LOCALIZATION NOTE (nodeMenu.tooltiptext)
# This menu appears in the Infobar (on top of the highlighted node) once
# the node is selected.