Attachment 360222: Patch to fix
https://bugzilla.mozilla.org/attachment.cgi?id=360222&action=edit
------- Additional Comments from Jonas Sicking (:sicking) <jo...@sicking.cc>
The AC spec says that if a request fails, the spec says to clear all cache
entries related to that origin and target uri.
http://dev.w3.org/2006/waf/access-control/#preflight-result-cache-remove
The attached patch makes us do this.
I also made the cache tests use the new getState/setState mechanism that we
expose to sjs files. The old crazy header-name tricks were a pain to deal with
so this works better.