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

Unified Diff: LayoutTests/http/tests/navigatorconnect/resources/async-connect-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/async-connect-worker.js
diff --git a/LayoutTests/http/tests/navigatorconnect/resources/async-connect-worker.js b/LayoutTests/http/tests/navigatorconnect/resources/async-connect-worker.js
index 636966f72f9dddbff7c100134aa56cbe8c2fa5dc..57743c4f1adef0fa5bd58deb43f71af2409adc85 100644
--- a/LayoutTests/http/tests/navigatorconnect/resources/async-connect-worker.js
+++ b/LayoutTests/http/tests/navigatorconnect/resources/async-connect-worker.js
@@ -1,13 +1,3 @@
-self.addEventListener('crossoriginconnect', function(event) {
- var targetUrl = new URL(event.client.targetUrl);
- event.acceptConnection(new Promise(function(resolve, reject) {
- if (targetUrl.search == "?accept")
- self.setTimeout(resolve, 1, true);
- else
- self.setTimeout(reject, 1);
- }));
-});
-
navigator.services.addEventListener('connect', function(event) {
var targetUrl = new URL(event.targetURL);
event.respondWith(new Promise(function(resolve, reject) {

Powered by Google App Engine
This is Rietveld 408576698