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

Side by Side Diff: LayoutTests/http/tests/serviceworker/resources/window-close-during-registration.html

Issue 337053004: Don't assert when ServiceWorker::from is passed an empty promise (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix V8GarbageCollected ASSERT Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <script>
3 var scope = 'empty';
4
5 navigator.serviceWorker.unregister(scope).then(function() {
6 var promise = navigator.serviceWorker.register('empty-worker.js', { scope: s cope });
7 window.close();
8 window.opener.done();
9 return promise;
10 }).catch(function(error) {
11 window.opener.testFailed(error.message);
12 window.opener.done();
13 });
14 </script>
15 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698