mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
I had completely managed to forget about the special case of Window where a WindowProxy is what is received over IDL. This was caught by the origin-from-window WPT test, but unfortunately this cannot be imported as it relies on a web server running and other surroundsing WPT infrastructure.
10 lines
232 B
HTML
10 lines
232 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const origin = Origin.from(window);
|
|
println(origin);
|
|
println(origin.isSameOrigin(Origin.from(window)));
|
|
});
|
|
</script>
|