mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-13 22:52:52 +00:00
Partially reverting a3149c1ce9
Spinning the event loop was causing a crash on:
https://wpt.live/url/percent-encoding.window.html
As it was turning what is meant to be a synchronous operation into an
asynchronous one.
The sequence demonstrated by the reproducing test is as follows:
* A src attribute is changed for the iframe
* process_the_iframe_attributes entered with valid content navigable
* Event loop is spun, allowing the queued iframe removal to execute
* process_the_iframe_attributes continues with null content navigable
* 💥
20 lines
446 B
HTML
20 lines
446 B
HTML
<body>
|
|
</body>
|
|
<script src="include.js"></script>
|
|
<script>
|
|
asyncTest(done => {
|
|
let frame = document.body.appendChild(document.createElement("iframe"));
|
|
|
|
setTimeout(() => {
|
|
frame.remove();
|
|
|
|
setTimeout(() => {
|
|
println("PASS! (Didn't crash)");
|
|
done();
|
|
}, 0);
|
|
|
|
}, 0);
|
|
|
|
frame.src = `../data/iframe-with-border-radius-svg.html`;
|
|
})
|
|
</script>
|