Only consider fully active documents when running the 'update the rendering' steps (#35245)

This is specified in https://html.spec.whatwg.org/multipage/#update-the-rendering step 3.2 but we where not filtering out inactive documents.

Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
webbeef 2025-02-01 10:10:20 -08:00 committed by GitHub
parent 8999b539df
commit c4f4d5cc04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 9 deletions

View file

@ -2264,6 +2264,10 @@ impl Document {
&mut *self.animation_frame_list.borrow_mut(),
);
self.pending_animation_ticks
.borrow_mut()
.remove(AnimationTickType::REQUEST_ANIMATION_FRAME);
self.running_animation_callbacks.set(true);
let was_faking_animation_frames = self.is_faking_animation_frames();
let timing = self.global().performance().Now();