mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 04:35:33 +00:00
Bug 507623 - initializeSanitizer() can fail because "gPrefService.getBranch is not a function". r=gavin
This commit is contained in:
parent
b0b5174739
commit
c4784a209b
@ -115,8 +115,9 @@ var gEditUIVisible = true;
|
||||
|
||||
__defineGetter__("gPrefService", function() {
|
||||
delete this.gPrefService;
|
||||
return this.gPrefService = Cc["@mozilla.org/preferences-service;1"].
|
||||
getService(Ci.nsIPrefBranch2);
|
||||
return this.gPrefService = Cc["@mozilla.org/preferences-service;1"]
|
||||
.getService(Ci.nsIPrefBranch2)
|
||||
.QueryInterface(Ci.nsIPrefService);
|
||||
});
|
||||
|
||||
__defineGetter__("PluralForm", function() {
|
||||
@ -1526,7 +1527,7 @@ function initializeSanitizer()
|
||||
gPrefService.clearUserPref(kDidSanitizeDomain);
|
||||
// We need to persist this preference change, since we want to
|
||||
// check it at next app start even if the browser exits abruptly
|
||||
gPrefService.QueryInterface(Ci.nsIPrefService).savePrefFile(null);
|
||||
gPrefService.savePrefFile(null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user