Commit 79288629 authored by Arthur Sonzogni's avatar Arthur Sonzogni Committed by moz-wptsync-bot
Browse files

Bug 1720679 [wpt PR 29675] - Deflake popup-coop-by-sw-from-coop.https.html, a=testonly

Automatic update from web-platform-tests
Deflake popup-coop-by-sw-from-coop.https.html

Nobody has ever been able to reproduce the problem. It is apparently a
timeout. To fix this, the test is marked as "long" and every subtest are
run separately.

At best, this fixes the issue. At worst, this will give us useful
information: which subtest is the culprit.

Bug: 1151555
Change-Id: I4b62b1d6a96fed97458567b11d7301f60bf6fc77
Fixed: 1151555
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3030564


Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: default avatarAntonio Sartori <antoniosartori@chromium.org>
Cr-Commit-Position: refs/heads/master@{#901959}

--

wpt-commits: c13cf37f470fb729335ac67d325de63669a1bf1a
wpt-pr: 29675
parent 10c03a78
Loading
Loading
Loading
Loading
+17 −13
Original line number Diff line number Diff line
<!doctype html>
<html>
<head>
  <title>
    Check ServiceWorkers can set COOP/COEP headers for documents's responses
  </title>
  <meta name="timeout" content="long">
  <meta name="variant" content="?1-1">
  <meta name="variant" content="?2-2">
  <meta name="variant" content="?3-3">
  <meta name="variant" content="?4-last">
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
  <script src="/common/utils.js"></script>
  <script src="/common/subset-tests.js"></script>
  <script src="/service-workers/service-worker/resources/test-helpers.sub.js">
  </script>
  <script src="./resources/popup-coop-by-sw.js"> </script>
@@ -19,19 +23,19 @@
// Its response will be provided by a ServiceWorker. A browsing context
// group swap must happen if the popup's headers contains COOP/COEP headers.

popupCoopBySwTest("sw_normal, popup_normal",
subsetTest(popupCoopBySwTest, "sw_normal, popup_normal",
                               sw_normal, popup_normal,
                               swap_browsing_context_group)

popupCoopBySwTest("sw_normal, popup_coop",
subsetTest(popupCoopBySwTest, "sw_normal, popup_coop",
                               sw_normal, popup_coop,
                               keep_browsing_context_group)

popupCoopBySwTest("sw_coop, popup_normal",
subsetTest(popupCoopBySwTest, "sw_coop, popup_normal",
                               sw_coop, popup_normal,
                               swap_browsing_context_group)

popupCoopBySwTest("sw_coop, popup_coop",
subsetTest(popupCoopBySwTest, "sw_coop, popup_coop",
                               sw_coop, popup_coop,
                               keep_browsing_context_group)