Has anyone tested cross domain support recently with IE 6 and 7 and Opera? I can get all the other modern browsers to work, but I'm having a hard time with those three. They keep giving me permission issues.
It'd be really great if there was a document devoted to cross domain issues. It could cover all the things you need to do and which transports would be used for which browsers.
Thanks,
-jj
HTMLFile doesn't work over cross domain unless it's a subdomain, in which case we can use the `document.domain` hack (which I don't believe we're using?)
I'm very much interested in setting up automated testing, potentially through SauceLabs (although they charge money for non-Firefox/Linux browsers)
HTMLFile doesn't work over cross domain unless it's a subdomain, in which case we can use the `document.domain` hack (which I don't believe we're using?)
My test is on http://staging.24hrdiner.com:8001/.
Node.JS is running on http://staging.24hrdiner.com:8002/.
It phones home to http://staging.24hrdiner.com:8000/.
Notice that those are all separate ports, so they count as separate
domains, I do believe.
I finally figured out how to turn on errors in IE 7. All it says is
"Permission denied. Line 726." It doesn't really tell me which file
that refers to ;) It's possible that it's related to something else,
but I'm not sure what that would be. That's why I asked if anyone had
gotten IE 6 and 7 working cross domain recently.
(The site won't be up forever. It's just an ssh tunnel back to my laptop.)
Thanks!
HTMLFile.prototype._destroy = function(){
if (this._iframe){
this._iframe.src = 'about:blank'; // HERE
this._doc = null; // OR HERE
CollectGarbage();
}
};
I've seen that error before.
By the way, here are the Socket.IO log messages:
9 Dec 17:43:49 - Initializing client with transport "flashsocket"
9 Dec 17:43:49 - Client 18826152430847287 connected
9 Dec 17:43:54 - Client 18826152430847287 disconnected
9 Dec 17:43:54 - Client 5094323246739805 disconnected
9 Dec 17:43:54 - Initializing client with transport "htmlfile"
9 Dec 17:43:54 - Client 6158806204330176 connected
9 Dec 17:43:59 - Initializing client with transport "flashsocket"
9 Dec 17:43:59 - Client 398095314623788 connected
9 Dec 17:44:04 - Client 398095314623788 disconnected
9 Dec 17:44:04 - Client 6158806204330176 disconnected
9 Dec 17:44:04 - Initializing client with transport "htmlfile"
9 Dec 17:44:04 - Client 20900959405116737 connected
9 Dec 17:44:22 - Client 20900959405116737 disconnected
9 Dec 17:47:04 - Initializing client with transport "websocket"
9 Dec 17:47:04 - Client 7320398830343038 connected
Notice it keeps bouncing back and forth between transports. In the
browser, I never see the "Connected" event.
Thanks,
-jj
Security violation
Line 844 of linked script http://my_node_server/socket.io/socket.io.js
this._xhr.send();
-jj
@NickolayAre you testing with IE? If so you should check out http://msdn.microsoft.com/en-us/library/cc304129(v=vs.85).aspx. Basically there is a hardcap on number of open connections in IE.
Here's my methodology:
* I can load a page using a variety of browsers using
crossbrowsertesting.com. I can either use VNC to control the
browsers, or I can tell a bunch of browsers to load the page, wait 30
seconds, and then take a screenshot (that I ignore).
* The page I'm loading is called "diagnostic". It tries to send a
message to my socket.io server listening on a different port. If it's
able to send a message and receive the same message, it sends a
message to another app called "diagnosticator". If there are timeouts
when trying to connect or send a message, it tells that to
"diagnosticator".
* The final app is "diagnosticator". It just keeps track of the
messages sent to it, basically remembering which browsers worked and
which didn't.
If diagnostic sees a successful or unsuccessful connection, it tells
diagnosticator. I get the transport from socket.transport.type. I'm
not configuring which transport to use. Presumably, if there is a
failure, socket.io may have tried several transports.
Best Regards,
-jj