On Friday, February 22, 2013 4:28:08 PM UTC+1, Kyle Huey wrote:
> You should look at SpecialPowersAPI.createSystemXHR.  It's what we use in
> our test suite to do this.

Hi Kyle,

Thanks for this. I need to replace the XMLHttpRequest constructor with my own 
constructor, so I can't call createSystemXHR directly. I'll see if I can figure 
out from the code how to do this.

Currently I have to admit that I don't understand how the code addresses the 
issue of giving content access to the responseXML DOM returned by the 
Cc['@mozilla.org/xmlextras/xmlhttprequest;1'].

To reiterate my problem: I am replacing the default implementation of 
XMLHttpRequest with my own wrapper than delegates to 
Cc['@mozilla.org/xmlextras/xmlhttprequest;1']. Everything works fine except 
that the DOM returned by the responseXML property returns an error (Permission 
denied to access property 'documentElement') when I try to retrieve its 
properties. Clearly there is a wrapper in play but exactly what kind of wrapper 
and how to penetrate it is not yet clear to me.

I guess the reason I'm suddenly having this problem is 
https://bugzilla.mozilla.org/show_bug.cgi?id=809652 but I can't be sure since I 
don't have access to it.
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to