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

Side by Side Diff: LayoutTests/http/tests/serviceworker/resources/frame-for-getregistrations.html

Issue 1168393002: Service Worker: Add ServiceWorkerContainer.getRegistrations() method. (Blink layout tests) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add a missing unregister call in getregistrations.html. Created 5 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
(Empty)
1 <!DOCTYPE html>
2 <title>Service Worker: frame for getRegistrations()</title>
3 <script>
4 var scope = 'scope-for-getregistrations';
5 var script = 'empty-worker.js';
6 var registration;
7
8 navigator.serviceWorker.register(script, { scope: scope })
9 .then(function(r) { registration = r; });
10
11 self.onmessage = function(e) {
12 if (e.data == 'unregister') {
13 registration.unregister()
14 .then(function() {
15 e.ports[0].postMessage('unregistered');
16 });
17 }
18 };
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698