Bug 1203648 - Default devtools.webide.sidebars to true. r=jryans
authorJennifer Fong <jfong@mozilla.com>
Mon, 14 Sep 2015 09:10:00 -0400
changeset 295242 5f69abfe8d2ec1feafe3ad12f4edcdb7c274943b
parent 295241 cb711870d2b8d52f51b18e68c4d4cd3f9925bf53
child 295243 93a6681ccc23d1766f9b06977060f15a97f3eaef
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjryans
bugs1203648
milestone43.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 1203648 - Default devtools.webide.sidebars to true. r=jryans
browser/devtools/webide/test/browser_tabs.js
browser/devtools/webide/test/head.js
browser/devtools/webide/test/sidebars/browser_tabs.js
browser/devtools/webide/test/sidebars/chrome.ini
browser/devtools/webide/test/sidebars/test_addons.html
browser/devtools/webide/test/sidebars/test_autoconnect_runtime.html
browser/devtools/webide/test/sidebars/test_autoselect_project.html
browser/devtools/webide/test/sidebars/test_device_permissions.html
browser/devtools/webide/test/sidebars/test_device_preferences.html
browser/devtools/webide/test/sidebars/test_device_runtime.html
browser/devtools/webide/test/sidebars/test_device_settings.html
browser/devtools/webide/test/sidebars/test_duplicate_import.html
browser/devtools/webide/test/sidebars/test_fullscreenToolbox.html
browser/devtools/webide/test/sidebars/test_import.html
browser/devtools/webide/test/sidebars/test_manifestUpdate.html
browser/devtools/webide/test/sidebars/test_newapp.html
browser/devtools/webide/test/sidebars/test_runtime.html
browser/devtools/webide/test/sidebars/test_telemetry.html
browser/devtools/webide/test/test_addons.html
browser/devtools/webide/test/test_autoconnect_runtime.html
browser/devtools/webide/test/test_autoselect_project.html
browser/devtools/webide/test/test_device_permissions.html
browser/devtools/webide/test/test_device_preferences.html
browser/devtools/webide/test/test_device_runtime.html
browser/devtools/webide/test/test_device_settings.html
browser/devtools/webide/test/test_duplicate_import.html
browser/devtools/webide/test/test_fullscreenToolbox.html
browser/devtools/webide/test/test_import.html
browser/devtools/webide/test/test_manifestUpdate.html
browser/devtools/webide/test/test_newapp.html
browser/devtools/webide/test/test_runtime.html
browser/devtools/webide/test/test_simulators.html
browser/devtools/webide/test/test_telemetry.html
browser/devtools/webide/webide-prefs.js
--- a/browser/devtools/webide/test/browser_tabs.js
+++ b/browser/devtools/webide/test/browser_tabs.js
@@ -6,16 +6,18 @@ const TEST_URI = "http://example.com/bro
 
 function test() {
   waitForExplicitFinish();
   requestCompleteLog();
 
   Task.spawn(function*() {
     const { DebuggerServer } = require("devtools/server/main");
 
+    Services.prefs.setBoolPref("devtools.webide.sidebars", false);
+
     // Since we test the connections set below, destroy the server in case it
     // was left open.
     DebuggerServer.destroy();
     DebuggerServer.init();
     DebuggerServer.addBrowserActors();
 
     let tab = yield addTab(TEST_URI);
 
--- a/browser/devtools/webide/test/head.js
+++ b/browser/devtools/webide/test/head.js
@@ -20,16 +20,17 @@ let TEST_BASE;
 if (window.location === "chrome://browser/content/browser.xul") {
   TEST_BASE = "chrome://mochitests/content/browser/browser/devtools/webide/test/";
 } else {
   TEST_BASE = "chrome://mochitests/content/chrome/browser/devtools/webide/test/";
 }
 
 Services.prefs.setBoolPref("devtools.webide.enabled", true);
 Services.prefs.setBoolPref("devtools.webide.enableLocalRuntime", true);
+Services.prefs.setBoolPref("devtools.webide.sidebars", true);
 
 Services.prefs.setCharPref("devtools.webide.addonsURL", TEST_BASE + "addons/simulators.json");
 Services.prefs.setCharPref("devtools.webide.simulatorAddonsURL", TEST_BASE + "addons/fxos_#SLASHED_VERSION#_simulator-#OS#.xpi");
 Services.prefs.setCharPref("devtools.webide.adbAddonURL", TEST_BASE + "addons/adbhelper-#OS#.xpi");
 Services.prefs.setCharPref("devtools.webide.adaptersAddonURL", TEST_BASE + "addons/fxdt-adapters-#OS#.xpi");
 Services.prefs.setCharPref("devtools.webide.templatesURL", TEST_BASE + "templates.json");
 Services.prefs.setCharPref("devtools.devices.url", TEST_BASE + "browser_devices.json");
 
--- a/browser/devtools/webide/test/sidebars/browser_tabs.js
+++ b/browser/devtools/webide/test/sidebars/browser_tabs.js
@@ -6,18 +6,16 @@ const TEST_URI = "http://example.com/bro
 
 function test() {
   waitForExplicitFinish();
   requestCompleteLog();
 
   Task.spawn(function*() {
     const { DebuggerServer } = require("devtools/server/main");
 
-    Services.prefs.setBoolPref("devtools.webide.sidebars", true);
-
     // Since we test the connections set below, destroy the server in case it
     // was left open.
     DebuggerServer.destroy();
     DebuggerServer.init();
     DebuggerServer.addBrowserActors();
 
     let tab = yield addTab(TEST_URI);
 
--- a/browser/devtools/webide/test/sidebars/chrome.ini
+++ b/browser/devtools/webide/test/sidebars/chrome.ini
@@ -14,10 +14,11 @@ skip-if = buildapp == 'b2g' || (os == "m
 [test_runtime.html]
 [test_manifestUpdate.html]
 [test_addons.html]
 [test_autoconnect_runtime.html]
 [test_autoselect_project.html]
 [test_fullscreenToolbox.html]
 [test_device_preferences.html]
 [test_device_permissions.html]
+[test_device_runtime.html]
 [test_device_settings.html]
 [test_telemetry.html]
--- a/browser/devtools/webide/test/sidebars/test_addons.html
+++ b/browser/devtools/webide/test/sidebars/test_addons.html
@@ -87,18 +87,16 @@
           });
           let li = doc.querySelector('[status="installed"][addon="adb"]');
           li.querySelector(".uninstall-button").click();
           return deferred.promise;
         }
 
         Task.spawn(function*() {
 
-          Services.prefs.setBoolPref("devtools.webide.sidebars", true);
-
           ok(!Devices.helperAddonInstalled, "Helper not installed");
 
           let win = yield openWebIDE(true);
           let docRuntime = getRuntimeDocument(win);
 
           yield adbAddonsInstalled.promise;
 
           ok(Devices.helperAddonInstalled, "Helper has been auto-installed");
--- a/browser/devtools/webide/test/sidebars/test_autoconnect_runtime.html
+++ b/browser/devtools/webide/test/sidebars/test_autoconnect_runtime.html
@@ -15,17 +15,16 @@
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function*() {
           const { DebuggerServer } = require("devtools/server/main");
-          Services.prefs.setBoolPref("devtools.webide.sidebars", true);
 
           if (!DebuggerServer.initialized) {
             DebuggerServer.init();
             DebuggerServer.addBrowserActors();
           }
 
           let win = yield openWebIDE();
           let docRuntime = getRuntimeDocument(win);
--- a/browser/devtools/webide/test/sidebars/test_autoselect_project.html
+++ b/browser/devtools/webide/test/sidebars/test_autoselect_project.html
@@ -15,17 +15,16 @@
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function* () {
           const { DebuggerServer } = require("devtools/server/main");
-          Services.prefs.setBoolPref("devtools.webide.sidebars", true);
 
           if (!DebuggerServer.initialized) {
             DebuggerServer.init();
             DebuggerServer.addBrowserActors();
           }
 
           let win = yield openWebIDE();
           let docRuntime = getRuntimeDocument(win);
--- a/browser/devtools/webide/test/sidebars/test_device_permissions.html
+++ b/browser/devtools/webide/test/sidebars/test_device_permissions.html
@@ -15,17 +15,16 @@
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function* () {
           const { DebuggerServer } = require("devtools/server/main");
-          Services.prefs.setBoolPref("devtools.webide.sidebars", true);
 
           if (!DebuggerServer.initialized) {
             DebuggerServer.init();
             DebuggerServer.addBrowserActors();
           }
 
           let win = yield openWebIDE();
 
--- a/browser/devtools/webide/test/sidebars/test_device_preferences.html
+++ b/browser/devtools/webide/test/sidebars/test_device_preferences.html
@@ -15,17 +15,16 @@
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function* () {
           const { DebuggerServer } = require("devtools/server/main");
-          Services.prefs.setBoolPref("devtools.webide.sidebars", true);
 
           if (!DebuggerServer.initialized) {
             DebuggerServer.init();
             DebuggerServer.addBrowserActors();
           }
 
           let win = yield openWebIDE();
 
new file mode 100644
--- /dev/null
+++ b/browser/devtools/webide/test/sidebars/test_device_runtime.html
@@ -0,0 +1,83 @@
+<!DOCTYPE html>
+
+<html>
+
+  <head>
+    <meta charset="utf8">
+    <title></title>
+
+    <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
+    <script type="application/javascript" src="chrome://mochikit/content/chrome-harness.js"></script>
+    <script type="application/javascript;version=1.8" src="head.js"></script>
+    <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css">
+  </head>
+
+  <body>
+
+    <script type="application/javascript;version=1.8">
+      window.onload = function() {
+        SimpleTest.waitForExplicitFinish();
+
+        Task.spawn(function* () {
+          const { DebuggerServer } = require("devtools/server/main");
+
+          if (!DebuggerServer.initialized) {
+            DebuggerServer.init();
+            DebuggerServer.addBrowserActors();
+          }
+
+          let win = yield openWebIDE();
+
+          let detailsIframe = win.document.querySelector("#deck-panel-runtimedetails");
+
+          yield connectToLocalRuntime(win);
+
+          let details = win.document.querySelector("#cmd_showRuntimeDetails");
+
+          ok(!details.hasAttribute("disabled"), "info cmd enabled");
+
+          let deck = win.document.querySelector("#deck");
+
+          win.Cmds.showRuntimeDetails();
+          is(deck.selectedPanel, detailsIframe, "info iframe selected");
+
+          yield nextTick();
+
+          yield lazyIframeIsLoaded(detailsIframe);
+
+          yield detailsIframe.contentWindow.getDescriptionPromise;
+
+          // device info and permissions content is checked in other tests
+          // We just test one value to make sure we get something
+
+          let doc = detailsIframe.contentWindow.document;
+          let trs = doc.querySelectorAll("tr");
+          let found = false;
+
+          for (let tr of trs) {
+            let [name,val] = tr.querySelectorAll("td");
+            if (name.textContent == "appid") {
+              found = true;
+              is(val.textContent, Services.appinfo.ID, "appid has the right value");
+              break;
+            }
+          }
+          ok(found, "Found appid line");
+
+          doc.querySelector("#close").click();
+
+          ok(!deck.selectedPanel, "No panel selected");
+
+          DebuggerServer.destroy();
+
+          yield closeWebIDE(win);
+
+          SimpleTest.finish();
+        }).then(null, e => {
+          ok(false, "Exception: " + e);
+          SimpleTest.finish();
+        });
+      }
+    </script>
+  </body>
+</html>
--- a/browser/devtools/webide/test/sidebars/test_device_settings.html
+++ b/browser/devtools/webide/test/sidebars/test_device_settings.html
@@ -20,18 +20,16 @@
 
         Task.spawn(function*() {
           const { DebuggerServer } = require("devtools/server/main");
 
           if (SpecialPowers.isMainProcess()) {
             Cu.import("resource://gre/modules/SettingsRequestManager.jsm");
           }
 
-          Services.prefs.setBoolPref("devtools.webide.sidebars", true);
-
           if (!DebuggerServer.initialized) {
             DebuggerServer.init();
             DebuggerServer.addBrowserActors();
           }
 
           let win = yield openWebIDE();
 
           let settingIframe = win.document.querySelector("#deck-panel-devicesettings");
--- a/browser/devtools/webide/test/sidebars/test_duplicate_import.html
+++ b/browser/devtools/webide/test/sidebars/test_duplicate_import.html
@@ -13,17 +13,16 @@
   </head>
 
   <body>
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function*() {
-          Services.prefs.setBoolPref("devtools.webide.sidebars", true);
           let win = yield openWebIDE();
           let docProject = getProjectDocument(win);
           let packagedAppLocation = getTestFilePath("../app");
           let hostedAppManifest = TEST_BASE + "hosted_app.manifest";
 
           yield win.AppProjects.load();
           is(win.AppProjects.store.object.projects.length, 0, "IDB is empty");
 
--- a/browser/devtools/webide/test/sidebars/test_fullscreenToolbox.html
+++ b/browser/devtools/webide/test/sidebars/test_fullscreenToolbox.html
@@ -24,17 +24,16 @@
         return deferred.promise;
       }
 
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function* () {
           const { DebuggerServer } = require("devtools/server/main");
-          Services.prefs.setBoolPref("devtools.webide.sidebars", true);
           let win = yield openWebIDE();
           let docProject = getProjectDocument(win);
           let docRuntime = getRuntimeDocument(win);
           win.AppManager.update("runtime-list");
 
           yield connectToLocal(win, docRuntime);
 
           // Select main process
--- a/browser/devtools/webide/test/sidebars/test_import.html
+++ b/browser/devtools/webide/test/sidebars/test_import.html
@@ -13,17 +13,16 @@
   </head>
 
   <body>
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function*() {
-          Services.prefs.setBoolPref("devtools.webide.sidebars", true);
           let win = yield openWebIDE();
           let docProject = getProjectDocument(win);
           let packagedAppLocation = getTestFilePath("../app");
 
           yield win.AppProjects.load();
           is(win.AppProjects.store.object.projects.length, 0, "IDB is empty");
 
           info("to call importPackagedApp(" + packagedAppLocation + ")");
--- a/browser/devtools/webide/test/sidebars/test_manifestUpdate.html
+++ b/browser/devtools/webide/test/sidebars/test_manifestUpdate.html
@@ -16,17 +16,16 @@
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         let {TextDecoder, OS}  = Cu.import("resource://gre/modules/osfile.jsm", {});
 
         Task.spawn(function* () {
-            Services.prefs.setBoolPref("devtools.webide.sidebars", true);
             let win = yield openWebIDE();
             let AppManager = win.AppManager;
 
             function isProjectMarkedAsValid() {
               let details = win.frames[1];
               return !details.document.body.classList.contains("error");
             }
 
--- a/browser/devtools/webide/test/sidebars/test_newapp.html
+++ b/browser/devtools/webide/test/sidebars/test_newapp.html
@@ -14,17 +14,16 @@
 
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function* () {
-          Services.prefs.setBoolPref("devtools.webide.sidebars", true);
           let win = yield openWebIDE();
           let tmpDir = FileUtils.getDir("TmpD", []);
           yield win.projectList.newApp({
             index: 0,
             name: "webideTmpApp",
             folder: tmpDir
           });
 
--- a/browser/devtools/webide/test/sidebars/test_runtime.html
+++ b/browser/devtools/webide/test/sidebars/test_runtime.html
@@ -13,18 +13,16 @@
   </head>
 
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
-        Services.prefs.setBoolPref("devtools.webide.sidebars", true);
-
         let win;
 
         SimpleTest.registerCleanupFunction(() => {
           Task.spawn(function*() {
             if (win) {
               yield closeWebIDE(win);
             }
             DebuggerServer.destroy();
--- a/browser/devtools/webide/test/sidebars/test_telemetry.html
+++ b/browser/devtools/webide/test/sidebars/test_telemetry.html
@@ -281,18 +281,16 @@
             }
             DebuggerServer.destroy();
             yield removeAllProjects();
             resetTelemetry();
           });
         });
 
         Task.spawn(function*() {
-          Services.prefs.setBoolPref("devtools.webide.sidebars", true);
-
           if (!DebuggerServer.initialized) {
             DebuggerServer.init();
             DebuggerServer.addBrowserActors();
           }
 
           patchTelemetry();
 
           // Cycle once, so we can test for multiple opens
--- a/browser/devtools/webide/test/test_addons.html
+++ b/browser/devtools/webide/test/test_addons.html
@@ -87,16 +87,18 @@
           });
           let li = doc.querySelector('[status="installed"][addon="adb"]');
           li.querySelector(".uninstall-button").click();
           return deferred.promise;
         }
 
         Task.spawn(function* () {
 
+          Services.prefs.setBoolPref("devtools.webide.sidebars", false);
+
           ok(!Devices.helperAddonInstalled, "Helper not installed");
 
           let win = yield openWebIDE(true);
 
           yield adbAddonsInstalled.promise;
 
           ok(Devices.helperAddonInstalled, "Helper has been auto-installed");
 
--- a/browser/devtools/webide/test/test_autoconnect_runtime.html
+++ b/browser/devtools/webide/test/test_autoconnect_runtime.html
@@ -15,16 +15,17 @@
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function* () {
           const { DebuggerServer } = require("devtools/server/main");
+          Services.prefs.setBoolPref("devtools.webide.sidebars", false);
 
           if (!DebuggerServer.initialized) {
             DebuggerServer.init();
             DebuggerServer.addBrowserActors();
           }
 
           let win = yield openWebIDE();
 
--- a/browser/devtools/webide/test/test_autoselect_project.html
+++ b/browser/devtools/webide/test/test_autoselect_project.html
@@ -15,16 +15,17 @@
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function* () {
           const { DebuggerServer } = require("devtools/server/main");
+          Services.prefs.setBoolPref("devtools.webide.sidebars", false);
 
           if (!DebuggerServer.initialized) {
             DebuggerServer.init();
             DebuggerServer.addBrowserActors();
           }
 
           let win = yield openWebIDE();
 
--- a/browser/devtools/webide/test/test_device_permissions.html
+++ b/browser/devtools/webide/test/test_device_permissions.html
@@ -15,16 +15,17 @@
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function* () {
           const { DebuggerServer } = require("devtools/server/main");
+          Services.prefs.setBoolPref("devtools.webide.sidebars", false);
 
           if (!DebuggerServer.initialized) {
             DebuggerServer.init();
             DebuggerServer.addBrowserActors();
           }
 
           let win = yield openWebIDE();
 
--- a/browser/devtools/webide/test/test_device_preferences.html
+++ b/browser/devtools/webide/test/test_device_preferences.html
@@ -15,16 +15,17 @@
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function* () {
           const { DebuggerServer } = require("devtools/server/main");
+          Services.prefs.setBoolPref("devtools.webide.sidebars", false);
 
           if (!DebuggerServer.initialized) {
             DebuggerServer.init();
             DebuggerServer.addBrowserActors();
           }
 
           let win = yield openWebIDE();
 
--- a/browser/devtools/webide/test/test_device_runtime.html
+++ b/browser/devtools/webide/test/test_device_runtime.html
@@ -15,16 +15,17 @@
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function* () {
           const { DebuggerServer } = require("devtools/server/main");
+          Services.prefs.setBoolPref("devtools.webide.sidebars", false);
 
           if (!DebuggerServer.initialized) {
             DebuggerServer.init();
             DebuggerServer.addBrowserActors();
           }
 
           let win = yield openWebIDE();
 
--- a/browser/devtools/webide/test/test_device_settings.html
+++ b/browser/devtools/webide/test/test_device_settings.html
@@ -20,16 +20,18 @@
 
         Task.spawn(function*() {
           const { DebuggerServer } = require("devtools/server/main");
 
           if (SpecialPowers.isMainProcess()) {
             Cu.import("resource://gre/modules/SettingsRequestManager.jsm");
           }
 
+          Services.prefs.setBoolPref("devtools.webide.sidebars", false);
+
           if (!DebuggerServer.initialized) {
             DebuggerServer.init();
             DebuggerServer.addBrowserActors();
           }
 
           let win = yield openWebIDE();
 
           let settingIframe = win.document.querySelector("#deck-panel-devicesettings");
--- a/browser/devtools/webide/test/test_duplicate_import.html
+++ b/browser/devtools/webide/test/test_duplicate_import.html
@@ -14,16 +14,17 @@
 
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function* () {
+          Services.prefs.setBoolPref("devtools.webide.sidebars", false);
           let win = yield openWebIDE();
           let packagedAppLocation = getTestFilePath("app");
           let hostedAppManifest = TEST_BASE + "hosted_app.manifest";
 
           yield win.AppProjects.load();
           is(win.AppProjects.store.object.projects.length, 0, "IDB is empty");
 
           info("to call importPackagedApp(" + packagedAppLocation + ")");
--- a/browser/devtools/webide/test/test_fullscreenToolbox.html
+++ b/browser/devtools/webide/test/test_fullscreenToolbox.html
@@ -25,16 +25,17 @@
         return deferred.promise;
       }
 
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function* () {
           const { DebuggerServer } = require("devtools/server/main");
+          Services.prefs.setBoolPref("devtools.webide.sidebars", false);
           win = yield openWebIDE();
           win.AppManager.update("runtime-list");
 
           yield connectToLocal(win);
 
           // Select main process
           yield win.Cmds.showProjectPanel();
           yield waitForUpdate(win, "runtime-targets");
--- a/browser/devtools/webide/test/test_import.html
+++ b/browser/devtools/webide/test/test_import.html
@@ -14,16 +14,17 @@
 
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function*() {
+          Services.prefs.setBoolPref("devtools.webide.sidebars", false);
           let win = yield openWebIDE();
           let packagedAppLocation = getTestFilePath("app");
 
           yield win.AppProjects.load();
           is(win.AppProjects.store.object.projects.length, 0, "IDB is empty");
 
           info("to call importPackagedApp(" + packagedAppLocation + ")");
           ok(!win.UI._busyPromise, "UI is not busy");
--- a/browser/devtools/webide/test/test_manifestUpdate.html
+++ b/browser/devtools/webide/test/test_manifestUpdate.html
@@ -16,16 +16,17 @@
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         let {TextDecoder, OS}  = Cu.import("resource://gre/modules/osfile.jsm", {});
 
         Task.spawn(function* () {
+            Services.prefs.setBoolPref("devtools.webide.sidebars", false);
             let win = yield openWebIDE();
             let AppManager = win.AppManager;
 
             function isProjectMarkedAsValid() {
               let details = win.frames[1];
               return !details.document.body.classList.contains("error");
             }
 
--- a/browser/devtools/webide/test/test_newapp.html
+++ b/browser/devtools/webide/test/test_newapp.html
@@ -14,32 +14,33 @@
 
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
         Task.spawn(function* () {
-            let win = yield openWebIDE();
-            let tmpDir = FileUtils.getDir("TmpD", []);
-            yield win.projectList.newApp({
-              index: 0,
-              name: "webideTmpApp",
-              folder: tmpDir
-            });
+          Services.prefs.setBoolPref("devtools.webide.sidebars", false);
+          let win = yield openWebIDE();
+          let tmpDir = FileUtils.getDir("TmpD", []);
+          yield win.projectList.newApp({
+            index: 0,
+            name: "webideTmpApp",
+            folder: tmpDir
+          });
 
-            let project = win.AppManager.selectedProject;
-            tmpDir = FileUtils.getDir("TmpD", ["webidetmpapp"]);
-            ok(tmpDir.isDirectory(), "Directory created");
-            is(project.location, tmpDir.path, "Location is valid (and lowercase)");
-            is(project.name, "webideTmpApp", "name field has been updated");
+          let project = win.AppManager.selectedProject;
+          tmpDir = FileUtils.getDir("TmpD", ["webidetmpapp"]);
+          ok(tmpDir.isDirectory(), "Directory created");
+          is(project.location, tmpDir.path, "Location is valid (and lowercase)");
+          is(project.name, "webideTmpApp", "name field has been updated");
 
-            // Clean up
-            tmpDir.remove(true);
-            yield closeWebIDE(win);
-            yield removeAllProjects();
-            SimpleTest.finish();
+          // Clean up
+          tmpDir.remove(true);
+          yield closeWebIDE(win);
+          yield removeAllProjects();
+          SimpleTest.finish();
         });
       }
     </script>
   </body>
 </html>
--- a/browser/devtools/webide/test/test_runtime.html
+++ b/browser/devtools/webide/test/test_runtime.html
@@ -13,16 +13,18 @@
   </head>
 
   <body>
 
     <script type="application/javascript;version=1.8">
       window.onload = function() {
         SimpleTest.waitForExplicitFinish();
 
+        Services.prefs.setBoolPref("devtools.webide.sidebars", false);
+
         let win;
 
         SimpleTest.registerCleanupFunction(() => {
           Task.spawn(function*() {
             if (win) {
               yield closeWebIDE(win);
             }
             DebuggerServer.destroy();
--- a/browser/devtools/webide/test/test_simulators.html
+++ b/browser/devtools/webide/test/test_simulators.html
@@ -37,16 +37,17 @@
               addon.off("update", onUpdate);
               nextTick().then(() => deferred.resolve());
             }
           });
           return deferred.promise;
         }
 
         Task.spawn(function* () {
+          Services.prefs.setBoolPref("devtools.webide.sidebars", false);
 
           let win = yield openWebIDE(false);
 
           yield Simulators._load();
 
           let find = win.document.querySelector.bind(win.document);
           let findAll = win.document.querySelectorAll.bind(win.document);
 
--- a/browser/devtools/webide/test/test_telemetry.html
+++ b/browser/devtools/webide/test/test_telemetry.html
@@ -281,16 +281,18 @@
             }
             DebuggerServer.destroy();
             yield removeAllProjects();
             resetTelemetry();
           });
         });
 
         Task.spawn(function*() {
+          Services.prefs.setBoolPref("devtools.webide.sidebars", false);
+
           if (!DebuggerServer.initialized) {
             DebuggerServer.init();
             DebuggerServer.addBrowserActors();
           }
 
           patchTelemetry();
 
           // Cycle once, so we can test for multiple opens
--- a/browser/devtools/webide/webide-prefs.js
+++ b/browser/devtools/webide/webide-prefs.js
@@ -27,9 +27,9 @@ pref("devtools.webide.widget.autoinstall
 pref("devtools.webide.widget.enabled", true);
 pref("devtools.webide.widget.inNavbarByDefault", true);
 #else
 pref("devtools.webide.widget.enabled", false);
 pref("devtools.webide.widget.inNavbarByDefault", false);
 #endif
 pref("devtools.webide.zoom", "1");
 pref("devtools.webide.busyTimeout", 10000);
-pref("devtools.webide.sidebars", false);
+pref("devtools.webide.sidebars", true);