Back out changeset d5d3bf67dd1b (bug 1221852) for Android and B2G emulator and Mulet timeouts in test_sharedWorker_ports.html
CLOSED TREE
This commit is contained in:
@@ -136,6 +136,7 @@ SharedWorker::Close()
|
|||||||
|
|
||||||
if (mMessagePort) {
|
if (mMessagePort) {
|
||||||
mMessagePort->Close();
|
mMessagePort->Close();
|
||||||
|
mMessagePort = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ onconnect = function(evt) {
|
|||||||
test: (evtFromPort2.data.type == "connected"),
|
test: (evtFromPort2.data.type == "connected"),
|
||||||
msg: "The original message received" });
|
msg: "The original message received" });
|
||||||
port.postMessage({type: "finish"});
|
port.postMessage({type: "finish"});
|
||||||
close();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,8 +28,6 @@ sw1.port.onmessage = function(event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (event.data.type == "finish") {
|
if (event.data.type == "finish") {
|
||||||
ok(sw1.port, "The port still exists");
|
|
||||||
sw1.port.foo = sw1; // Just a test to see if we leak.
|
|
||||||
SimpleTest.finish();
|
SimpleTest.finish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user