Bug 882319 - Page load fixes for first release. r=nalexander, a=bajaj
authorRichard Newman <rnewman@mozilla.com>
Tue, 18 Jun 2013 14:04:52 -0700
changeset 142937 71778324511add9f740b7b3785f26c3f534d4e1e
parent 142936 e5255296ce294a58bbd50bcb04720769222aff89
child 142938 fe30bac80d31f29fb0f93e2d717406e44a27fd33
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander, bajaj
bugs882319
milestone23.0a2
Bug 882319 - Page load fixes for first release. r=nalexander, a=bajaj
mobile/android/chrome/content/aboutHealthReport.js
--- a/mobile/android/chrome/content/aboutHealthReport.js
+++ b/mobile/android/chrome/content/aboutHealthReport.js
@@ -68,17 +68,17 @@ let healthReportWrapper = {
 
   onOptOut: function () {
     console.log("AboutHealthReport: page sent opt-out command.");
     sharedPrefs.setBoolPref(PREF_UPLOAD_ENABLED, false);
     this.updatePrefState();
   },
 
   updatePrefState: function () {
-    console.log("AboutHealthReport: page requested pref state.");
+    console.log("AboutHealthReport: sending pref state to page.");
     try {
       let prefs = {
         enabled: sharedPrefs.getBoolPref(PREF_UPLOAD_ENABLED),
       };
       this.injectData("prefs", prefs);
     } catch (e) {
       this.reportFailure(this.ERROR_PREFS_FAILED);
     }
@@ -137,17 +137,17 @@ let healthReportWrapper = {
     }
   },
 
   initRemotePage: function () {
     let iframe = document.getElementById("remote-report").contentDocument;
     iframe.addEventListener("RemoteHealthReportCommand",
                             function onCommand(e) {healthReportWrapper.handleRemoteCommand(e);},
                             false);
-    healthReportWrapper.updatePrefState();
+    healthReportWrapper.injectData("begin", null);
   },
 
   // error handling
   ERROR_INIT_FAILED:    1,
   ERROR_PAYLOAD_FAILED: 2,
   ERROR_PREFS_FAILED:   3,
 
   reportFailure: function (error) {