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 316469 b95cb4a4e4f15ffae0c13ea645d3fa8089324acd
parent 316468 8aee9efaa33dbf46887c0d1473ded3c174959e97
child 316470 ad324639bfaeba6d7be3b732295b6a27d0c54e0a
push id30773
push userkwierso@gmail.com
push dateWed, 05 Oct 2016 00:40:39 +0000
treeherdermozilla-central@ea104eeb14cc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslinclark
bugs1304178
milestone52.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 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