mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +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
@@ -1,3 +1,4 @@
|
||||
#import <Crypto/Crypto.idl>
|
||||
#import <Fetch/Request.idl>
|
||||
#import <Fetch/Response.idl>
|
||||
#import <HighResolutionTime/Performance.idl>
|
||||
@@ -48,4 +49,7 @@ interface mixin WindowOrWorkerGlobalScope {
|
||||
|
||||
// https://w3c.github.io/IndexedDB/#factory-interface
|
||||
[SameObject] readonly attribute IDBFactory indexedDB;
|
||||
|
||||
// https://w3c.github.io/webcrypto/#crypto-interface
|
||||
[SameObject] readonly attribute Crypto crypto;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user