mozilla. I have been working on an intranet app that communicates
between two frames on different machines plus, and angel.
The code is simple, it just wants to check a value (well in this
current test incarnation, anyways) and display it in an alert box.
However I can only get a "Permission denied to get property" error when
ever the code is executed.
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalPropertyRead");
netscape.security.PrivilegeManager.enablePrivilege("UniversalPreferencesRead");
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserAccess");
netscape.security.PrivilegeManager.enablePrivilege("Debugger");
} catch (err) {
alert("Bad user! You cannot reject this request!\n" +err+ ".");
}
try {
// Okay, so we can't seem to run a function, how about displaying
// a simple variable? -- ARGH
alert(parent.paymentdetails.myname)
} catch (err) {
alert(err);
}
# AND relevant portions of the prefs.js file
user_pref("capability.policy.intranet.javascript.enabled", "allAccess");
user_pref("capability.policy.intranet.sites", "http://angel
https://angel http://plus https://plus");
user_pref("capability.policy.policynames", "intranet fullaccess");
user_pref("capability.principal.codebase.fullaccess.granted",
"UniversalBrowserAccess UniversalPreferencesRead UniversalPropertyRead
Debugger");
user_pref("capability.principal.codebase.intranet.granted",
"UniversalBrowserAccess UniversalPreferencesRead UniversalPropertyRead
Debugger");
user_pref("capability.principal.codebase.p0.granted", "UniversalXPConnect");
user_pref("capability.principal.codebase.p0.id", "file://");
user_pref("capability.principal.codebase.p1.granted",
"UniversalBrowserAccess UniversalPreferencesRead UniversalPropertyRead
Debugger");
user_pref("capability.principal.codebase.p1.id", "https://angel");
user_pref("capability.principal.codebase.p2.granted",
"UniversalBrowserAccess UniversalPreferencesRead UniversalPropertyRead
Debugger");
user_pref("capability.principal.codebase.p2.id", "http://plus");
user_pref("capability.principal.codebase.p3.granted",
"UniversalBrowserAccess UniversalPreferencesRead UniversalPropertyRead
Debugger");
user_pref("capability.principal.codebase.p3.id", "http://angel");