Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: LayoutTests/http/tests/navigatorconnect/resources/reply-client-info-worker.js

Issue 1205783004: Update navigator.services API to use the new services.onconnect event [3/3]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@serviceport-serviceside
Patch Set: remove extra space Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/navigatorconnect/resources/reply-client-info-worker.js
diff --git a/LayoutTests/http/tests/navigatorconnect/resources/reply-client-info-worker.js b/LayoutTests/http/tests/navigatorconnect/resources/reply-client-info-worker.js
index 73bb990b72be464a03b911c3c7609aeae1bd1e2f..8eb2fc08898b44600ab3e97aa9036b0938fd7094 100644
--- a/LayoutTests/http/tests/navigatorconnect/resources/reply-client-info-worker.js
+++ b/LayoutTests/http/tests/navigatorconnect/resources/reply-client-info-worker.js
@@ -1,10 +1,4 @@
var client;
-self.addEventListener('crossoriginconnect', function(event) {
- client = event.client;
- event.acceptConnection(true);
- client.postMessage({origin: client.origin, targetUrl: client.targetUrl});
-});
-
self.addEventListener('crossoriginmessage', function(event) {
client.postMessage({origin: event.origin});
});

Powered by Google App Engine
This is Rietveld 408576698