Bug 815398 - Settings: set navigator.mozSettings to null if we don't have read or write permission. r=bent

This commit is contained in:
Gregor Wagner 2012-11-26 15:33:34 -08:00
parent ee22d30cca
commit 760ee093fe

View File

@ -342,6 +342,7 @@ SettingsManager.prototype = {
if (!this.hasReadPrivileges && !this.hasWritePrivileges) {
Cu.reportError("NO SETTINGS PERMISSION FOR: " + aWindow.document.nodePrincipal.origin + "\n");
return null;
}
},