Passing output of DOMParser to sandbox

2013-04-17 Thread Simon Kornblith
I want to be able to parse XML and expose the resulting document to a sandboxed script. I do this by first by determining the principal corresponding to a given URI: var secMan = Services.scriptSecurityManager; var uri = Services.io.newURI(http://www.example.com/;, UTF-8, null); var principal =

Re: Passing output of DOMParser to sandbox

2013-04-17 Thread Bobby Holley
On Wed, Apr 17, 2013 at 5:09 PM, Simon Kornblith si...@simonster.comwrote: I want to be able to parse XML and expose the resulting document to a sandboxed script. I do this by first by determining the principal corresponding to a given URI: var secMan = Services.scriptSecurityManager; var