Commit f8cb4402 authored by Yoav Weiss's avatar Yoav Weiss Committed by Chromium LUCI CQ

[resource-timing] Test that empty iframes are reported

This CL adds a test that verifies that empty iframes correctly create
a Resource Timing entry.

Bug: 933858
Change-Id: I1d5ae7d8c0fe5fb60ebcf92ebd8f4a51e5fd1d6f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2580069Reviewed-by: default avatarArthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Yoav Weiss <yoavweiss@chromium.org>
Cr-Commit-Position: refs/heads/master@{#835164}
parent fc279460
...@@ -64,6 +64,16 @@ promise_test(t => { ...@@ -64,6 +64,16 @@ promise_test(t => {
return run_test(t, url.toString(), csp_directive); return run_test(t, url.toString(), csp_directive);
}, "Cross-origin iframe that doesn't comply with CSP attribute gets reported"); }, "Cross-origin iframe that doesn't comply with CSP attribute gets reported");
promise_test(t => {
const url = new URL("/resource-timing/resources/200_empty.asis", location.href);
return run_test(t, url.toString(), csp_directive);
}, "Same-origin empty iframe with a 200 status gets reported");
promise_test(t => {
const url = new URL("/resource-timing/resources/200_empty.asis", REMOTE_ORIGIN);
return run_test(t, url.toString(), csp_directive);
}, "Cross-origin empty iframe with a 200 status gets reported");
</script> </script>
</body> </body>
</html> </html>
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