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 10.39.225.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
WebKit
/
LayoutTests
/
http
/
tests
/
serviceworker
/
chromium
/
resources
/
resolve-after-window-close.html
1
<html>
2
<script>
3
var scope = 'empty';
4
5
navigator.serviceWorker.getRegistration(scope)
6
.then(function(registration) {
7
if (registration)
8
return registration.unregister();
9
})
10
.then(function() {
11
var promise = navigator.serviceWorker.register('empty-worker.js',
12
{ scope: scope });
13
window.close();
14
window.opener.done();
15
});
16
</script>
17
</html>