Stage 2: Staff Client user/tsbere/more_oils_fixes
authorThomas Berezansky <tsbere@mvlc.org>
Fri, 10 Aug 2012 14:44:47 +0000 (10:44 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Wed, 15 Aug 2012 20:21:31 +0000 (16:21 -0400)
commitd9691ae7abbe57a8a98c2747fd87516155341407
tree6e1600d30df447e3e37f8397ba8b65d706db0472
parent93491997c0dd6501f81fc6e4e5567d3418bcab4e
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>
Open-ILS/xul/staff_client/components/oils_protocol.js