mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00
LibWeb: Hook TrustedTypes to the Workers api
This commit is contained in:
parent
e6ac064a34
commit
74aa7e8a82
Notes:
github-actions[bot]
2025-10-13 12:23:22 +00:00
Author: https://github.com/tete17
Commit: 74aa7e8a82
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6424
Reviewed-by: https://github.com/Lubrsi ✅
Reviewed-by: https://github.com/tcl3
4 changed files with 19 additions and 11 deletions
|
@ -3,12 +3,12 @@
|
|||
#import <HTML/AbstractWorker.idl>
|
||||
#import <HTML/MessagePort.idl>
|
||||
#import <Fetch/Request.idl>
|
||||
#import <TrustedTypes/TrustedScriptURL.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/workers.html#worker
|
||||
[Exposed=(Window,DedicatedWorker,SharedWorker)]
|
||||
interface Worker : EventTarget {
|
||||
// FIXME: "DOMString scriptURL" should be "(TrustedScriptURL or USVString) scriptURL".
|
||||
constructor(DOMString scriptURL, optional WorkerOptions options = {});
|
||||
constructor((TrustedScriptURL or Utf16USVString) scriptURL, optional WorkerOptions options = {});
|
||||
|
||||
undefined terminate();
|
||||
undefined postMessage(any message, sequence<object> transfer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue