Was trying to figure out a denied xmlhttprequest in the opac. Bill had to change...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 15 Nov 2005 16:04:23 +0000 (16:04 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 15 Nov 2005 16:04:23 +0000 (16:04 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2027 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/auth/auth.js
Evergreen/staff_client/defaults/preferences/evergreen.js

index 507f617..4083ded 100644 (file)
@@ -106,6 +106,12 @@ function auth_init() {
        self.addEventListener("unload",nice_shutdown,false);
 
        G['sound'] = xp_sound_init(); snd_logon();
+       var pref = Components.classes["@mozilla.org/preferences-service;1"]
+               .getService(Components.interfaces.nsIPrefBranch);
+       if (pref) {
+               pref.setCharPref("capability.principal.codebase.p0.granted", "UniversalXPConnect UniversalPreferencesWrite UniversalBrowserWrite UniversalPreferencesRead UniversalBrowserRead");
+               pref.setCharPref("capability.principal.codebase.p0.id", "http://dev.gapines.org");
+       }
 }
 
 function handle_keypress(ev) {
index 4ce16b6..4587a85 100644 (file)
@@ -13,3 +13,9 @@ pref("network.http.max-persistent-connections-per-server",8);
 pref("dom.max_script_run_time",60);
 
 pref("javascript.options.strict",false);
+pref("javascript.options.showInConsole",true);
+
+// This lets remote xul access link to local chrome
+pref("security.checkloaduri", false);
+pref("signed.applets.codebase_principal_support", true);
+