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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 self.addEventListener('crossoriginconnect', function(event) { 1 self.addEventListener('crossoriginconnect', function(event) {
2 event.acceptConnection(true); 2 event.acceptConnection(true);
3 }); 3 });
4
5 navigator.services.addEventListener('connect', function(event) {
6 event.respondWith({accept: true});
7 });
OLDNEW
« 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