summaryrefslogtreecommitdiff
path: root/dom/base
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2023-10-20 04:21:49 -0500
committerBrian Smith <brian@dbsoft.org>2023-10-20 04:21:49 -0500
commit398486a64bdd0c3ae7df24719dd434d13e58895a (patch)
treec2c2e3bdca870d73c46877c694511d822b333f2c /dom/base
parent6076431d7c6541cd285a24a34a8bd8f2f554cfb9 (diff)
downloaduxp-398486a64bdd0c3ae7df24719dd434d13e58895a.tar.gz
Issue #2282 - Align the Performance Observer navigation and resource with the spec.
This now passes the conformance tests. https://bugzilla.mozilla.org/show_bug.cgi?id=1425458 Resource timing entries Workers - part 2 - PerformanceTimingData. https://bugzilla.mozilla.org/show_bug.cgi?id=1462605 PerformanceNavigationTiming.name must be the value of the address of the current document. https://bugzilla.mozilla.org/show_bug.cgi?id=1462883 Update PerformanceTimingData::mReportCrossOriginRedirect in SetPropertiesFromHttpChannel. https://bugzilla.mozilla.org/show_bug.cgi?id=1462879 PerformanceNavigationTiming must be notified correctly - part 1 - notify.
Diffstat (limited to 'dom/base')
-rw-r--r--dom/base/nsGlobalWindow.cpp9
-rw-r--r--dom/base/nsPIDOMWindow.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp
index ae84de3a19..a69b5e177a 100644
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -4223,6 +4223,15 @@ nsGlobalWindow::GetPerformance()
}
void
+nsPIDOMWindowInner::QueuePerformanceNavigationTiming()
+{
+ CreatePerformanceObjectIfNeeded();
+ if (mPerformance) {
+ mPerformance->QueueNavigationTimingEntry();
+ }
+}
+
+void
nsPIDOMWindowInner::CreatePerformanceObjectIfNeeded()
{
MOZ_ASSERT(IsInnerWindow());
diff --git a/dom/base/nsPIDOMWindow.h b/dom/base/nsPIDOMWindow.h
index ffebf6570d..110da38604 100644
--- a/dom/base/nsPIDOMWindow.h
+++ b/dom/base/nsPIDOMWindow.h
@@ -727,6 +727,8 @@ public:
mozilla::dom::Performance* GetPerformance();
+ void QueuePerformanceNavigationTiming();
+
bool HasMutationListeners(uint32_t aMutationEventType) const
{
if (!mOuterWindow) {