1
0
Fork 0
firefox/testing/web-platform/tests/requestidlecallback/callback-iframe-different-origin.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

19 lines
619 B
HTML

<!doctype html>
<title>window.requestIdleCallback in a cross-origin iframe.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(t => {
onload = function() {
const iframe = document.createElement('iframe');
iframe.src = location.href.replace('://', '://www1.')
.replace('callback-iframe-different-origin', 'resources/child');
document.body.appendChild(iframe);
};
onmessage = function(e) {
assert_equals(e.data, 'done');
t.done();
}
}, 'Check that idle tasks run in a cross-origin iframe');
</script>