diff --git a/browser/devtools/shared/widgets/VariablesView.jsm b/browser/devtools/shared/widgets/VariablesView.jsm index d1c0a4a5989..43f3267234a 100644 --- a/browser/devtools/shared/widgets/VariablesView.jsm +++ b/browser/devtools/shared/widgets/VariablesView.jsm @@ -404,8 +404,8 @@ VariablesView.prototype = { return; } this._searchboxContainer.parentNode.removeChild(this._searchboxContainer); - this._searchboxNode.addEventListener("input", this._onSearchboxInput, false); - this._searchboxNode.addEventListener("keypress", this._onSearchboxKeyPress, false); + this._searchboxNode.removeEventListener("input", this._onSearchboxInput, false); + this._searchboxNode.removeEventListener("keypress", this._onSearchboxKeyPress, false); this._searchboxContainer = null; this._searchboxNode = null; @@ -1543,7 +1543,9 @@ Scope.prototype = { * The click listener for this scope's title. */ _onClick: function S__onClick(e) { - if (e.target == this._inputNode) { + if (e.target == this._inputNode || + e.target == this._editNode || + e.target == this._deleteNode) { return; } this.toggle(); diff --git a/browser/devtools/shared/widgets/widgets.css b/browser/devtools/shared/widgets/widgets.css index 614e0cde696..c7882e34519 100644 --- a/browser/devtools/shared/widgets/widgets.css +++ b/browser/devtools/shared/widgets/widgets.css @@ -36,6 +36,11 @@ -moz-user-focus: normal; } +.variables-view-scope > .title, +.variable-or-property > .title { + overflow: hidden; +} + .variables-view-scope[non-header] > .title, .variable-or-property[non-header] > .title, .variable-or-property[non-match] > .title {