node/test/fixtures/wpt/performance-timeline/timing-removed-iframe.html
RedYetiDev 1aa71351fa
test: update performance-timeline wpt
PR-URL: https://github.com/nodejs/node/pull/55197
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
2024-11-06 10:59:52 +01:00

16 lines
536 B
HTML

<!DOCTYPE html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
test(() => {
const iframe = document.createElement('iframe');
iframe.src = "resources/empty.html"
document.body.appendChild(iframe);
const iframePerformance = iframe.contentWindow.performance;
iframe.parentNode.removeChild(iframe);
const timing = iframePerformance.timing;
}, "Test that a removed iframe which timing is accessed does not crash the renderer.");
</script>