Skip to content
Commit 06751e19 authored by Yuzu Saijo's avatar Yuzu Saijo Committed by Chromium LUCI CQ
Browse files

[bfcache] Stop ServiceScriptedAnimations when frozen

In the wild, we saw a case where JavaScript gets executed because of
ServiceScriptedAnimations while a page is in bfcache.
This seems to be a case where a user navigates to a page and then goes
back immediately. BeginMainFrame() initiates this JS execution.

The problems is that ServiceScriptedAnimations did not consider frozen state/ bfcache.

This CL replaces IsContextPaused() with IsContextFrozemOrPaused() in
ServiceScriptedAnimations.

Document: https://docs.google.com/document/d/1uf5KOSHzVlh1zSE_PeCD1IxP_Fu-E5rS7jsLmpzCDVo/edit#
Bug: 1406134
Change-Id: I49366ad4bad5f750528d2847c5f662262f2dc79f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4150610


Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Yuzu Saijo <yuzus@chromium.org>
Reviewed-by: default avatarFergal Daly <fergal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1090755}
parent c81e6b2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment