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

Unified Diff: LayoutTests/http/tests/navigatorconnect/resources/rejecting-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
Index: LayoutTests/http/tests/navigatorconnect/resources/rejecting-worker.js
diff --git a/LayoutTests/http/tests/navigatorconnect/resources/rejecting-worker.js b/LayoutTests/http/tests/navigatorconnect/resources/rejecting-worker.js
index ef10a87ad8fc118aea68e965de4133cc999436c2..29c31d2e8f96db8e80acd294d2ae1878135595f6 100644
--- a/LayoutTests/http/tests/navigatorconnect/resources/rejecting-worker.js
+++ b/LayoutTests/http/tests/navigatorconnect/resources/rejecting-worker.js
@@ -1,3 +1,7 @@
self.addEventListener('crossoriginconnect', function(event) {
event.acceptConnection(false);
});
+
+navigator.services.addEventListener('connect', function(event) {
+ event.respondWith({accept: false});
+});

Powered by Google App Engine
This is Rietveld 408576698