I tried asking this a few weeks ago in m.d.extensions but didn't get a 
reply. Trying here now.

If I'm in something like an http-on-modify-request observer and I have a 
request channel, what's the "best" way to determine if the request 
originated from XMLHttpRequest or 
document.implementation.createDocument? We are currently doing a 
getInterface(nsIXMLHttpRequest) on the notificationCallbacks, which 
works fine for XMLHttpRequest, but not for createDocument (throws an 
exception, see bug 392338). Is there some other way I should be 
checking  for createDocument?

Colin.
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to