[animation-trigger] Fix crash in nested PostStyleUpdateScope updates [chromium/src : main]

0 views
Skip to first unread message

David A (Gerrit)

unread,
Mar 23, 2026, 1:35:28 PM (yesterday) Mar 23
to Vladimir Levin, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Olga Gerchikov, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org
Attention needed from Vladimir Levin

David A voted and added 2 comments

Votes added by David A

Commit-Queue+1

2 comments

Patchset-level comments
File-level comment, Patchset 6 (Latest):
David A . resolved

Hi Vlad, ptal, thanks

File third_party/blink/renderer/core/css/post_style_update_scope.h
Line 101, Patchset 5: static void SetPendingUpdateForTesting(Element&, const CSSAnimationUpdate&);
David A . resolved

Introducing this as AnimationData is not marked `CORE_EXPORT`, causing PostStyleUpdateScope::CurrentAnimationData::SetPendingUpdate to fail compilation on some platforms (i.e. Windows).
(Maybe, to avoid others running into the issue of local builds being fine while CQ runs fail, we should consider marking `AnimationData` and `PseudoData` `CORE_EXPORT`)

Open in Gerrit

Related details

Attention is currently required from:
  • Vladimir Levin
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iee17d6609d6c75f90ae155a473620519cd604921
Gerrit-Change-Number: 7674557
Gerrit-PatchSet: 6
Gerrit-Owner: David A <awogb...@chromium.org>
Gerrit-Reviewer: David A <awogb...@chromium.org>
Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-Attention: Vladimir Levin <vmp...@chromium.org>
Gerrit-Comment-Date: Mon, 23 Mar 2026 17:35:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Vladimir Levin (Gerrit)

unread,
Mar 23, 2026, 2:36:22 PM (yesterday) Mar 23
to David A, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Olga Gerchikov, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org
Attention needed from David A

Vladimir Levin voted and added 1 comment

Votes added by Vladimir Levin

Code-Review+1

1 comment

File third_party/blink/renderer/core/css/post_style_update_scope.cc
Line 45, Patchset 6 (Latest): if (current_ != this) {
Vladimir Levin . unresolved

nit: can you leave a comment something like "we only apply updates in the outermost scope as reflected by `current_`"

Open in Gerrit

Related details

Attention is currently required from:
  • David A
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iee17d6609d6c75f90ae155a473620519cd604921
Gerrit-Change-Number: 7674557
Gerrit-PatchSet: 6
Gerrit-Owner: David A <awogb...@chromium.org>
Gerrit-Reviewer: David A <awogb...@chromium.org>
Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-Attention: David A <awogb...@chromium.org>
Gerrit-Comment-Date: Mon, 23 Mar 2026 18:36:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

David A (Gerrit)

unread,
11:18 AM (8 hours ago) 11:18 AM
to Vladimir Levin, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Olga Gerchikov, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org

David A voted and added 1 comment

Votes added by David A

Commit-Queue+2

1 comment

File third_party/blink/renderer/core/css/post_style_update_scope.cc
Line 45, Patchset 6: if (current_ != this) {
Vladimir Levin . resolved

nit: can you leave a comment something like "we only apply updates in the outermost scope as reflected by `current_`"

David A

Done

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Iee17d6609d6c75f90ae155a473620519cd604921
    Gerrit-Change-Number: 7674557
    Gerrit-PatchSet: 7
    Gerrit-Owner: David A <awogb...@chromium.org>
    Gerrit-Reviewer: David A <awogb...@chromium.org>
    Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
    Gerrit-CC: Menard, Alexis <alexis...@intel.com>
    Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Comment-Date: Tue, 24 Mar 2026 15:17:59 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Vladimir Levin <vmp...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    David A (Gerrit)

    unread,
    11:19 AM (8 hours ago) 11:19 AM
    to Vladimir Levin, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Olga Gerchikov, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org

    David A voted Commit-Queue+2

    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Iee17d6609d6c75f90ae155a473620519cd604921
      Gerrit-Change-Number: 7674557
      Gerrit-PatchSet: 8
      Gerrit-Owner: David A <awogb...@chromium.org>
      Gerrit-Reviewer: David A <awogb...@chromium.org>
      Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
      Gerrit-Comment-Date: Tue, 24 Mar 2026 15:19:05 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      11:22 AM (7 hours ago) 11:22 AM
      to David A, Vladimir Levin, Menard, Alexis, chromium...@chromium.org, Olga Gerchikov, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org

      Chromium LUCI CQ submitted the change with unreviewed changes

      Unreviewed changes

      6 is the latest approved patch-set.
      The change was submitted with unreviewed changes in the following files:

      ```
      The name of the file: third_party/blink/renderer/core/css/post_style_update_scope.cc
      Insertions: 2, Deletions: 0.

      The diff is too large to show. Please review the diff.
      ```

      Change information

      Commit message:
      [animation-trigger] Fix crash in nested PostStyleUpdateScope updates

      This CL enforces a current_ != this guard to
      PostStyleUpdateScope::Apply, preventing scopes which did not observe the
      current animation update from attempting to execute trigger attachment
      updates.
      Bug: 492782953, 390314945
      Change-Id: Iee17d6609d6c75f90ae155a473620519cd604921
      Commit-Queue: David A <awogb...@chromium.org>
      Reviewed-by: Vladimir Levin <vmp...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1604142}
      Files:
      • M third_party/blink/renderer/core/animation/css/css_animations_test.cc
      • M third_party/blink/renderer/core/animation/document_animations.h
      • M third_party/blink/renderer/core/css/post_style_update_scope.cc
      • M third_party/blink/renderer/core/css/post_style_update_scope.h
      Change size: M
      Delta: 4 files changed, 96 insertions(+), 0 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Vladimir Levin
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Iee17d6609d6c75f90ae155a473620519cd604921
      Gerrit-Change-Number: 7674557
      Gerrit-PatchSet: 9
      Gerrit-Owner: David A <awogb...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: David A <awogb...@chromium.org>
      Gerrit-Reviewer: Vladimir Levin <vmp...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages