mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 18:47:15 +02:00
LibWeb: Expose crypto object to workers
This change moves the `crypto()` getter from `Window` to `WorkerOrWindowGlobalScope`. This aligns our implementation with the WebCrypto specification.
This commit is contained in:
committed by
Andreas Kling
parent
d6a31d80c0
commit
89b6cd3fb1
Notes:
github-actions[bot]
2024-09-18 08:09:56 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/89b6cd3fb1b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1419
10
Tests/LibWeb/Text/input/Worker/Worker-crypto.html
Normal file
10
Tests/LibWeb/Text/input/Worker/Worker-crypto.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
asyncTest(done => {
|
||||
let work = new Worker("worker-crypto.js");
|
||||
work.onmessage = (evt) => {
|
||||
println(`Type of self.crypto: ${evt.data}`);
|
||||
done();
|
||||
};
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user