Skip to content

script: Use global's active document's navigation timing for PerformanceTiming - #47289

Merged
TimvdLippe merged 1 commit into
servo:mainfrom
jdm:nav-timing-doc
Aug 17, 2026
Merged

TimvdLippe merged 1 commit into
servo:mainfrom
jdm:nav-timing-doc

Conversation

@jdm

@jdm jdm commented Aug 17, 2026

Copy link
Copy Markdown
Member

#46975 exposes a case where the navigation timing information for documents in iframes is incorrect, because PerformanceTiming is initialized with the timing information for about:blank. We can avoid this by always returning timing information derived from the global's active document instead.

Testing: No behaviour change possible before #46975, and this change fixes failures exposed in that PR.
Part of #43149

@jdm
jdm requested a review from gterzian as a code owner August 17, 2026 06:54
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 17, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Aug 17, 2026
@TimvdLippe
TimvdLippe enabled auto-merge August 17, 2026 06:57
@TimvdLippe
TimvdLippe added this pull request to the merge queue Aug 17, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 17, 2026
Merged via the queue into servo:main with commit 4f616ab Aug 17, 2026
36 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 17, 2026
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
…nceTiming (servo#47289)

servo#46975 exposes a case where the navigation timing information for
documents in iframes is incorrect, because PerformanceTiming is
initialized with the timing information for about:blank. We can avoid
this by always returning timing information derived from the global's
active document instead.

Testing: No behaviour change possible before servo#46975, and this change
fixes failures exposed in that PR.
Part of servo#43149

Signed-off-by: Josh Matthews <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants