I don’t have any issues with normal XHR in Chrome. It sends cookies no
problem. It is only in FF that I need to wrap. Since I use the same content
script for both browsers, I just simply grab the correct object as needed…
function getXMLHttp(){
try {
return XPCNativeWrapper(new window.wrappedJSObject.XMLHttpRequest());
}
catch(evt){
return new XMLHttpRequest();
}
}
I’m sure there is a better method than try/catch but for now, this works
perfectly and the same code works in Chrome and FF.