-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Implement XMLHttpRequest.responseURL
This was used on https://twinings.co.uk/ so let's support it :^)
- Loading branch information
1 parent
34f2cbf
commit 64d9614
Showing
4 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
Tests/LibWeb/Text/input/XHR/XMLHttpRequest-responseURL.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script src="../include.js"></script> | ||
<script> | ||
asyncTest((done) => { | ||
const xhr = new XMLHttpRequest(); | ||
xhr.open("GET", "data:text/html,hello", true); | ||
println("responseURL before: '" + xhr.responseURL + "'"); | ||
xhr.onreadystatechange = function() { | ||
if (xhr.readyState === 4 && xhr.status === 200) { | ||
println("responseURL after: '" + xhr.responseURL + "'"); | ||
done(); | ||
} | ||
}; | ||
xhr.send(); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters