Bug 1579497 [wpt PR 18902] - Remove ability to filter frozen windows from service workers., a=testonly
authorDave Tapuska <dtapuska@chromium.org>
Fri, 13 Sep 2019 10:34:06 +0000
changeset 493148 f086c17e45b4022c2ebaff5bbc41afce0652f4b5
parent 493147 9deab0f44cb04c09fcaed56beeed1d30f56b829e
child 493149 fdc8bd1b07140b46c55ce6449f5a3b0ba5f338f2
push id114083
push userwptsync@mozilla.com
push dateSat, 14 Sep 2019 15:07:18 +0000
treeherdermozilla-inbound@4d3effdba55e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1579497, 18902, 968417, 1789693, 694775
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1579497 [wpt PR 18902] - Remove ability to filter frozen windows from service workers., a=testonly Automatic update from web-platform-tests Remove ability to filter frozen windows from service workers. Keep the lifecycleState on the client but remove the ability to filter. Spec change: https://github.com/WICG/page-lifecycle/pull/39 BUG=968417 Change-Id: I0dcfd6bfee0746e5a405f82d6a3009a663ec7a6a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1789693 Reviewed-by: Matt Falkenhagen <falken@chromium.org> Reviewed-by: Ken Buchanan <kenrb@chromium.org> Commit-Queue: Dave Tapuska <dtapuska@chromium.org> Cr-Commit-Position: refs/heads/master@{#694775} -- wpt-commits: aafe9f97c4410f1420de65636834f49c0e4c02e6 wpt-pr: 18902
testing/web-platform/tests/service-workers/service-worker/clients-matchall-frozen.https.html
--- a/testing/web-platform/tests/service-workers/service-worker/clients-matchall-frozen.https.html
+++ b/testing/web-platform/tests/service-workers/service-worker/clients-matchall-frozen.https.html
@@ -44,60 +44,21 @@ promise_test(function(t) {
 
           return new Promise(function(resolve) {
               channel.port1.onmessage = resolve;
               windows[1].navigator.serviceWorker.controller.postMessage(
                   {port:channel.port2, includeLifecycleState: true}, [channel.port2]);
             });
         })
       .then(function(e) {
-          assert_equals(e.data.length, 1);
-          assert_object_equals(e.data[0], expected_window_2);
-        })
-      .then(function() {
-          var channel = new MessageChannel();
-
-          return new Promise(function(resolve) {
-              channel.port1.onmessage = resolve;
-              windows[1].navigator.serviceWorker.controller.postMessage(
-                  {port:channel.port2, options: {lifecycleState: "all"}, includeLifecycleState: true}, [channel.port2]);
-            });
-        })
-      .then(function(e) {
           assert_equals(e.data.length, 2);
           // No specific order is required, so support inversion.
           if (e.data[0][3] == new URL(scope + '#2', location)) {
             assert_object_equals(e.data[0], expected_window_2);
             assert_object_equals(e.data[1], expected_window_1);
           } else {
             assert_object_equals(e.data[0], expected_window_1);
             assert_object_equals(e.data[1], expected_window_2);
           }
-        })
-      .then(function() {
-          var channel = new MessageChannel();
-
-          return new Promise(function(resolve) {
-              channel.port1.onmessage = resolve;
-              windows[1].navigator.serviceWorker.controller.postMessage(
-                  {port:channel.port2, options: {lifecycleState: "frozen"}, includeLifecycleState: true}, [channel.port2]);
-            });
-        })
-      .then(function(e) {
-          assert_equals(e.data.length, 1);
-          assert_object_equals(e.data[0], expected_window_1);
-        })
-      .then(function() {
-          var channel = new MessageChannel();
-
-          return new Promise(function(resolve) {
-              channel.port1.onmessage = resolve;
-              windows[1].navigator.serviceWorker.controller.postMessage(
-                  {port:channel.port2, options: {lifecycleState: "active"}, includeLifecycleState: true}, [channel.port2]);
-            });
-        })
-      .then(function(e) {
-          assert_equals(e.data.length, 1);
-          assert_object_equals(e.data[0], expected_window_2);
       });
 }, 'Test Clients.matchAll()');
 
 </script>