Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /intersection-observer/transformed-non-invertible-iframe-cross-origin-crash.sub.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="reftest-wait">
<title>Don't crash if a cross-origin iframe uses intersection observer and is transformed with a non-invertible transformation</title>
<link rel="author" title="Kiet Ho" href="mailto:kiet.ho@apple.com">
<script src="/common/reftest-wait.js"></script>
<style>
iframe {
transform: matrix3d(
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0
);
}
</style>
<p>This test passes if it does not crash. You should not see anything besides this text.</p>
<iframe src="http://{{hosts[alt][]}}:{{ports[http][0]}}/intersection-observer/resources/transformed-iframe-subframe.html"></iframe>
<script>
window.addEventListener("message", (e) => {
if (Object.hasOwn(e.data, "isIntersecting"))
takeScreenshot();
});
</script>
</html>