mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Update web-platform-tests to revision 2b7dace05fc1869398ee24f84fda4c0e4c0455ae
This commit is contained in:
parent
b23125d590
commit
6c901de216
844 changed files with 19802 additions and 3093 deletions
|
@ -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 = ""
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue