I was wondering how to get the allowXHR flag into javascript, and what is the proper moment to do it.

Could I set it on the JS window, at the top of jsRunScriptResult?
set_property_bool(cw->winobj, "allowXHR", allowXHR);

This way JS will always have the updated preference.  Javascript
can be responsible for having a try-catch or similar, so that XHR
does not run, but everything else can continue.


thanks
Kevin



_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev

Reply via email to