Re: local file
Boris Zbarsky <[email protected]> Tue, 14 Aug 2007 17:27:30 -0500
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
jerryc wrote: > I'm getting a local file via XMLHttpRequest in a C++ component. In alpha 3 > this worked. In alpha 7 I crash in nsCrossSiteListenerProxy::OnStartRequest > with a NULL mRequestingURI. Er... that code is just wrong. It should be crashing with a chrome XMLHttpRequest as well, as far as I can tell, since the system principal has no requesting URI. Is there a bug filed on this? We need to fix this. > XMLHttpRequest sniffs out the chrome page that loaded the component > and bypasses the NULL-principal thing You can prevent that by pushing null JSContext* on the XPConnect JS context stack, for what it's worth. -Boris