mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1271487 - Enable PerformanceObserver API in nightly by default. r=baku
MozReview-Commit-ID: 7v5KhZdVuSm --HG-- extra : rebase_source : e65095c2ebf46de2edf554d04d046ba7c18520c7
This commit is contained in:
parent
76a40b897e
commit
d5e07e1e8b
@ -135,10 +135,9 @@ PerformanceObserver::QueueEntry(PerformanceEntry* aEntry)
|
||||
mQueuedEntries.AppendElement(aEntry);
|
||||
}
|
||||
|
||||
static const char16_t* sValidTypeNames[5] = {
|
||||
static const char16_t* sValidTypeNames[4] = {
|
||||
MOZ_UTF16("mark"),
|
||||
MOZ_UTF16("measure"),
|
||||
MOZ_UTF16("navigation"),
|
||||
MOZ_UTF16("resource"),
|
||||
MOZ_UTF16("server")
|
||||
};
|
||||
|
@ -905,6 +905,10 @@ var interfaceNamesInGlobalScope =
|
||||
"PerformanceMeasure",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
"PerformanceNavigation",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
{name: "PerformanceObserver", nightly: true},
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
{name: "PerformanceObserverEntryList", nightly: true},
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
"PerformanceResourceTiming",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
|
@ -4,7 +4,7 @@
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* https://w3c.github.io/performance-timeline/#the-performance-observer-interface
|
||||
* https://w3c.github.io/performance-timeline/#the-performanceobserver-interface
|
||||
*/
|
||||
|
||||
dictionary PerformanceObserverInit {
|
||||
|
@ -172,6 +172,10 @@ var interfaceNamesInGlobalScope =
|
||||
"PerformanceMark",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
"PerformanceMeasure",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
{ name: "PerformanceObserver", nightly: true },
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
{ name: "PerformanceObserverEntryList", nightly: true },
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
"Promise",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
|
@ -162,6 +162,10 @@ var interfaceNamesInGlobalScope =
|
||||
"PerformanceMark",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
"PerformanceMeasure",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
{ name: "PerformanceObserver", nightly: true },
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
{ name: "PerformanceObserverEntryList", nightly: true },
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
"Promise",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
|
@ -167,6 +167,13 @@ pref("dom.performance.enable_user_timing_logging", false);
|
||||
// Enable notification of performance timing
|
||||
pref("dom.performance.enable_notify_performance_timing", false);
|
||||
|
||||
// Enable Performance Observer API
|
||||
#ifdef NIGHTLY_BUILD
|
||||
pref("dom.enable_performance_observer", true);
|
||||
#else
|
||||
pref("dom.enable_performance_observer", false);
|
||||
#endif
|
||||
|
||||
// Whether the Gamepad API is enabled
|
||||
pref("dom.gamepad.enabled", true);
|
||||
#ifdef RELEASE_BUILD
|
||||
|
@ -1,47 +0,0 @@
|
||||
[idlharness.html]
|
||||
type: testharness
|
||||
[PerformanceObserverEntryList interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[PerformanceObserverEntryList interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[PerformanceObserverEntryList interface object name]
|
||||
expected: FAIL
|
||||
|
||||
[PerformanceObserverEntryList interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
[PerformanceObserverEntryList interface: existence and properties of interface prototype object's "constructor" property]
|
||||
expected: FAIL
|
||||
|
||||
[PerformanceObserverEntryList interface: operation getEntries(PerformanceEntryFilterOptions)]
|
||||
expected: FAIL
|
||||
|
||||
[PerformanceObserverEntryList interface: operation getEntriesByType(DOMString)]
|
||||
expected: FAIL
|
||||
|
||||
[PerformanceObserverEntryList interface: operation getEntriesByName(DOMString,DOMString)]
|
||||
expected: FAIL
|
||||
|
||||
[PerformanceObserver interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[PerformanceObserver interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[PerformanceObserver interface object name]
|
||||
expected: FAIL
|
||||
|
||||
[PerformanceObserver interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
[PerformanceObserver interface: existence and properties of interface prototype object's "constructor" property]
|
||||
expected: FAIL
|
||||
|
||||
[PerformanceObserver interface: operation observe(PerformanceObserverInit)]
|
||||
expected: FAIL
|
||||
|
||||
[PerformanceObserver interface: operation disconnect()]
|
||||
expected: FAIL
|
||||
|
@ -1,11 +1,6 @@
|
||||
[po-disconnect.html]
|
||||
type: testharness
|
||||
[disconnected callbacks must not be invoked]
|
||||
expected: FAIL
|
||||
|
||||
[disconnecting an unconnected observer is a no-op]
|
||||
expected: FAIL
|
||||
|
||||
expected: TIMEOUT
|
||||
[An observer disconnected after a mark must receive the mark]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
|
@ -1,11 +0,0 @@
|
||||
[po-mark-measure.html]
|
||||
type: testharness
|
||||
[entries are observable]
|
||||
expected: FAIL
|
||||
|
||||
[mark entries are observable]
|
||||
expected: FAIL
|
||||
|
||||
[measure entries are observable]
|
||||
expected: FAIL
|
||||
|
@ -1,14 +0,0 @@
|
||||
[po-observe.html]
|
||||
type: testharness
|
||||
[no entryTypes throws a TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Empty sequence entryTypes throws a TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Filter unsupported entryType entryType names within the entryTypes sequence]
|
||||
expected: FAIL
|
||||
|
||||
[replace observer if already present]
|
||||
expected: FAIL
|
||||
|
@ -1,5 +0,0 @@
|
||||
[po-resource.html]
|
||||
type: testharness
|
||||
[resource entries are observable]
|
||||
expected: FAIL
|
||||
|
Loading…
Reference in New Issue
Block a user