diff options
Diffstat (limited to 'dom/workers/test/websocket_https.html')
-rw-r--r-- | dom/workers/test/websocket_https.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dom/workers/test/websocket_https.html b/dom/workers/test/websocket_https.html new file mode 100644 index 0000000000..549147a332 --- /dev/null +++ b/dom/workers/test/websocket_https.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<script> + var worker = new Worker("https://example.com/tests/dom/workers/test/websocket_https_worker.js"); + + worker.onmessage = function(event) { + parent.postMessage(event.data, "*"); + }; + + worker.onerror = function(event) { + parent.postMessage("error", "*"); + }; + + worker.postMessage("start"); +</script> |