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 c3c04cb395
commit 34abca28c3

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;
}
},