Bug 862353: Remove unnecessary code checking for mozSettings twice in Geolocation tests. r=reuben

This commit is contained in:
Ben Kelly 2013-05-14 13:17:22 -07:00
parent 3e1673a860
commit daf84acd78

View File

@ -99,11 +99,6 @@ function check_geolocation(location) {
function toggleGeolocationSetting(value, callback) {
var mozSettings = window.navigator.mozSettings;
if (!mozSettings) {
addLoadEvent(toggleGeolocationSetting.bind(null, value, callback));
return;
}
var lock = mozSettings.createLock();
var geoenabled = {"geolocation.enabled": value};