From 2ad98eea629855140880985e539423ae403ccac4 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 6 Nov 2014 12:56:21 -0600 Subject: [PATCH] Bug 1094968 - Skip tilt visibility for remote toolboxes. r=mratcliffe --HG-- extra : transplant_source : %B9%D8%87%94%5B%AF%A1%E7%96%94B%28%E9%85w%3E%14I%F9%FF --- browser/devtools/framework/toolbox.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser/devtools/framework/toolbox.js b/browser/devtools/framework/toolbox.js index 433616c94667..e0d7102978b4 100644 --- a/browser/devtools/framework/toolbox.js +++ b/browser/devtools/framework/toolbox.js @@ -761,6 +761,10 @@ Toolbox.prototype = { let tiltEnabled = !this.target.isMultiProcess && Services.prefs.getBoolPref("devtools.command-button-tilt.enabled"); let tiltButton = this.doc.getElementById("command-button-tilt"); + // Remote toolboxes don't add the button to the DOM at all + if (!tiltButton) { + return; + } if (tiltEnabled) { tiltButton.removeAttribute("hidden");