Bug 1071259 - Clear the loop.hawk-session-token.fxa pref on shutdown to workaround bug 1071247. r=jaws
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Mon, 22 Sep 2014 14:43:41 -0700
changeset 206562 b4c808eb372611caa2291c8602976a0002f738a2
parent 206561 603dad513d7c2835fc75371930ef1c9038e7feef
child 206563 70aaf98d3bb0cd6d7ebfd1981a969ec08e784087
push id8911
push usermozilla@noorenberghe.ca
push dateMon, 22 Sep 2014 21:50:38 +0000
treeherderfx-team@70aaf98d3bb0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1071259, 1071247
milestone35.0a1
Bug 1071259 - Clear the loop.hawk-session-token.fxa pref on shutdown to workaround bug 1071247. r=jaws
browser/components/nsBrowserGlue.js
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -736,16 +736,20 @@ BrowserGlue.prototype = {
     WebappManager.uninit();
 #ifdef NIGHTLY_BUILD
     if (Services.prefs.getBoolPref("dom.identity.enabled")) {
       SignInToWebsiteUX.uninit();
     }
 #endif
     webrtcUI.uninit();
     FormValidationHandler.uninit();
+
+    // XXX: Temporary hack to allow Loop FxA login after a restart to work.
+    // Remove this once bug 1071247 is deployed.
+    Services.prefs.clearUserPref("loop.hawk-session-token.fxa");
   },
 
   // All initial windows have opened.
   _onWindowsRestored: function BG__onWindowsRestored() {
     // Show update notification, if needed.
     if (Services.prefs.prefHasUserValue("app.update.postupdate"))
       this._showUpdateNotification();