Stage 2: Staff Client
authorThomas Berezansky <tsbere@mvlc.org>
Fri, 10 Aug 2012 14:44:47 +0000 (10:44 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 16 Aug 2012 02:26:02 +0000 (22:26 -0400)
commit842f8f854ecf7004436b0799f43297c04d3752b6
tree6c3c482df003c217827c82b0e8d9c49adfde845d
parentec2ed411a8c8df894d5e54c1980f6660cd5f0238
Stage 2: Staff Client

Robustify the oils protocol:

1 - In the event of a problem URL, abort with about:blank.

This prevents a segfault!

2 - In the event of the TPac, or KPac, wrap the channel we return.

The wrapper helps with redirects, but if applied to XMLHttpRequests will
cause full breakage.

Without the wrapper redirects end up setting URLs to https://host/...

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/xul/staff_client/components/oils_protocol.js