Bug 1114676 - Enable web components for all apps when toggling developer mode r=ochameau
authorFabrice Desré <fabrice@mozilla.com>
Wed, 29 Apr 2015 17:12:20 -0700
changeset 241648 ef9aacc12777facab6b95a334c06bcd61fc4bde4
parent 241647 4b9b12c248dcad6c574ccd9e824d93ae3298ec32
child 241649 18694089105b931c4a0e8354d3fc59f0308a3f8a
push id15337
push userfdesre@mozilla.com
push dateThu, 30 Apr 2015 00:12:31 +0000
treeherderb2g-inbound@ef9aacc12777 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1114676
milestone40.0a1
Bug 1114676 - Enable web components for all apps when toggling developer mode r=ochameau
b2g/components/ProcessGlobal.js
browser/devtools/webide/content/runtimedetails.js
--- a/b2g/components/ProcessGlobal.js
+++ b/b2g/components/ProcessGlobal.js
@@ -102,16 +102,17 @@ ProcessGlobal.prototype = {
       if (params[0] == "wipe") {
         this.wipeDir(params[1]);
       } else if (params[0] == "root") {
         log("unrestrict devtools");
         Services.prefs.setBoolPref("devtools.debugger.forbid-certified-apps", false);
         Services.prefs.setBoolPref("dom.apps.developer_mode", true);
         // TODO: Remove once bug 1125916 is fixed.
         Services.prefs.setBoolPref("network.disable.ipc.security", true);
+        Services.prefs.setBoolPref("dom.webcomponents.enabled", true);
         let lock = settings.createLock();
         lock.set("developer.menu.enabled", true, null);
       }
     });
   },
 
   cleanupAfterFactoryReset: function() {
     log("cleanupAfterWipe start");
--- a/browser/devtools/webide/content/runtimedetails.js
+++ b/browser/devtools/webide/content/runtimedetails.js
@@ -137,16 +137,17 @@ function EnableCertApps() {
   let device = AppManager.selectedRuntime.device;
   // TODO: Remove `network.disable.ipc.security` once bug 1125916 is fixed.
   device.shell(
     "stop b2g && " +
     "cd /data/b2g/mozilla/*.default/ && " +
     "echo 'user_pref(\"devtools.debugger.forbid-certified-apps\", false);' >> prefs.js && " +
     "echo 'user_pref(\"dom.apps.developer_mode\", true);' >> prefs.js && " +
     "echo 'user_pref(\"network.disable.ipc.security\", true);' >> prefs.js && " +
+    "echo 'user_pref(\"dom.webcomponents.enabled\", true);' >> prefs.js && " +
     "start b2g"
   );
 }
 
 function RootADB() {
   let device = AppManager.selectedRuntime.device;
   device.summonRoot().then(CheckLockState, (e) => console.error(e));
 }