mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Mark initial about:blank as ready to run scripts after creation
This matches how other browsers behave. Fixes https://github.com/SerenityOS/serenity/issues/23892
This commit is contained in:
committed by
Andreas Kling
parent
649f70db65
commit
a73bf1607f
Notes:
sideshowbarker
2024-07-18 08:59:31 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/a73bf1607f Pull-request: https://github.com/SerenityOS/serenity/pull/23931 Issue: https://github.com/SerenityOS/serenity/issues/23892
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<body>
|
||||
<!-- Other browsers seem to display the message below regardless of what src is (valid or not) -->
|
||||
<iframe id="target" srcdoc="iframe content"></iframe>
|
||||
<script>
|
||||
asyncTest((done) => {
|
||||
const script = target.contentDocument.createElement("script");
|
||||
script.innerHTML = `parent.postMessage("message from test iframe", "*");`;
|
||||
target.contentDocument.body.appendChild(script);
|
||||
window.addEventListener("message", event => {
|
||||
println(event.data);
|
||||
done();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
Reference in New Issue
Block a user