[open-ils-commits] r16420 - trunk/Open-ILS/xul/staff_client/chrome/content/util (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed May 12 13:48:38 EDT 2010
Author: phasefx
Date: 2010-05-12 13:48:34 -0400 (Wed, 12 May 2010)
New Revision: 16420
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/util/browser.js
Log:
hoping to get around new chrome versus remote xul restrictions
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/browser.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/browser.js 2010-05-12 17:48:33 UTC (rev 16419)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/browser.js 2010-05-12 17:48:34 UTC (rev 16420)
@@ -281,7 +281,17 @@
if (typeof obj.on_url_load == 'function') {
try {
obj.error.sdump('D_TRACE','calling on_url_load');
- obj.on_url_load( obj.controller.view.browser_browser );
+ var helpers = {
+ 'doc_write' : function(html) {
+ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+ obj.get_content().document.write(html);
+ },
+ 'doc_close' : function() {
+ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+ obj.get_content().document.close();
+ }
+ }
+ obj.on_url_load( obj.controller.view.browser_browser, obj, helpers );
} catch(E) {
obj.error.sdump('D_ERROR','on_url_load: ' + E );
}
More information about the open-ils-commits
mailing list