LibWeb: Allow the Performance object to be used by workers

This commit is contained in:
Tim Ledbetter 2024-03-30 10:04:31 +00:00 committed by Andreas Kling
commit eebdc7bc88
Notes: sideshowbarker 2024-07-17 16:42:19 +09:00
15 changed files with 49 additions and 32 deletions

View file

@ -1,5 +1,6 @@
#import <Fetch/Request.idl>
#import <Fetch/Response.idl>
#import <HighResolutionTime/Performance.idl>
#import <HTML/MessagePort.idl>
// FIXME: Support VoidFunction in the IDL parser
@ -38,4 +39,7 @@ interface mixin WindowOrWorkerGlobalScope {
// https://fetch.spec.whatwg.org/#fetch-method
[NewObject] Promise<Response> fetch(RequestInfo input, optional RequestInit init = {});
// https://w3c.github.io/hr-time/#the-performance-attribute
[Replaceable] readonly attribute Performance performance;
};