Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / content / test / data / workers / messageport_worker.js
blobbb1dfa4d4ac13295b3ee6e85a3a90859afc0bf3c
1 onconnect = function(event) {
2 var port = event.ports[0];
3 port.postMessage("Worker connected.");
4 port.onmessage = function(event2) {
5 port.postMessage("Worker got a port.");
6 var anotherport = event2.data.port;
7 anotherport.start();
8 anotherport.onmessage = function(event3) {
9 anotherport.postMessage("Worker got a message via the passed port.");