mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
Bug 575346 - e10s: Geolocation access token isn't remembered. r=dougt
--HG-- extra : rebase_source : a0f9cd69c4709fdac82b9f5fe3b9d956848b9dde
This commit is contained in:
parent
df580caa24
commit
a7718f5254
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user