From f583634c3fd2fa26226edf97158f1b1462061f2b Mon Sep 17 00:00:00 2001
From: Guohui Deng
Date: Wed, 20 Nov 2024 18:02:51 +0000
Subject: [PATCH] Bug 1931981 [wpt PR 49240] - Put timing values of
DocumentTiming in a GCed object, a=testonly
Automatic update from web-platform-tests
Put timing values of DocumentTiming in a GCed object
So they can outlive the document, and PerformanceNavigationTiming can
collect them.
Bug: 40793421
Change-Id: I2cbb53862ff9fab08f963d9408ef65ff462e5dd7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5935276
Reviewed-by: David Baron
Commit-Queue: Guohui Deng
Reviewed-by: Noam Rosenthal
Cr-Commit-Position: refs/heads/main@{#1384608}
--
wpt-commits: d639d949a473d412a3557eab71eba43a58420f3f
wpt-pr: 49240
---
.../nav2-test-document-replaced.html | 2 +-
.../nav2-test-timing-persistent.html | 47 +++++++++++++++++++
2 files changed, 48 insertions(+), 1 deletion(-)
create mode 100644 testing/web-platform/tests/navigation-timing/nav2-test-timing-persistent.html
diff --git a/testing/web-platform/tests/navigation-timing/nav2-test-document-replaced.html b/testing/web-platform/tests/navigation-timing/nav2-test-document-replaced.html
index 5972f20e9bd7f..480e2bef841f7 100644
--- a/testing/web-platform/tests/navigation-timing/nav2-test-document-replaced.html
+++ b/testing/web-platform/tests/navigation-timing/nav2-test-document-replaced.html
@@ -54,7 +54,7 @@
Description
- This test validates that a PerformanceNavigatingTiming corresponding to a detached document can't access a different document's state.
+ This test validates that a PerformanceNavigationTiming corresponding to a detached document can't access a different document's state.