| Index: LayoutTests/http/tests/websocket/resources/mac-dropped-wakeup-workaround.js
|
| diff --git a/LayoutTests/http/tests/websocket/resources/mac-dropped-wakeup-workaround.js b/LayoutTests/http/tests/websocket/resources/mac-dropped-wakeup-workaround.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8eb20e24a543f25c294012cc9a9e2766eac1202d
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/websocket/resources/mac-dropped-wakeup-workaround.js
|
| @@ -0,0 +1,12 @@
|
| +if (navigator.userAgent.search(/Macintosh.*Chrome/) != -1) {
|
| + (function() {
|
| + var ws = new WebSocket("ws://127.0.0.1:8880/echo");
|
| + var timer;
|
| + ws.onopen = function() {
|
| + timer = setInterval(sendMessage, 20);
|
| + };
|
| + function sendMessage() {
|
| + ws.send("");
|
| + };
|
| + })();
|
| +}
|
|
|