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:
Phil Ringnalda
2015-11-10 19:37:51 -08:00
parent ac9b692e8e
commit cb2f6af5f4
3 changed files with 1 additions and 3 deletions

View File

@@ -136,6 +136,7 @@ SharedWorker::Close()
if (mMessagePort) { if (mMessagePort) {
mMessagePort->Close(); mMessagePort->Close();
mMessagePort = nullptr;
} }
} }

View File

@@ -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();
} }
} }
} }

View File

@@ -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();
} }
} }