Bug 919469 - Change the default value of the dom.webapps.firstRunWithSIM preference. r=fabrice
authorCarmen Jimenez <cjc@tid.es>
Mon, 23 Sep 2013 13:24:20 +0200
changeset 149072 6a5112cc49e760c33b4ae567d51b3135a7961594
parent 149071 021e1b5e8cab8dbb644bd377294b447218f522db
child 149073 9e0ef1789832c72c7a3cebfbbdc1a9ac9f1d7380
push id34439
push userkwierso@gmail.com
push dateSat, 28 Sep 2013 03:39:12 +0000
treeherdermozilla-inbound@caec8c0c4963 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs919469
milestone27.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 919469 - Change the default value of the dom.webapps.firstRunWithSIM preference. r=fabrice
b2g/app/b2g.js
dom/apps/src/OperatorApps.jsm
--- a/b2g/app/b2g.js
+++ b/b2g/app/b2g.js
@@ -428,17 +428,17 @@ pref("services.push.pingInterval", 18000
 pref("services.push.requestTimeout", 10000);
 // enable udp wakeup support
 pref("services.push.udp.wakeupEnabled", true);
 
 // NetworkStats
 #ifdef MOZ_B2G_RIL
 pref("dom.mozNetworkStats.enabled", true);
 pref("ril.cellbroadcast.disabled", false);
-pref("dom.webapps.firstRunWithSIM", false);
+pref("dom.webapps.firstRunWithSIM", true);
 #endif
 
 // WebSettings
 pref("dom.mozSettings.enabled", true);
 pref("dom.navigator-property.disable.mozSettings", false);
 pref("dom.mozPermissionSettings.enabled", true);
 
 // controls if we want camera support
--- a/dom/apps/src/OperatorApps.jsm
+++ b/dom/apps/src/OperatorApps.jsm
@@ -227,16 +227,17 @@ this.OperatorAppsRegistry = {
           this._launchInstall(isPackage, aId, aMetadata, manifest);
         } else {
           debug ("Error. Neither " + UPDATEMANIFEST + " file nor " + MANIFEST +
                  " file for " + aId + " app.");
         }
       }
       this.eraseVariantAppsNotInList(aIdsApp);
       Services.prefs.setBoolPref(PREF_FIRST_RUN_WITH_SIM, false);
+      Services.prefs.savePrefFile(null);
     }.bind(this)).then(null, function(aError) {
         debug("Error: " + aError);
     });
   },
 
   _getSingleVariantApps: function(aMcc, aMnc) {
 
     function normalizeCode(aCode) {