Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / serviceworker / resources / unregister-controller-page.html
blob18a95ee892b1c9ee7ca597cb2655e6c4504a7912
1 <!DOCTYPE html>
2 <script>
3 function fetch_url(url) {
4 return new Promise(function(resolve, reject) {
5 var request = new XMLHttpRequest();
6 request.addEventListener('load', function(event) {
7 if (request.status == 200)
8 resolve(request.response);
9 else
10 reject(Error(request.statusText));
11 });
12 request.open('GET', url);
13 request.send();
14 });
16 </script>