Bug 575346 - e10s: Geolocation access token isn't remembered. r=dougt

--HG--
extra : rebase_source : a0f9cd69c4709fdac82b9f5fe3b9d956848b9dde
This commit is contained in:
Josh Matthews 2010-08-06 22:18:51 -04:00
parent df580caa24
commit a7718f5254

View File

@ -369,8 +369,12 @@ WifiGeoPositionProvider.prototype = {
// no match, lets cache
LOG("New Access Token: " + newAccessToken + "\n" + accessTokenPrefName);
prefService.setIntPref(accessTokenPrefName + ".time", nowInSeconds());
prefService.setCharPref(accessTokenPrefName, newAccessToken);
try {
prefService.setIntPref(accessTokenPrefName + ".time", nowInSeconds());
prefService.setCharPref(accessTokenPrefName, newAccessToken);
} catch (x) {
// XXX temporary hack for bug 575346 to allow geolocation to function
}
}
}