[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:Kentaro Hara <haraken@chromium.org> Commit-Queue: Yuzu Saijo <yuzus@chromium.org> Reviewed-by:
Fergal Daly <fergal@chromium.org> Cr-Commit-Position: refs/heads/main@{#1090755}
Loading
Please register or sign in to comment