diff options
author | Brian Smith <brian@dbsoft.org> | 2023-08-02 02:41:40 -0500 |
---|---|---|
committer | Brian Smith <brian@dbsoft.org> | 2023-08-02 02:41:40 -0500 |
commit | e748187360f8c987b487dd90c5dea1b489498d43 (patch) | |
tree | f31c9c8c3228d42e293b97f4ffd0f700feaef8e4 /dom/webidl | |
parent | 13cca807e6c0cdd113139424c2af5fdabd731ff2 (diff) | |
download | uxp-e748187360f8c987b487dd90c5dea1b489498d43.tar.gz |
Issue #2282 - - Properly implement Performance Timeline Level 2 w3c spec.
https://bugzilla.mozilla.org/show_bug.cgi?id=1539006
Do not throw from PerformanceObserver.observe when none of the entryTypes are known.
https://bugzilla.mozilla.org/show_bug.cgi?id=1403027
Implement PerformanceObserver::takeRecords().
https://bugzilla.mozilla.org/show_bug.cgi?id=1436692
"server" is not a valid PerformanceEntry type.
https://bugzilla.mozilla.org/show_bug.cgi?id=1463065
Fix a null ptr crash in PerformanceObserver::Observe.
https://bugzilla.mozilla.org/show_bug.cgi?id=1631346
Diffstat (limited to 'dom/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; }; |