LibWeb/XHR: Parse URL to resolve blob

This commit is contained in:
Bastian Müller 2024-10-19 16:12:54 -07:00 committed by Tim Flynn
commit 3be93ac49f
Notes: github-actions[bot] 2024-10-20 11:59:23 +00:00
3 changed files with 17 additions and 1 deletions

View file

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