| Index: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/controller-on-reload.https.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/controller-on-reload.https.html b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/controller-on-reload.https.html
|
| index 4490c707963bd9371b997bdbfd0819c6fccc9b78..e0beb7260be11608439aa16bce0c16a025f24858 100644
|
| --- a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/controller-on-reload.https.html
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/controller-on-reload.https.html
|
| @@ -6,7 +6,8 @@
|
| <body>
|
| <script>
|
| promise_test(function(t) {
|
| - var scope = 'resources/blank.html';
|
| + const iframe_scope = 'blank.html';
|
| + const scope = 'resources/' + iframe_scope;
|
| var frame;
|
| var registration;
|
| var controller;
|
| @@ -17,7 +18,7 @@ promise_test(function(t) {
|
| .then(function(f) {
|
| frame = f;
|
| return frame.contentWindow.navigator.serviceWorker.register(
|
| - 'resources/empty-worker.js', {scope: scope});
|
| + 'empty-worker.js', {scope: iframe_scope});
|
| })
|
| .then(function(swr) {
|
| registration = swr;
|
| @@ -42,7 +43,7 @@ promise_test(function(t) {
|
| // objects from separate windows should not be equal
|
| assert_not_equals(controller, registration.active);
|
|
|
| - return w.navigator.serviceWorker.getRegistration();
|
| + return w.navigator.serviceWorker.getRegistration(iframe_scope);
|
| })
|
| .then(function(frameRegistration) {
|
| assert_equals(frameRegistration.active, controller);
|
|
|