Bug 1173775 - Right-clicking a file in the call tree doesn't open it anymore. r=jsantell
authorNounours Heureux <schtroumps31@gmail.com>
Tue, 06 Oct 2015 15:48:00 -0700
changeset 267097 e24bd21c18fb439386a18d53d9f2a6bcc142d178
parent 267096 0c948b5d901a78a964e6c92e2999dfae30740e8c
child 267098 0fdc8212f08f462da10158e50f2e43e352993258
push id29510
push usercbook@mozilla.com
push dateMon, 12 Oct 2015 09:06:57 +0000
treeherdermozilla-central@b235cfd4d8ca [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjsantell
bugs1173775
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1173775 - Right-clicking a file in the call tree doesn't open it anymore. r=jsantell From 6615e770e8c00ee4f4dfb3fbdd5d12e2032c9161 Mon Sep 17 00:00:00 2001
devtools/client/performance/modules/widgets/tree-view.js
--- a/devtools/client/performance/modules/widgets/tree-view.js
+++ b/devtools/client/performance/modules/widgets/tree-view.js
@@ -371,13 +371,16 @@ CallView.prototype = Heritage.extend(Abs
   },
 
   /**
    * Handler for the "click" event on the url node of this call view.
    */
   _onUrlClick: function(e) {
     e.preventDefault();
     e.stopPropagation();
-    this.root.emit("link", this);
+    // Only emit for left click events
+    if (e.button === 0) {
+      this.root.emit("link", this);
+    }
   },
 });
 
 exports.CallView = CallView;