index.html:
- Code: Select all
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Websocket Test</title>
</head>
<script type="text/javascript">
var wsWorker = new Worker('worker.js');
</script>
<body></body>
</html>
worker.js:
- Code: Select all
var cxn = new WebSocket('ws://echo.websocket.org/');
I'm wondering if I'm running into a flavor of this Chromium bug:
http://code.google.com/p/chromium/issue ... ?id=108626
It's specifically about WebSockets in Workers, so it seems quite possible.
The long story is that I'm working with the Delphi Chromium Embedded project, and trying to figure out if the problem is at that layer or deeper. I'm going to report this there as well but it'd be really helpful if someone found this to be a problem even without the Delphi layer.
What happens to me is that, in my Delphi project, I get an access violation upon exiting the app. But where it happens makes it extremely hard to debug (it's after all the normal program code has finished and the cleanup is happening). Of course, if I comment out the WebSocket call, it doesn't happen.
Thanks a bunch.