mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibWeb: Set correct prototype for WorkerLocation
This commit is contained in:
parent
7f40a19c71
commit
354e5a6624
Notes:
github-actions[bot]
2024-07-28 19:41:19 +00:00
Author: https://github.com/tcl3
Commit: 354e5a6624
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/877
5 changed files with 20 additions and 0 deletions
11
Tests/LibWeb/Text/input/Worker/Worker-location.html
Normal file
11
Tests/LibWeb/Text/input/Worker/Worker-location.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<script src="../include.js"></script>
|
||||
<script>
|
||||
asyncTest(done => {
|
||||
let work = new Worker("Worker-location.js");
|
||||
work.onmessage = (evt) => {
|
||||
const locationURL = new URL(evt.data);
|
||||
println(`location global object URL final segment: ${locationURL.pathname.split('/').pop()}`);
|
||||
done();
|
||||
};
|
||||
});
|
||||
</script>
|
1
Tests/LibWeb/Text/input/Worker/Worker-location.js
Normal file
1
Tests/LibWeb/Text/input/Worker/Worker-location.js
Normal file
|
@ -0,0 +1 @@
|
|||
postMessage(location.toString());
|
Loading…
Add table
Add a link
Reference in a new issue