mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibWeb: Implement the setter for location.protocol
This commit is contained in:
parent
07940a89ca
commit
1365289d98
Notes:
github-actions[bot]
2024-08-17 05:40:53 +00:00
Author: https://github.com/tcl3
Commit: 1365289d98
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1096
3 changed files with 42 additions and 3 deletions
11
Tests/LibWeb/Text/input/HTML/Location-protocol-setter.html
Normal file
11
Tests/LibWeb/Text/input/HTML/Location-protocol-setter.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
try {
|
||||
window.location.protocol = "\xff";
|
||||
} catch (e) {
|
||||
println(`Setting location.protocol to an invalid value throws ${e.name}`);
|
||||
}
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue