On Fri, Feb 22, 2013 at 7:02 AM, Matthew Gertner <matt...@salsitasoft.com>wrote:

> Is there a better way to let content do crossdomain XHR? Or is there a
> good way to provide a usable XML DOM from chrome to content? I can always
> reparse responseText to create my own DOM if there's a way to create a
> content-friendly DOM.
>

You should look at SpecialPowersAPI.createSystemXHR.  It's what we use in
our test suite to do this.

There's also a systemXHR facility built into Gecko for allowing certain
sites to do cross-origin XHRs without CORS that's being used for b2g, but I
don't think it works to chrome or resource protocols.

- Kyle
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to