diff options
Diffstat (limited to 'dom/webidl/PerformanceObserver.webidl')
-rw-r--r-- | dom/webidl/PerformanceObserver.webidl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/dom/webidl/PerformanceObserver.webidl b/dom/webidl/PerformanceObserver.webidl index 4cebecbeba..4e08adb34b 100644 --- a/dom/webidl/PerformanceObserver.webidl +++ b/dom/webidl/PerformanceObserver.webidl @@ -8,8 +8,9 @@ */ dictionary PerformanceObserverInit { - required sequence<DOMString> entryTypes; - boolean buffered = false; + sequence<DOMString> entryTypes; + DOMString type; + boolean buffered; }; callback PerformanceObserverCallback = void (PerformanceObserverEntryList entries, PerformanceObserver observer); @@ -18,7 +19,8 @@ callback PerformanceObserverCallback = void (PerformanceObserverEntryList entrie Constructor(PerformanceObserverCallback callback), Exposed=(Window,Worker)] interface PerformanceObserver { - [Throws] - void observe(PerformanceObserverInit options); + [Throws] void observe(optional PerformanceObserverInit options); void disconnect(); + PerformanceEntryList takeRecords(); + static readonly attribute object supportedEntryTypes; }; |