The maximum subframe count check should not be skipped for empty URLs.
[WebKit-https.git] / LayoutTests / fast / dom / connected-subframe-counter-overflow.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <script>
8 description('The connected subframe counter should not overflow and make `disconnectSubframes` leave active subframes in a detached DOM node.');
9
10 const FRAME_COUNT = 1024;
11
12 let container = document.body.appendChild(document.createElement('div'));
13 for (let i = 0; i < FRAME_COUNT; ++i) {
14   let frame = container.appendChild(document.createElement('iframe'));
15   frame.style.display = 'none';
16 }
17 container.remove();
18
19 shouldBeNull('container.firstChild.contentWindow');
20 </script>
21 <script src="../../resources/js-test-post.js"></script>
22 </body>
23 </html>