mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 815398 - Settings: set navigator.mozSettings to null if we don't have read or write permission. r=bent
This commit is contained in:
parent
ee22d30cca
commit
760ee093fe
@ -342,6 +342,7 @@ SettingsManager.prototype = {
|
|||||||
|
|
||||||
if (!this.hasReadPrivileges && !this.hasWritePrivileges) {
|
if (!this.hasReadPrivileges && !this.hasWritePrivileges) {
|
||||||
Cu.reportError("NO SETTINGS PERMISSION FOR: " + aWindow.document.nodePrincipal.origin + "\n");
|
Cu.reportError("NO SETTINGS PERMISSION FOR: " + aWindow.document.nodePrincipal.origin + "\n");
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user