Skip to content

script: Make performance.timing a PerformanceTiming object - #46990

Merged
TimvdLippe merged 5 commits into
servo:mainfrom
jdm:performance-timing
Aug 5, 2026
Merged

TimvdLippe merged 5 commits into
servo:mainfrom
jdm:performance-timing

Conversation

@jdm

@jdm jdm commented Aug 4, 2026

Copy link
Copy Markdown
Member

Rebased and expanded version of #36441. These changes ensure the document load timing information is shared between the various interfaces that use it so we don't need to duplicate the code that marks when certain events occur.

Testing: New passing tests.
Fixes: #33334
Fixes: #36171

Signed-off-by: aniebietafia <aniebietafia87@gmail.com>
@jdm
jdm requested a review from gterzian as a code owner August 4, 2026 18:31
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 4, 2026
@jdm
jdm force-pushed the performance-timing branch from 6354989 to f4358c5 Compare August 4, 2026 18:32
Comment thread components/script/dom/performance/performancetiming.rs
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Aug 4, 2026
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
@jdm
jdm force-pushed the performance-timing branch from f4358c5 to 364bc36 Compare August 4, 2026 21:41
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 4, 2026
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
@jdm
jdm enabled auto-merge August 4, 2026 21:44
@jdm
jdm added this pull request to the merge queue Aug 4, 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 4, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 4, 2026
@servo-highfive servo-highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 4, 2026
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
@servo-highfive servo-highfive removed the S-tests-failed The changes caused existing tests to fail. label Aug 5, 2026
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
@shubhamg13

Copy link
Copy Markdown
Member

But it is marked as obsolete. right?

@jdm

jdm commented Aug 5, 2026

Copy link
Copy Markdown
Member Author

Still gets used by pages though!

@TimvdLippe
TimvdLippe added this pull request to the merge queue Aug 5, 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 5, 2026
@TimvdLippe
TimvdLippe removed this pull request from the merge queue due to a manual request Aug 5, 2026
@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 5, 2026
@TimvdLippe
TimvdLippe added this pull request to the merge queue Aug 5, 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 5, 2026
niyabits pushed a commit to niyabits/servo that referenced this pull request Aug 5, 2026
…7005)

Element::ensure_rare_data returns a dynamic mutable borrow, so by using
safe_borrow_mut we can statically prevent multiple lurking borrow
hazards. First noticed in an unexpected test failure in servo#46990.

Testing: Existing test coverage suffices.
Fixes: servo#47004

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Merged via the queue into servo:main with commit 68fdd51 Aug 5, 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 5, 2026
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
…7005)

Element::ensure_rare_data returns a dynamic mutable borrow, so by using
safe_borrow_mut we can statically prevent multiple lurking borrow
hazards. First noticed in an unexpected test failure in servo#46990.

Testing: Existing test coverage suffices.
Fixes: servo#47004

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
…6990)

Rebased and expanded version of servo#36441. These changes ensure the
document load timing information is shared between the various
interfaces that use it so we don't need to duplicate the code that marks
when certain events occur.

Testing: New passing tests.
Fixes: servo#33334
Fixes: servo#36171

---------

Signed-off-by: aniebietafia <aniebietafia87@gmail.com>
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Co-authored-by: aniebietafia <aniebietafia87@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

5 participants