| <html> |
| <head> |
| <script> |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| testRunner.waitUntilDone(); |
| } |
| |
| function loaded() { |
| // Start a new resource load in the iframe. |
| // Before bug 55017 is resolved, the new resource load will be blocked |
| // because of the 20 leaked loaders caused by the svg images. |
| var iframe = document.createElement('iframe'); |
| iframe.src = 'resources/load-script.html'; |
| iframe.onload = function() { |
| document.getElementById('result').innerText = 'SUCCESS'; |
| if (window.testRunner) |
| testRunner.notifyDone(); |
| }; |
| document.body.appendChild(iframe); |
| } |
| </script> |
| </head> |
| |
| <body onload="loaded()"> |
| This test checks if SVGIMages cause MainResourceLoaders leaks which will prevent later |
| sub-resources from being loaded.<br> |
| This test should produce "SUCCESS" and should not timeout. |
| |
| <div id="result">FAIL</div> |
| |
| <!-- |
| ResourceLoadScheduler limits maximum 20 loading loaders at parsing stage for each host. |
| Before bug 55017 is resolved, the following svg images will leak their MainResourceLoaders. |
| --> |
| <img src='resources/circle.svg?1'> |
| <img src='resources/circle.svg?2'> |
| <img src='resources/circle.svg?3'> |
| <img src='resources/circle.svg?4'> |
| <img src='resources/circle.svg?5'> |
| <img src='resources/circle.svg?6'> |
| <img src='resources/circle.svg?7'> |
| <img src='resources/circle.svg?8'> |
| <img src='resources/circle.svg?9'> |
| <img src='resources/circle.svg?10'> |
| <img src='resources/circle.svg?11'> |
| <img src='resources/circle.svg?12'> |
| <img src='resources/circle.svg?13'> |
| <img src='resources/circle.svg?14'> |
| <img src='resources/circle.svg?15'> |
| <img src='resources/circle.svg?16'> |
| <img src='resources/circle.svg?17'> |
| <img src='resources/circle.svg?18'> |
| <img src='resources/circle.svg?19'> |
| <img src='resources/circle.svg?20'> |
| </body> |
| </html> |