From 916775e78437b8641788c3d0b6cdcd7b61ff8435 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Wed, 26 Apr 2017 15:27:42 +0200 Subject: [PATCH] Revert "BroadcastChannel that partially fails and partially succeeds" This reverts commit be5acc0a3b7fd84777a6f35093fde041acd6940d. --- .../broadcastchannel-success-and-failure.html | 35 ------------------- .../broadcastchannel-sharedworker.js | 7 ---- .../resources/broadcastchannel-worker.js | 9 ----- 3 files changed, 51 deletions(-) delete mode 100644 html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/broadcastchannel-success-and-failure.html delete mode 100644 html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/resources/broadcastchannel-sharedworker.js delete mode 100644 html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/resources/broadcastchannel-worker.js diff --git a/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/broadcastchannel-success-and-failure.html b/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/broadcastchannel-success-and-failure.html deleted file mode 100644 index 8902de49cfb102..00000000000000 --- a/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/broadcastchannel-success-and-failure.html +++ /dev/null @@ -1,35 +0,0 @@ - -SharedArrayBuffer cannot cross agent clusters, BroadcastChannel edition - - - diff --git a/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/resources/broadcastchannel-sharedworker.js b/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/resources/broadcastchannel-sharedworker.js deleted file mode 100644 index 310e0e9358446a..00000000000000 --- a/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/resources/broadcastchannel-sharedworker.js +++ /dev/null @@ -1,7 +0,0 @@ -const channel = new BroadcastChannel("anne was here"); -channel.onmessageerror = ({ data }) => { - if(data === null) { - channel.postMessage("sw-success"); - } -} -channel.postMessage("hi"); diff --git a/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/resources/broadcastchannel-worker.js b/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/resources/broadcastchannel-worker.js deleted file mode 100644 index 36369cde5004b4..00000000000000 --- a/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/resources/broadcastchannel-worker.js +++ /dev/null @@ -1,9 +0,0 @@ -const channel = new BroadcastChannel("anne was here"); -channel.onmessage = ({ data }) => { - if(data === "hi" || data === "sw-success") { - return; - } else if(data instanceof SharedArrayBuffer) { - channel.postMessage("dw-success"); - } -} -channel.postMessage("hi");