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:32:10 +0000 (22:32 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 21 Nov 2008 22:32:10 +0000 (22:32 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@11304 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 265f239..d0884a7 100644 (file)
@@ -8,6 +8,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);
        }