1
0
Fork 0
firefox/testing/web-platform/tests/requestidlecallback/resources/child.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

17 lines
378 B
HTML

<!doctype html>
<h2>Child Frame</h2>
<script>
onload = () => {
let count = 0;
const loop = () => {
if (++count < 10) {
requestIdleCallback(loop);
} else {
const target = location.href.replace('www1.', '')
.replace('resources/child.html', '');
window.parent.postMessage('done', target);
}
};
requestIdleCallback(loop);
}
</script>