Bug 1304178 - Remove the context menu in new webconsole frontend;r=linclark
authorBrian Grinstead <bgrinstead@mozilla.com>
Tue, 04 Oct 2016 11:32:52 -0700
changeset 316362 b95cb4a4e4f15ffae0c13ea645d3fa8089324acd
parent 316361 8aee9efaa33dbf46887c0d1473ded3c174959e97
child 316363 ad324639bfaeba6d7be3b732295b6a27d0c54e0a
push id20655
push userbgrinstead@mozilla.com
push dateTue, 04 Oct 2016 18:33:29 +0000
treeherderfx-team@ad324639bfae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslinclark
bugs1304178
milestone52.0a1
Bug 1304178 - Remove the context menu in new webconsole frontend;r=linclark MozReview-Commit-ID: 2lTpxlAkuvM
devtools/client/webconsole/webconsole.js
--- a/devtools/client/webconsole/webconsole.js
+++ b/devtools/client/webconsole/webconsole.js
@@ -576,17 +576,19 @@ WebConsoleFrame.prototype = {
     this.jsterm = new JSTerm(this);
     this.jsterm.init();
 
     let toolbox = gDevTools.getToolbox(this.owner.target);
 
     if (this.NEW_CONSOLE_OUTPUT_ENABLED) {
       // @TODO Remove this once JSTerm is handled with React/Redux.
       this.window.jsterm = this.jsterm;
-      console.log("Entering experimental mode for console frontend");
+
+      // Remove context menu for now (see Bug 1307239).
+      this.outputWrapper.removeAttribute("context");
 
       // XXX: We should actually stop output from happening on old output
       // panel, but for now let's just hide it.
       this.experimentalOutputNode = this.outputNode.cloneNode();
       this.experimentalOutputNode.removeAttribute("tabindex");
       this.outputNode.hidden = true;
       this.outputNode.parentNode.appendChild(this.experimentalOutputNode);
       // @TODO Once the toolbox has been converted to React, see if passing