mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Implement Trusted types worker sinks (#36811)
Part of #36258 Built on top of #36668 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com> Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
c00e0aae61
commit
1e8896800a
10 changed files with 37 additions and 43 deletions
|
@ -11,7 +11,7 @@ interface mixin AbstractWorker {
|
|||
// https://html.spec.whatwg.org/multipage/#worker
|
||||
[Exposed=(Window,Worker)]
|
||||
interface Worker : EventTarget {
|
||||
[Throws] constructor(USVString scriptURL, optional WorkerOptions options = {});
|
||||
[Throws] constructor((TrustedScriptURL or USVString) scriptURL, optional WorkerOptions options = {});
|
||||
undefined terminate();
|
||||
|
||||
[Throws] undefined postMessage(any message, sequence<object> transfer);
|
||||
|
|
|
@ -19,6 +19,6 @@ interface WorkerGlobalScope : GlobalScope {
|
|||
[Exposed=Worker]
|
||||
partial interface WorkerGlobalScope { // not obsolete
|
||||
[Throws]
|
||||
undefined importScripts(DOMString... urls);
|
||||
undefined importScripts((TrustedScriptURL or USVString)... urls);
|
||||
readonly attribute WorkerNavigator navigator;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue