Update web-platform-tests to revision 2b7dace05fc1869398ee24f84fda4c0e4c0455ae

This commit is contained in:
WPT Sync Bot 2018-08-31 21:37:12 +00:00 committed by Tom Servo
parent b23125d590
commit 6c901de216
844 changed files with 19802 additions and 3093 deletions

View file

@ -1,16 +1,17 @@
let state = "send-sw-failure"
onconnect = initialE => {
initialE.source.postMessage(state)
initialE.source.onmessage = e => {
let port = initialE.source;
port.postMessage(state)
port.onmessage = e => {
if(state === "" && e.data === "send-window-failure") {
e.postMessage(new SharedArrayBuffer())
port.postMessage(new SharedArrayBuffer())
} else {
e.postMessage("failure")
port.postMessage("failure")
}
}
initialE.source.onmessageerror = e => {
port.onmessageerror = e => {
if(state === "send-sw-failure") {
e.postMessage("send-sw-failure-success")
port.postMessage("send-sw-failure-success")
state = ""
}
}