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

Unified Diff: LayoutTests/http/tests/navigatorconnect/resources/accepting-worker.js

Issue 1210633002: Update navigator.services API to use the new services.onconnect event [1/3]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@serviceport-part3
Patch Set: rebase 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigatorconnect/resources/async-connect-worker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/navigatorconnect/resources/accepting-worker.js
diff --git a/LayoutTests/http/tests/navigatorconnect/resources/accepting-worker.js b/LayoutTests/http/tests/navigatorconnect/resources/accepting-worker.js
index 9c404172fa75b9f8c23c7e7d902c7171f7d99669..3580d775c064d13e9641280e3d89fe4b96e6b440 100644
--- a/LayoutTests/http/tests/navigatorconnect/resources/accepting-worker.js
+++ b/LayoutTests/http/tests/navigatorconnect/resources/accepting-worker.js
@@ -1,3 +1,7 @@
self.addEventListener('crossoriginconnect', function(event) {
event.acceptConnection(true);
});
+
+navigator.services.addEventListener('connect', function(event) {
+ event.respondWith({accept: true});
+});
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigatorconnect/resources/async-connect-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698