mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb/XHR: Parse URL to resolve blob
This commit is contained in:
parent
4fdb266077
commit
3be93ac49f
Notes:
github-actions[bot]
2024-10-20 11:59:23 +00:00
Author: https://github.com/turbolent 🔰
Commit: 3be93ac49f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1874
Reviewed-by: https://github.com/trflynn89
3 changed files with 17 additions and 1 deletions
|
@ -0,0 +1,14 @@
|
|||
<script src="../include.js"></script>
|
||||
<script>
|
||||
asyncTest(done => {
|
||||
const xhr = new XMLHttpRequest();
|
||||
const data = "PASS";
|
||||
const url = URL.createObjectURL(new Blob([data]));
|
||||
xhr.open("GET", url);
|
||||
xhr.onload = function () {
|
||||
println(xhr.responseText);
|
||||
done();
|
||||
};
|
||||
xhr.send();
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue