mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
LibWeb/HTML: Fix Origin.from(value) for Window objects
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.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
45ab134de9
commit
865b2b88b0
Notes:
github-actions[bot]
2025-12-30 17:50:59 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/865b2b88b06 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7283 Reviewed-by: https://github.com/gmta ✅
9
Tests/LibWeb/Text/input/HTML/origin-from-window.html
Normal file
9
Tests/LibWeb/Text/input/HTML/origin-from-window.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
const origin = Origin.from(window);
|
||||
println(origin);
|
||||
println(origin.isSameOrigin(Origin.from(window)));
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user