get rid of the UNSAFE script warnings for interfaces that are loaded via https
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 21 Nov 2008 22:30:25 +0000 (22:30 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 21 Nov 2008 22:30:25 +0000 (22:30 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11303 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/main.js

index da357b7..a91f1ec 100644 (file)
@@ -12,6 +12,8 @@ function grant_perms(url) {
        if (pref) {
                pref.setCharPref("capability.principal.codebase.p0.granted", perms);
                pref.setCharPref("capability.principal.codebase.p0.id", url);
+               pref.setCharPref("capability.principal.codebase.p1.granted", perms);
+               pref.setCharPref("capability.principal.codebase.p1.id", url.replace('http:','https:'));
                pref.setBoolPref("dom.disable_open_during_load",false);
                pref.setBoolPref("browser.popups.showPopupBlocker",false);
        }