| Index: LayoutTests/http/tests/serviceworker/chromium/resources/postmessage-worker.js
|
| diff --git a/LayoutTests/http/tests/serviceworker/resources/postmessage-cross-process-worker.js b/LayoutTests/http/tests/serviceworker/chromium/resources/postmessage-worker.js
|
| similarity index 53%
|
| copy from LayoutTests/http/tests/serviceworker/resources/postmessage-cross-process-worker.js
|
| copy to LayoutTests/http/tests/serviceworker/chromium/resources/postmessage-worker.js
|
| index 12cea5ba55e87d130438c4a6aa5b7d9ad4f386d9..060653e71623b7c1e8b9ea0ca209c96552523de5 100644
|
| --- a/LayoutTests/http/tests/serviceworker/resources/postmessage-cross-process-worker.js
|
| +++ b/LayoutTests/http/tests/serviceworker/chromium/resources/postmessage-worker.js
|
| @@ -1,22 +1,10 @@
|
| var port;
|
| -var resultport = null;
|
| -var result = null;
|
|
|
| self.onmessage = function(e) {
|
| var message = e.data;
|
| if ('port' in message) {
|
| port = message.port;
|
| port.onmessage = onMessage;
|
| - } else if ('done' in message) {
|
| - result = message.done;
|
| - if (resultport) {
|
| - resultport.postMessage(result);
|
| - }
|
| - } else if ('resultport' in message) {
|
| - resultport = message.resultport;
|
| - if (result) {
|
| - resultport.postMessage(result);
|
| - }
|
| }
|
| };
|
|
|
|
|