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

Side by Side Diff: third_party/WebKit/LayoutTests/netinfo/resources/web-worker.js

Issue 2903493002: NetInfo network quality extension: Add callbacks and Layout tests (Closed)
Patch Set: haraken comments Created 3 years, 6 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
OLDNEW
1 addEventListener('message', function(e) { 1 addEventListener('message', function(e) {
2 self.postMessage(navigator.connection.type + ',' + navigator.connection.down linkMax); 2 self.postMessage(navigator.connection.type + ',' + navigator.connection.down linkMax + ',' + navigator.connection.effectiveType + ',' + navigator.connection. rtt + ',' + navigator.connection.downlink);
3 }, false); 3 }, false);
4 4
5 navigator.connection.addEventListener('change', function() { 5 navigator.connection.addEventListener('change', function() {
6 self.postMessage(navigator.connection.type + ',' + navigator.connection.down linkMax); 6 self.postMessage(navigator.connection.type + ',' + navigator.connection.down linkMax + ',' + navigator.connection.effectiveType + ',' + navigator.connection. rtt + ',' + navigator.connection.downlink);
7 }, false); 7 }, false);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698