Skip to content

Commit 004863b

Browse files
noamrmoz-wptsync-bot
authored andcommitted
Bug 1760951 [wpt PR 33317] - Iframes with missing redirect location should fire load event and queue RT entry, a=testonly
Automatic update from web-platform-tests Iframes with missing redirect location should fire load event and queue RT entry (#33317) * Iframes with missing redirect location should fire load event and queue RT entry See whatwg/html#7531 * Rename and use loader -- wpt-commits: 7eb2cb2120e6cd172ad10edb7f38518e765daf49 wpt-pr: 33317
1 parent df5a25e commit 004863b

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>Test the sequence of events when reporting iframe timing.</title>
4+
<script src="/resources/testharness.js"></script>
5+
<script src="/resources/testharnessreport.js"></script>
6+
<script src="resources/resource-loaders.js"></script>
7+
<body>
8+
<script>
9+
promise_test(async t => {
10+
const href = new URL('resources/redirect-without-location.py', location.href);
11+
await load.iframe(href);
12+
const entries = performance.getEntriesByType('resource').filter(({name}) => name.startsWith(href));
13+
assert_equals(entries.length, 1);
14+
assert_equals(entries[0].initiatorType, 'iframe');
15+
}, 'Iframes should report resource timing for redirect responses without a location');
16+
</script>
17+
</body>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def main(request, response):
2+
response.status = 302

0 commit comments

Comments
 (0)