LibWeb: Implement the setter for location.protocol

This commit is contained in:
Tim Ledbetter 2024-08-16 22:00:29 +01:00 committed by Andreas Kling
commit 1365289d98
Notes: github-actions[bot] 2024-08-17 05:40:53 +00:00
3 changed files with 42 additions and 3 deletions

View 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>