mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 15:42:52 +00:00
Navigation should not run for <object> element until it is inserted into a document. Spec deoes not seem to explicitely say that, but that matches other browsers behavior. Fixes hanging after reloading in Acid3 test.
19 lines
714 B
HTML
19 lines
714 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<object id="obj" type="text/html" data="about:blank"></object>
|
|
<script>
|
|
asyncTest(done => {
|
|
const objectElement = document.getElementById("obj");
|
|
objectElement.onload = () => {
|
|
// Should not be reached.
|
|
println("load event fired");
|
|
};
|
|
objectElement.remove();
|
|
objectElement.data = "data:text/html;charset=utf-8,%3Chtml%3E%3Cbody%3E%3Ch1%3EHello%2C%20World%21%3C%2Fh1%3E%3Cp%3EThis%20is%20a%20simple%20embedded%20HTML%20using%20data%20URI.%3C%2Fp%3E%3C%2Fbody%3E%3C%2Fhtml%3E";
|
|
|
|
setTimeout(() => {
|
|
println("PASS");
|
|
done();
|
|
}, 100);
|
|
});
|
|
</script>
|