[event-timing]: Move interaction ID assignment to ResponsivenessMetrics [chromium/src : main]

0 views
Skip to first unread message

Michal Mocny (Gerrit)

unread,
Feb 20, 2026, 1:40:41 PM (2 days ago) Feb 20
to Scott Haseley, Johannes Henkel, Chromium LUCI CQ, AyeAye, blink-...@chromium.org, speed-metrics...@chromium.org, core-timi...@chromium.org, blink-rev...@chromium.org
Attention needed from Johannes Henkel and Scott Haseley

Michal Mocny voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Johannes Henkel
  • Scott Haseley
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I81528cced7a4c93a227f939b91e837236a6a6964
Gerrit-Change-Number: 7595405
Gerrit-PatchSet: 6
Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
Gerrit-Reviewer: Johannes Henkel <joha...@chromium.org>
Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Attention: Johannes Henkel <joha...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Fri, 20 Feb 2026 18:40:37 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

AI Code Reviewer (Gerrit)

unread,
Feb 20, 2026, 1:43:20 PM (2 days ago) Feb 20
to Michal Mocny, Scott Haseley, Johannes Henkel, Chromium LUCI CQ, AyeAye, blink-...@chromium.org, speed-metrics...@chromium.org, core-timi...@chromium.org, blink-rev...@chromium.org
Attention needed from Johannes Henkel and Scott Haseley

AI Code Reviewer added 2 comments

File third_party/blink/renderer/core/timing/window_performance.cc
Line 1126, Patchset 6 (Latest): std::round((event_end_time - event_creation_time).InMillisecondsF() / 8) *
AI Code Reviewer . unresolved

Blink Style Guide: Pay close attention to function signatures. 'SetDuration' expects a 'double' (DOMHighResTimeStamp), and 'std::round' returns a 'double'. Please use 'double' instead of 'base::TimeDelta' for 'rounded_duration' to avoid type mismatch.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Line 1411, Patchset 6 (Latest): first_pointer_down_event_timing_.Clear();
AI Code Reviewer . unresolved

Use 'nullptr' to clear the Member variable 'first_pointer_down_event_timing_' instead of '.Clear()'. (Blink Style Guide: C++ Features - Null Pointers)

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Open in Gerrit

Related details

Attention is currently required from:
  • Johannes Henkel
  • Scott Haseley
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not 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: I81528cced7a4c93a227f939b91e837236a6a6964
    Gerrit-Change-Number: 7595405
    Gerrit-PatchSet: 6
    Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Johannes Henkel <joha...@chromium.org>
    Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-Attention: Johannes Henkel <joha...@chromium.org>
    Gerrit-Attention: Scott Haseley <shas...@chromium.org>
    Gerrit-Comment-Date: Fri, 20 Feb 2026 18:43:17 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Michal Mocny (Gerrit)

    unread,
    Feb 20, 2026, 2:00:52 PM (2 days ago) Feb 20
    to AI Code Reviewer, Scott Haseley, Johannes Henkel, Chromium LUCI CQ, AyeAye, blink-...@chromium.org, speed-metrics...@chromium.org, core-timi...@chromium.org, blink-rev...@chromium.org
    Attention needed from Johannes Henkel and Scott Haseley

    Michal Mocny added 2 comments

    File third_party/blink/renderer/core/timing/window_performance.cc
    Line 1126, Patchset 6 (Latest): std::round((event_end_time - event_creation_time).InMillisecondsF() / 8) *
    AI Code Reviewer . resolved

    Blink Style Guide: Pay close attention to function signatures. 'SetDuration' expects a 'double' (DOMHighResTimeStamp), and 'std::round' returns a 'double'. Please use 'double' instead of 'base::TimeDelta' for 'rounded_duration' to avoid type mismatch.

    To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
    **Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


    _This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
    _AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
    _[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

    Michal Mocny

    OK But Won't Fix: Pre-existing and unrelated to this patch.

    Line 1411, Patchset 6 (Latest): first_pointer_down_event_timing_.Clear();
    AI Code Reviewer . resolved

    Use 'nullptr' to clear the Member variable 'first_pointer_down_event_timing_' instead of '.Clear()'. (Blink Style Guide: C++ Features - Null Pointers)

    To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
    **Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


    _This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
    _AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
    _[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

    Michal Mocny

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Johannes Henkel
    • Scott Haseley
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement 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: I81528cced7a4c93a227f939b91e837236a6a6964
      Gerrit-Change-Number: 7595405
      Gerrit-PatchSet: 6
      Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
      Gerrit-Reviewer: Johannes Henkel <joha...@chromium.org>
      Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
      Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-Attention: Johannes Henkel <joha...@chromium.org>
      Gerrit-Attention: Scott Haseley <shas...@chromium.org>
      Gerrit-Comment-Date: Fri, 20 Feb 2026 19:00:45 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Johannes Henkel (Gerrit)

      unread,
      Feb 20, 2026, 2:51:52 PM (2 days ago) Feb 20
      to Michal Mocny, AI Code Reviewer, Scott Haseley, Chromium LUCI CQ, AyeAye, blink-...@chromium.org, speed-metrics...@chromium.org, core-timi...@chromium.org, blink-rev...@chromium.org
      Attention needed from Michal Mocny and Scott Haseley

      Johannes Henkel voted and added 4 comments

      Votes added by Johannes Henkel

      Code-Review+1

      4 comments

      File third_party/blink/renderer/core/timing/responsiveness_metrics.h
      Line 142, Patchset 7 (Latest): // in PerformanceObservers and the Performance Timeline
      Johannes Henkel . unresolved
      ```suggestion
      // in PerformanceObservers and the Performance Timeline.
      ```
      File third_party/blink/renderer/core/timing/responsiveness_metrics.cc
      Line 374, Patchset 7 (Latest): // same logic, so we need to ignore the return value when InteractionId is
      Johannes Henkel . unresolved

      This part of the comment... are we actually ignoring some return value?
      It seems in l. 377 the return value from SetPointerIdAndRecordLatency is used and it's the only way to return false from TryAssignInteractionId.

      Line 382, Patchset 7 (Latest): return true;
      Johannes Henkel . unresolved

      I think the justification for "return true" comes from SetKeyIdAndRecord latency guaranteeing that it's going to call entry->SetInteractionIdInfo. Do you want to put some check statement that interaction id info is actually set?

      File third_party/blink/renderer/core/timing/window_performance.cc
      Line 1416, Patchset 7 (Latest): // This won't have an interactionId if it is a mousedown, but, I don't
      // know any platform that will emit mousedown without pointerdown, so this
      Johannes Henkel . unresolved

      This comment is a little funny, as the reader may not know who 'I' is, or which platforms 'I' knows. :-)

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Michal Mocny
      • Scott Haseley
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • 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: I81528cced7a4c93a227f939b91e837236a6a6964
        Gerrit-Change-Number: 7595405
        Gerrit-PatchSet: 7
        Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
        Gerrit-Reviewer: Johannes Henkel <joha...@chromium.org>
        Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
        Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
        Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
        Gerrit-Attention: Scott Haseley <shas...@chromium.org>
        Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
        Gerrit-Comment-Date: Fri, 20 Feb 2026 19:51:46 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Michal Mocny (Gerrit)

        unread,
        Feb 20, 2026, 3:27:39 PM (2 days ago) Feb 20
        to Johannes Henkel, AI Code Reviewer, Scott Haseley, Chromium LUCI CQ, AyeAye, blink-...@chromium.org, speed-metrics...@chromium.org, core-timi...@chromium.org, blink-rev...@chromium.org
        Attention needed from Scott Haseley

        Michal Mocny added 4 comments

        File third_party/blink/renderer/core/timing/responsiveness_metrics.h
        Line 142, Patchset 7 (Latest): // in PerformanceObservers and the Performance Timeline
        Johannes Henkel . resolved
        ```suggestion
        // in PerformanceObservers and the Performance Timeline.
        ```
        Michal Mocny

        Done

        File third_party/blink/renderer/core/timing/responsiveness_metrics.cc
        Line 374, Patchset 7 (Latest): // same logic, so we need to ignore the return value when InteractionId is
        Johannes Henkel . resolved

        This part of the comment... are we actually ignoring some return value?
        It seems in l. 377 the return value from SetPointerIdAndRecordLatency is used and it's the only way to return false from TryAssignInteractionId.

        Michal Mocny

        This is some old comment that doesn't make sense to me either, will just remove it.

        I think what it is trying to say is that this can return false :P

        Johannes Henkel . resolved

        I think the justification for "return true" comes from SetKeyIdAndRecord latency guaranteeing that it's going to call entry->SetInteractionIdInfo. Do you want to put some check statement that interaction id info is actually set?

        Michal Mocny

        I don't want to change the existing behaviour in this patch, esp since the next patch changes behaviour. We already have a CHECK for interactionID from the caller of this function, when we actually do the reporting to performance timeline.

        File third_party/blink/renderer/core/timing/window_performance.cc
        Line 1416, Patchset 7 (Latest): // This won't have an interactionId if it is a mousedown, but, I don't
        // know any platform that will emit mousedown without pointerdown, so this
        Johannes Henkel . resolved

        This comment is a little funny, as the reader may not know who 'I' is, or which platforms 'I' knows. :-)

        Michal Mocny

        :) fair!

        We still have tests for it so I left it, and it will go away. I can probably just remove the comment as useless.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Scott Haseley
        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: I81528cced7a4c93a227f939b91e837236a6a6964
          Gerrit-Change-Number: 7595405
          Gerrit-PatchSet: 7
          Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
          Gerrit-Reviewer: Johannes Henkel <joha...@chromium.org>
          Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
          Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
          Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
          Gerrit-Attention: Scott Haseley <shas...@chromium.org>
          Gerrit-Comment-Date: Fri, 20 Feb 2026 20:27:33 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Johannes Henkel <joha...@chromium.org>
          satisfied_requirement
          open
          diffy

          Scott Haseley (Gerrit)

          unread,
          Feb 20, 2026, 4:11:55 PM (2 days ago) Feb 20
          to Michal Mocny, Johannes Henkel, AI Code Reviewer, Chromium LUCI CQ, AyeAye, blink-...@chromium.org, speed-metrics...@chromium.org, core-timi...@chromium.org, blink-rev...@chromium.org
          Attention needed from Michal Mocny

          Scott Haseley voted and added 4 comments

          Votes added by Scott Haseley

          Code-Review+1

          4 comments

          Patchset-level comments
          File-level comment, Patchset 8 (Latest):
          Scott Haseley . resolved

          LGTM. A few optional/future things; feel free to ignore all for this patch.

          File third_party/blink/renderer/core/timing/responsiveness_metrics.h
          Line 144, Patchset 8 (Latest): EventTimestamps event_timestamps);
          Scott Haseley . resolved

          Also follow-up maybe: should this struct be copied every time it's passed around, or should we pass by const ref (here and above)?

          File third_party/blink/renderer/core/timing/window_performance.h
          Line 241, Patchset 8 (Latest): Member<PerformanceEventTiming> event_timing_entry);
          Scott Haseley . resolved

          I know this was here, but this should be a raw pointer, not a Member<>. Can we fix this as a follow-up?

          File third_party/blink/renderer/core/timing/window_performance.cc
          Line 1162, Patchset 8 (Latest): // interactionID. The spec for Event Timing was updated this way.
          Scott Haseley . unresolved

          nit/optional: Consider linking to the spec section instead, although I'd assume this is going away?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Michal Mocny
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • 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: I81528cced7a4c93a227f939b91e837236a6a6964
            Gerrit-Change-Number: 7595405
            Gerrit-PatchSet: 8
            Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
            Gerrit-Reviewer: Johannes Henkel <joha...@chromium.org>
            Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
            Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
            Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
            Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
            Gerrit-Comment-Date: Fri, 20 Feb 2026 21:11:45 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Michal Mocny (Gerrit)

            unread,
            Feb 20, 2026, 4:15:57 PM (2 days ago) Feb 20
            to Scott Haseley, Johannes Henkel, AI Code Reviewer, Chromium LUCI CQ, AyeAye, blink-...@chromium.org, speed-metrics...@chromium.org, core-timi...@chromium.org, blink-rev...@chromium.org

            Michal Mocny added 4 comments

            Patchset-level comments
            Michal Mocny . resolved

            ty all!

            File third_party/blink/renderer/core/timing/responsiveness_metrics.h
            Line 144, Patchset 8 (Latest): EventTimestamps event_timestamps);
            Scott Haseley . resolved

            Also follow-up maybe: should this struct be copied every time it's passed around, or should we pass by const ref (here and above)?

            Michal Mocny

            Next patch deletes it!

            File third_party/blink/renderer/core/timing/window_performance.h
            Line 241, Patchset 8 (Latest): Member<PerformanceEventTiming> event_timing_entry);
            Scott Haseley . resolved

            I know this was here, but this should be a raw pointer, not a Member<>. Can we fix this as a follow-up?

            Michal Mocny

            Ah I think this still needs a fix, thanks.

            File third_party/blink/renderer/core/timing/window_performance.cc
            Line 1162, Patchset 8 (Latest): // interactionID. The spec for Event Timing was updated this way.
            Scott Haseley . resolved

            nit/optional: Consider linking to the spec section instead, although I'd assume this is going away?

            Michal Mocny

            I think this part, even after the new rework, should have a spec link.

            In general, I will work on event-timing spec to update and then add links to the final impleemntation for all the parts.

            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: I81528cced7a4c93a227f939b91e837236a6a6964
              Gerrit-Change-Number: 7595405
              Gerrit-PatchSet: 8
              Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
              Gerrit-Reviewer: Johannes Henkel <joha...@chromium.org>
              Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
              Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
              Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
              Gerrit-Comment-Date: Fri, 20 Feb 2026 21:15:53 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              Comment-In-Reply-To: Scott Haseley <shas...@chromium.org>
              satisfied_requirement
              open
              diffy

              Michal Mocny (Gerrit)

              unread,
              Feb 20, 2026, 4:17:09 PM (2 days ago) Feb 20
              to Scott Haseley, Johannes Henkel, AI Code Reviewer, Chromium LUCI CQ, AyeAye, blink-...@chromium.org, speed-metrics...@chromium.org, core-timi...@chromium.org, blink-rev...@chromium.org

              Michal Mocny 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: I81528cced7a4c93a227f939b91e837236a6a6964
              Gerrit-Change-Number: 7595405
              Gerrit-PatchSet: 8
              Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
              Gerrit-Reviewer: Johannes Henkel <joha...@chromium.org>
              Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
              Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
              Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
              Gerrit-Comment-Date: Fri, 20 Feb 2026 21:17:05 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              open
              diffy

              Chromium LUCI CQ (Gerrit)

              unread,
              Feb 20, 2026, 4:37:39 PM (2 days ago) Feb 20
              to Michal Mocny, Scott Haseley, Johannes Henkel, AI Code Reviewer, AyeAye, blink-...@chromium.org, speed-metrics...@chromium.org, core-timi...@chromium.org, blink-rev...@chromium.org

              Chromium LUCI CQ submitted the change

              Change information

              Commit message:
              [event-timing]: Move interaction ID assignment to ResponsivenessMetrics

              This refactoring separates interaction ID assignment and metrics
              recording from the WindowPerformance class, moving the logic into
              ResponsivenessMetrics to improve architectural separation and prepare
              for subsequent performance timing updates.

              Also cleans up the FirstInput mechanism which relies on making a copy of
              the EventTiming entry. In this patch that still relies on the old school
              FID state machine in order to keep existing semantics, but it takes us a
              step closer to just being "report the first interaction event timing".

              Summary of Changes:
              - Migrated interaction ID logic from WindowPerformance to ResponsivenessMetrics.
              - Clean up FirstInput reporting related logic.
              - Renamed internal WindowPerformance methods for better clarity:
              - ReportEventTimings -> TryFlushEventTimingQueue
              - ReportEvent -> FlushEventTiming
              - DispatchFirstInputTiming -> TryReportAsFirstInputTiming
              - NotifyAndAddEventTimingBuffer -> ReportEventTimingToPerformanceTimeline

              This is a non-functional refactoring to prepare for future feature work.
              Bug: 350934029, 328902994, 331806288
              Change-Id: I81528cced7a4c93a227f939b91e837236a6a6964
              Reviewed-by: Johannes Henkel <joha...@chromium.org>
              Commit-Queue: Michal Mocny <mmo...@chromium.org>
              Reviewed-by: Scott Haseley <shas...@chromium.org>
              Cr-Commit-Position: refs/heads/main@{#1588065}
              Files:
              • M third_party/blink/renderer/core/timing/responsiveness_metrics.cc
              • M third_party/blink/renderer/core/timing/responsiveness_metrics.h
              • M third_party/blink/renderer/core/timing/window_performance.cc
              • M third_party/blink/renderer/core/timing/window_performance.h
              • M third_party/blink/renderer/core/timing/window_performance_test.cc
              Change size: M
              Delta: 5 files changed, 117 insertions(+), 116 deletions(-)
              Branch: refs/heads/main
              Submit Requirements:
              • requirement satisfiedCode-Review: +1 by Scott Haseley, +1 by Johannes Henkel
              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: I81528cced7a4c93a227f939b91e837236a6a6964
              Gerrit-Change-Number: 7595405
              Gerrit-PatchSet: 9
              Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
              Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
              open
              diffy
              satisfied_requirement
              Reply all
              Reply to author
              Forward
              0 new messages