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 206673 b4c808eb372611caa2291c8602976a0002f738a2
parent 206561 603dad513d7c2835fc75371930ef1c9038e7feef
child 206674 70aaf98d3bb0cd6d7ebfd1981a969ec08e784087
push id27535
push userttaubert@mozilla.com
push dateTue, 23 Sep 2014 13:53:03 +0000
treeherdermozilla-central@9e193395b912 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1071259, 1071247
milestone35.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 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();