timing-removed-iframe.html (536B)
1 <!DOCTYPE html> 2 <head> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 </head> 6 <body> 7 <script> 8 test(() => { 9 const iframe = document.createElement('iframe'); 10 iframe.src = "resources/empty.html" 11 document.body.appendChild(iframe); 12 const iframePerformance = iframe.contentWindow.performance; 13 iframe.parentNode.removeChild(iframe); 14 const timing = iframePerformance.timing; 15 }, "Test that a removed iframe which timing is accessed does not crash the renderer."); 16 </script>