projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Upstream version 9.37.197.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
WebKit
/
LayoutTests
/
http
/
tests
/
serviceworker
/
resources
/
window-close-during-registration.html
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: scope });
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>