Commit 8f72ef6c authored by Pâris MEULEMAN's avatar Pâris MEULEMAN Committed by Commit Bot

Update timeout and split slow COOP WPTs

This updates the timeout to long and splits into smaller tests the
flaky COOP web-platform tests.

reland of crrev.com/c/2003172 with proper expectations.

Bug: 1042199, 1043401
Change-Id: I7edfaaa520ed6c8fd2974d6c7622fb79c8316089
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2007821
Commit-Queue: Pâris Meuleman <pmeuleman@chromium.org>
Reviewed-by: default avatarArthur Hemery <ahemery@chromium.org>
Cr-Commit-Position: refs/heads/master@{#733569}
parent dc7f6fcf
......@@ -6262,7 +6262,7 @@ crbug.com/1040270 http/tests/devtools/elements/styles-1/disable-property-working
crbug.com/963183 http/tests/devtools/animation/animation-timeline.js [ Pass Failure ]
# Popup and no-opener may crash WPTs: crrev.com/c/1984306
crbug.com/1040059 external/wpt/html/cross-origin-opener-policy/iframe-popup-same-origin.https.html [ Pass Crash Timeout ]
crbug.com/1040059 external/wpt/html/cross-origin-opener-policy/iframe-popup-same-origin-to-unsafe-none.https.html [ Pass Crash ]
# Broken in https://chromium-review.googlesource.com/c/chromium/src/+/1636716
crbug.com/963183 http/tests/devtools/sources/debugger-breakpoints/disable-breakpoints.js [ Pass Failure ]
......
This is a testharness.js-based test.
FAIL same-origin-allow-popups with SAME_ORIGIN iframe opening popup a SAME_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with SAME_SITE iframe opening popup a SAME_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with CROSS_ORIGIN iframe opening popup a SAME_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with SAME_ORIGIN iframe opening popup a SAME_SITE with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with SAME_SITE iframe opening popup a SAME_SITE with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with CROSS_ORIGIN iframe opening popup a SAME_SITE with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with SAME_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with SAME_SITE iframe opening popup a CROSS_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with CROSS_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
PASS same-origin-allow-popups with SAME_ORIGIN iframe opening popup a SAME_ORIGIN with COOP: same-origin-allow-popups
FAIL same-origin-allow-popups with SAME_SITE iframe opening popup a SAME_ORIGIN with COOP: same-origin-allow-popups assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with CROSS_ORIGIN iframe opening popup a SAME_ORIGIN with COOP: same-origin-allow-popups assert_equals: opener expected false but got true
......@@ -17,14 +8,5 @@ FAIL same-origin-allow-popups with CROSS_ORIGIN iframe opening popup a SAME_SITE
FAIL same-origin-allow-popups with SAME_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP: same-origin-allow-popups assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with SAME_SITE iframe opening popup a CROSS_ORIGIN with COOP: same-origin-allow-popups assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with CROSS_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP: same-origin-allow-popups assert_equals: opener expected false but got true
PASS same-origin-allow-popups with SAME_ORIGIN iframe opening popup a SAME_ORIGIN with COOP:
PASS same-origin-allow-popups with SAME_SITE iframe opening popup a SAME_ORIGIN with COOP:
PASS same-origin-allow-popups with CROSS_ORIGIN iframe opening popup a SAME_ORIGIN with COOP:
PASS same-origin-allow-popups with SAME_ORIGIN iframe opening popup a SAME_SITE with COOP:
PASS same-origin-allow-popups with SAME_SITE iframe opening popup a SAME_SITE with COOP:
PASS same-origin-allow-popups with CROSS_ORIGIN iframe opening popup a SAME_SITE with COOP:
PASS same-origin-allow-popups with SAME_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP:
PASS same-origin-allow-popups with SAME_SITE iframe opening popup a CROSS_ORIGIN with COOP:
PASS same-origin-allow-popups with CROSS_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP:
Harness: the test ran to completion.
<!doctype html>
<meta charset=utf-8>
<meta name=timeout content=long>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/get-host-info.sub.js"></script>
......@@ -8,15 +9,6 @@
<div id=log></div>
<script>
[
[SAME_ORIGIN, SAME_ORIGIN, "same-origin", false, false],
[SAME_SITE, SAME_ORIGIN, "same-origin", false, false],
[CROSS_ORIGIN, SAME_ORIGIN, "same-origin", false, false],
[SAME_ORIGIN, SAME_SITE, "same-origin", false, false],
[SAME_SITE, SAME_SITE, "same-origin", false, false],
[CROSS_ORIGIN, SAME_SITE, "same-origin", false, false],
[SAME_ORIGIN, CROSS_ORIGIN, "same-origin", false, false],
[SAME_SITE, CROSS_ORIGIN, "same-origin", false, false],
[CROSS_ORIGIN, CROSS_ORIGIN, "same-origin", false, false],
[SAME_ORIGIN, SAME_ORIGIN, "same-origin-allow-popups", true, true],
[SAME_SITE, SAME_ORIGIN, "same-origin-allow-popups", false, false],
[CROSS_ORIGIN, SAME_ORIGIN, "same-origin-allow-popups", false, false],
......@@ -26,18 +18,9 @@
[SAME_ORIGIN, CROSS_ORIGIN, "same-origin-allow-popups", false, false],
[SAME_SITE, CROSS_ORIGIN, "same-origin-allow-popups", false, false],
[CROSS_ORIGIN, CROSS_ORIGIN, "same-origin-allow-popups", false, false],
[SAME_ORIGIN, SAME_ORIGIN, "", true, true],
[SAME_SITE, SAME_ORIGIN, "", true, true],
[CROSS_ORIGIN, SAME_ORIGIN, "", true, true],
[SAME_ORIGIN, SAME_SITE, "", true, true],
[SAME_SITE, SAME_SITE, "", true, true],
[CROSS_ORIGIN, SAME_SITE, "", true, true],
[SAME_ORIGIN, CROSS_ORIGIN, "", true, true],
[SAME_SITE, CROSS_ORIGIN, "", true, true],
[CROSS_ORIGIN, CROSS_ORIGIN, "", true, true],
].forEach( value => {
run_coop_test_iframe("same-origin-allow-popups", value[0], value[1], value[2], value[3], value[4]);
});
</script>
</script>
\ No newline at end of file
This is a testharness.js-based test.
FAIL same-origin-allow-popups with SAME_ORIGIN iframe opening popup a SAME_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with SAME_SITE iframe opening popup a SAME_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with CROSS_ORIGIN iframe opening popup a SAME_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with SAME_ORIGIN iframe opening popup a SAME_SITE with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with SAME_SITE iframe opening popup a SAME_SITE with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with CROSS_ORIGIN iframe opening popup a SAME_SITE with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with SAME_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with SAME_SITE iframe opening popup a CROSS_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
FAIL same-origin-allow-popups with CROSS_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
Harness: the test ran to completion.
<!doctype html>
<meta charset=utf-8>
<meta name=timeout content=long>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="resources/common.js"></script>
<div id=log></div>
<script>
[
[SAME_ORIGIN, SAME_ORIGIN, "same-origin", false, false],
[SAME_SITE, SAME_ORIGIN, "same-origin", false, false],
[CROSS_ORIGIN, SAME_ORIGIN, "same-origin", false, false],
[SAME_ORIGIN, SAME_SITE, "same-origin", false, false],
[SAME_SITE, SAME_SITE, "same-origin", false, false],
[CROSS_ORIGIN, SAME_SITE, "same-origin", false, false],
[SAME_ORIGIN, CROSS_ORIGIN, "same-origin", false, false],
[SAME_SITE, CROSS_ORIGIN, "same-origin", false, false],
[CROSS_ORIGIN, CROSS_ORIGIN, "same-origin", false, false],
].forEach( value => {
run_coop_test_iframe("same-origin-allow-popups", value[0], value[1], value[2], value[3], value[4]);
});
</script>
\ No newline at end of file
<!doctype html>
<meta charset=utf-8>
<meta name=timeout content=long>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="resources/common.js"></script>
<div id=log></div>
<script>
[
[SAME_ORIGIN, SAME_ORIGIN, "", true, true],
[SAME_SITE, SAME_ORIGIN, "", true, true],
[CROSS_ORIGIN, SAME_ORIGIN, "", true, true],
[SAME_ORIGIN, SAME_SITE, "", true, true],
[SAME_SITE, SAME_SITE, "", true, true],
[CROSS_ORIGIN, SAME_SITE, "", true, true],
[SAME_ORIGIN, CROSS_ORIGIN, "", true, true],
[SAME_SITE, CROSS_ORIGIN, "", true, true],
[CROSS_ORIGIN, CROSS_ORIGIN, "", true, true],
].forEach( value => {
run_coop_test_iframe("same-origin-allow-popups", value[0], value[1], value[2], value[3], value[4]);
});
</script>
\ No newline at end of file
......@@ -8,14 +8,5 @@ PASS same-origin with CROSS_ORIGIN iframe opening popup a SAME_SITE with COOP: s
FAIL same-origin with SAME_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
PASS same-origin with SAME_SITE iframe opening popup a CROSS_ORIGIN with COOP: same-origin
PASS same-origin with CROSS_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP: same-origin
FAIL same-origin with SAME_ORIGIN iframe opening popup a SAME_ORIGIN with COOP: assert_equals: opener expected false but got true
PASS same-origin with SAME_SITE iframe opening popup a SAME_ORIGIN with COOP:
PASS same-origin with CROSS_ORIGIN iframe opening popup a SAME_ORIGIN with COOP:
FAIL same-origin with SAME_ORIGIN iframe opening popup a SAME_SITE with COOP: assert_equals: opener expected false but got true
PASS same-origin with SAME_SITE iframe opening popup a SAME_SITE with COOP:
PASS same-origin with CROSS_ORIGIN iframe opening popup a SAME_SITE with COOP:
FAIL same-origin with SAME_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP: assert_equals: opener expected false but got true
PASS same-origin with SAME_SITE iframe opening popup a CROSS_ORIGIN with COOP:
PASS same-origin with CROSS_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP:
Harness: the test ran to completion.
<!doctype html>
<meta charset=utf-8>
<meta name=timeout content=long>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/get-host-info.sub.js"></script>
......@@ -17,17 +18,8 @@
[SAME_ORIGIN, CROSS_ORIGIN, "same-origin", false, false],
[SAME_SITE, CROSS_ORIGIN, "same-origin", false, true],
[CROSS_ORIGIN, CROSS_ORIGIN, "same-origin", false, true],
[SAME_ORIGIN, SAME_ORIGIN, "", false, false],
[SAME_SITE, SAME_ORIGIN, "", false, true],
[CROSS_ORIGIN, SAME_ORIGIN, "", false, true],
[SAME_ORIGIN, SAME_SITE, "", false, false],
[SAME_SITE, SAME_SITE, "", false, true],
[CROSS_ORIGIN, SAME_SITE, "", false, true],
[SAME_ORIGIN, CROSS_ORIGIN, "", false, false],
[SAME_SITE, CROSS_ORIGIN, "", false, true],
[CROSS_ORIGIN, CROSS_ORIGIN, "", false, true],
].forEach( value => {
run_coop_test_iframe("same-origin", value[0], value[1], value[2], value[3], value[4]);
});
</script>
</script>
\ No newline at end of file
This is a testharness.js-based test.
FAIL same-origin with SAME_ORIGIN iframe opening popup a SAME_ORIGIN with COOP: assert_equals: opener expected false but got true
PASS same-origin with SAME_SITE iframe opening popup a SAME_ORIGIN with COOP:
PASS same-origin with CROSS_ORIGIN iframe opening popup a SAME_ORIGIN with COOP:
FAIL same-origin with SAME_ORIGIN iframe opening popup a SAME_SITE with COOP: assert_equals: opener expected false but got true
PASS same-origin with SAME_SITE iframe opening popup a SAME_SITE with COOP:
PASS same-origin with CROSS_ORIGIN iframe opening popup a SAME_SITE with COOP:
FAIL same-origin with SAME_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP: assert_equals: opener expected false but got true
PASS same-origin with SAME_SITE iframe opening popup a CROSS_ORIGIN with COOP:
PASS same-origin with CROSS_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP:
Harness: the test ran to completion.
<!doctype html>
<meta charset=utf-8>
<meta name=timeout content=long>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="resources/common.js"></script>
<div id=log></div>
<script>
[
[SAME_ORIGIN, SAME_ORIGIN, "", false, false],
[SAME_SITE, SAME_ORIGIN, "", false, true],
[CROSS_ORIGIN, SAME_ORIGIN, "", false, true],
[SAME_ORIGIN, SAME_SITE, "", false, false],
[SAME_SITE, SAME_SITE, "", false, true],
[CROSS_ORIGIN, SAME_SITE, "", false, true],
[SAME_ORIGIN, CROSS_ORIGIN, "", false, false],
[SAME_SITE, CROSS_ORIGIN, "", false, true],
[CROSS_ORIGIN, CROSS_ORIGIN, "", false, true],
].forEach( value => {
run_coop_test_iframe("same-origin", value[0], value[1], value[2], value[3], value[4]);
});
</script>
\ No newline at end of file
......@@ -8,14 +8,5 @@ FAIL unsafe-none with CROSS_ORIGIN iframe opening popup a SAME_SITE with COOP: s
FAIL unsafe-none with SAME_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
FAIL unsafe-none with SAME_SITE iframe opening popup a CROSS_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
FAIL unsafe-none with CROSS_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP: same-origin assert_equals: opener expected false but got true
PASS unsafe-none with SAME_ORIGIN iframe opening popup a SAME_ORIGIN with COOP:
PASS unsafe-none with SAME_SITE iframe opening popup a SAME_ORIGIN with COOP:
PASS unsafe-none with CROSS_ORIGIN iframe opening popup a SAME_ORIGIN with COOP:
PASS unsafe-none with SAME_ORIGIN iframe opening popup a SAME_SITE with COOP:
PASS unsafe-none with SAME_SITE iframe opening popup a SAME_SITE with COOP:
PASS unsafe-none with CROSS_ORIGIN iframe opening popup a SAME_SITE with COOP:
PASS unsafe-none with SAME_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP:
PASS unsafe-none with SAME_SITE iframe opening popup a CROSS_ORIGIN with COOP:
PASS unsafe-none with CROSS_ORIGIN iframe opening popup a CROSS_ORIGIN with COOP:
Harness: the test ran to completion.
<!doctype html>
<meta charset=utf-8>
<meta name=timeout content=long>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/get-host-info.sub.js"></script>
......@@ -17,17 +18,8 @@
[SAME_ORIGIN, CROSS_ORIGIN, "same-origin", false, false],
[SAME_SITE, CROSS_ORIGIN, "same-origin", false, false],
[CROSS_ORIGIN, CROSS_ORIGIN, "same-origin", false, false],
[SAME_ORIGIN, SAME_ORIGIN, "", true, true],
[SAME_SITE, SAME_ORIGIN, "", true, true],
[CROSS_ORIGIN, SAME_ORIGIN, "", true, true],
[SAME_ORIGIN, SAME_SITE, "", true, true],
[SAME_SITE, SAME_SITE, "", true, true],
[CROSS_ORIGIN, SAME_SITE, "", true, true],
[SAME_ORIGIN, CROSS_ORIGIN, "", true, true],
[SAME_SITE, CROSS_ORIGIN, "", true, true],
[CROSS_ORIGIN, CROSS_ORIGIN, "", true, true],
].forEach( value => {
run_coop_test_iframe("unsafe-none", value[0], value[1], value[2], value[3], value[4]);
});
</script>
</script>
\ No newline at end of file
<!doctype html>
<meta charset=utf-8>
<meta name=timeout content=long>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="resources/common.js"></script>
<div id=log></div>
<script>
[
[SAME_ORIGIN, SAME_ORIGIN, "", true, true],
[SAME_SITE, SAME_ORIGIN, "", true, true],
[CROSS_ORIGIN, SAME_ORIGIN, "", true, true],
[SAME_ORIGIN, SAME_SITE, "", true, true],
[SAME_SITE, SAME_SITE, "", true, true],
[CROSS_ORIGIN, SAME_SITE, "", true, true],
[SAME_ORIGIN, CROSS_ORIGIN, "", true, true],
[SAME_SITE, CROSS_ORIGIN, "", true, true],
[CROSS_ORIGIN, CROSS_ORIGIN, "", true, true],
].forEach( value => {
run_coop_test_iframe("unsafe-none", value[0], value[1], value[2], value[3], value[4]);
});
</script>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment