hunting down untrapped permission exceptions
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 Dec 2005 19:39:53 +0000 (19:39 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 Dec 2005 19:39:53 +0000 (19:39 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2315 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul
Open-ILS/xul/staff_client/server/cat/opac.js
Open-ILS/xul/staff_client/server/cat/opac.xul

index f092e6a..7d56bef 100644 (file)
@@ -5,16 +5,28 @@
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <scripts id="openils_util_scripts">
+               <script>dump('starting openils_util_overlay\n');</script>
+               <script>dump('loading /xul/server/main/constants.js \n');</script>
                <script type="text/javascript" src="/xul/server/main/constants.js" />
+               <script>dump('loading /opac/common/js/utils.js\n');</script>
                <script type="text/javascript" src="/opac/common/js/utils.js" />
+               <script>dump('loading /opac/common/js/CGI.js\n');</script>
                <script type="text/javascript" src="/opac/common/js/CGI.js" />
+               <script>dump('loading /opac/common/js/md5.js\n');</script>
                <script type="text/javascript" src="/opac/common/js/md5.js" />
+               <script>dump('loading /opac/common/js/JSON.js\n');</script>
                <script type="text/javascript" src="/opac/common/js/JSON.js" />
+               <script>dump('loading /opac/common/js/fmall.js\n');</script>
                <script type="text/javascript" src="/opac/common/js/fmall.js" />
+               <script>dump('loading /opac/common/js/fmgen.js\n');</script>
                <script type="text/javascript" src="/opac/common/js/fmgen.js" />
+               <script>dump('loading /opac/common/js/RemoteRequest.js\n');</script>
                <script type="text/javascript" src="/opac/common/js/RemoteRequest.js" />
+               <script>dump('loading /opac/common/js/OrgTree.js\n');</script>
                <script type="text/javascript" src="/opac/common/js/OrgTree.js" />
+               <script>dump('loading /opac/common/js/org_utils.js\n');</script>
                <script type="text/javascript" src="/opac/common/js/org_utils.js" />   
+               <script>dump('finished openils_util_overlay\n');</script>
        </scripts>
 
 </overlay>
index 410d58c..cdfb805 100644 (file)
@@ -2,7 +2,6 @@ dump('entering cat.opac.js\n');
 
 if (typeof cat == 'undefined') cat = {};
 cat.opac = function (params) {
-
        try {
                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                JSAN.use('util.error'); this.error = new util.error();
index e7f55f1..1d4fba2 100644 (file)
@@ -9,7 +9,7 @@
 
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- LOCALIZATION -->
-<!DOCTYPE overlay SYSTEM "chrome://evergreen/locale/lang.dtd">
+<!DOCTYPE window SYSTEM "chrome://evergreen/locale/lang.dtd">
 
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- OVERLAYS -->
         <scripts id="openils_util_scripts"/>
 
        <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
+
        <script>
        <![CDATA[
                function my_init() {
                        try {
+
                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                                if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
                                JSAN.errorLevel = "die"; // none, warn, or die
                                if (!url) url = urls.opac;
 
                                JSAN.use('cat.opac'); g.opac = new cat.opac();
+
                                g.opac.init( 
                                        { 
                                                'url' : url,
                                                'session' : session,
                                        } 
                                );
+
        
                        } catch(E) {
                                var err_msg = "!! This software has encountered an error.  Please tell your friendly " +