1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:27:35 +00:00

LibWeb: Implement document-tree child navigable target name property set

This AO allows accessing child navigables by their name as named
properties on the WindowProxy object.
This commit is contained in:
Andrew Kaster 2023-09-18 21:56:11 -06:00 committed by Andrew Kaster
parent 7e277797ad
commit 64899dba44
5 changed files with 63 additions and 4 deletions

View file

@ -0,0 +1,12 @@
<script src="../include.js"></script>
<iframe name="framey" src=""></iframe>
<iframe name=spices></iframe>
<script>
test(() => {
println(window.framey === window.frames[0]);
println(window.spices == window.frames[1]);
// FIXME: Test with cross-origin iframe?
// FIXME: Test with iframe that sets window.name -- this changes nothing atm
});
</script>