Chromium Code Reviews| Index: LayoutTests/http/tests/serviceworker/resources/fetch-mixed-content-iframe.html |
| diff --git a/LayoutTests/http/tests/serviceworker/resources/fetch-mixed-content-iframe.html b/LayoutTests/http/tests/serviceworker/resources/fetch-mixed-content-iframe.html |
| index 244972ce67513da71f834e3ff1e7725ddcf50070..ec9612df3d683d920717232cc58f5753316e973c 100644 |
| --- a/LayoutTests/http/tests/serviceworker/resources/fetch-mixed-content-iframe.html |
| +++ b/LayoutTests/http/tests/serviceworker/resources/fetch-mixed-content-iframe.html |
| @@ -11,6 +11,13 @@ navigator.serviceWorker.unregister(SCOPE) |
| .then(function() { |
| return navigator.serviceWorker.register(URL, {scope: SCOPE}); |
| }) |
| + .then(function(registration) { |
| + return new Promise(function(resolve, reject) { |
| + registration.addEventListener('updatefound', function() { |
| + resolve(registration.installing); |
|
falken
2014/08/14 10:16:36
this promise is just wait_for_update()?
nhiroki
2014/08/14 13:22:07
I think we cannot call wait_for_update() here sinc
|
| + }); |
| + }); |
| + }) |
| .then(function(worker) { |
| worker.addEventListener('statechange', on_state_change); |
| }); |