mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00
LibWeb: Hook TrustedTypes to the SharedWorkers api
This commit is contained in:
parent
bd4e3fd3e0
commit
e6ac064a34
Notes:
github-actions[bot]
2025-10-13 12:23:30 +00:00
Author: https://github.com/tete17
Commit: e6ac064a34
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 17 additions and 8 deletions
|
@ -2,12 +2,12 @@
|
|||
#import <HTML/AbstractWorker.idl>
|
||||
#import <HTML/MessagePort.idl>
|
||||
#import <HTML/Worker.idl>
|
||||
#import <TrustedTypes/TrustedScriptURL.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/workers.html#sharedworker
|
||||
[Exposed=Window]
|
||||
interface SharedWorker : EventTarget {
|
||||
// FIXME: "DOMString scriptURL" should be "(TrustedScriptURL or USVString) scriptURL".
|
||||
constructor(DOMString scriptURL, optional (DOMString or WorkerOptions) options = {});
|
||||
constructor((TrustedScriptURL or Utf16USVString) scriptURL, optional (DOMString or WorkerOptions) options = {});
|
||||
|
||||
readonly attribute MessagePort port;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue