diff --git a/browser/devtools/debugger/test/browser_dbg_variables-view-01.js b/browser/devtools/debugger/test/browser_dbg_variables-view-01.js index 48d7d255378..68dfb500cec 100644 --- a/browser/devtools/debugger/test/browser_dbg_variables-view-01.js +++ b/browser/devtools/debugger/test/browser_dbg_variables-view-01.js @@ -100,26 +100,19 @@ function test() { ok(!testScope.expanded, "The testScope should remember it is collapsed after it is reshown."); - EventUtils.sendMouseEvent({ type: "mousedown", button: 1 }, - testScope.target.querySelector(".title"), - aPanel.panelWin); - - ok(!testScope.expanded, - "Clicking the testScope title with the right mouse button should't expand it."); - EventUtils.sendMouseEvent({ type: "mousedown" }, testScope.target.querySelector(".title"), aPanel.panelWin); ok(testScope.expanded, - "Clicking the testScope title should expand it."); + "Clicking the testScope tilte should expand it."); EventUtils.sendMouseEvent({ type: "mousedown" }, testScope.target.querySelector(".title"), aPanel.panelWin); ok(!testScope.expanded, - "Clicking again the testScope title should collapse it."); + "Clicking again the testScope tilte should collapse it."); closeDebuggerAndFinish(aPanel); }); diff --git a/browser/devtools/shared/widgets/VariablesView.jsm b/browser/devtools/shared/widgets/VariablesView.jsm index ef83af13b9b..35ebb459789 100644 --- a/browser/devtools/shared/widgets/VariablesView.jsm +++ b/browser/devtools/shared/widgets/VariablesView.jsm @@ -1651,8 +1651,7 @@ Scope.prototype = { * The click listener for this scope's title. */ _onClick: function(e) { - if (e.button != 0 || - e.target == this._inputNode || + if (e.target == this._inputNode || e.target == this._editNode || e.target == this._deleteNode) { return; @@ -2779,10 +2778,6 @@ Variable.prototype = Heritage.extend(Scope.prototype, { * The click listener for the edit button. */ _onEdit: function(e) { - if (e.button != 0) { - return; - } - e.preventDefault(); e.stopPropagation(); this._activateValueInput(); @@ -2792,10 +2787,6 @@ Variable.prototype = Heritage.extend(Scope.prototype, { * The click listener for the delete button. */ _onDelete: function(e) { - if ("button" in e && e.button != 0) { - return; - } - e.preventDefault(); e.stopPropagation();