[EventTiming] Add targetIdentifier string in case Node is disconnected [chromium/src : main]

0 views
Skip to first unread message

Michal Mocny (Gerrit)

unread,
Sep 19, 2025, 11:33:20 AM (5 days ago) Sep 19
to Noam Rosenthal, Scott Haseley, Chromium LUCI CQ, AyeAye, Alexis Menard, chromium...@chromium.org, Olga Gerchikov, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, core-timi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, lighthouse-eng-extern...@google.com, speed-metrics...@chromium.org
Attention needed from Noam Rosenthal and Scott Haseley

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Noam Rosenthal
  • Scott Haseley
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: Ibafa01ac4de5f21a5d72a558abcaf0306a351fd0
Gerrit-Change-Number: 6967813
Gerrit-PatchSet: 2
Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
Gerrit-Reviewer: Noam Rosenthal <nrose...@google.com>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-CC: Alexis Menard <alexis...@intel.com>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Attention: Noam Rosenthal <nrose...@google.com>
Gerrit-Comment-Date: Fri, 19 Sep 2025 15:33:15 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Scott Haseley (Gerrit)

unread,
Sep 19, 2025, 12:31:54 PM (5 days ago) Sep 19
to Michal Mocny, Noam Rosenthal, Chromium LUCI CQ, AyeAye, Alexis Menard, chromium...@chromium.org, Olga Gerchikov, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, core-timi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, lighthouse-eng-extern...@google.com, speed-metrics...@chromium.org
Attention needed from Michal Mocny and Noam Rosenthal

Scott Haseley added 4 comments

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

Nice, looks pretty good.

Commit Message
Line 7, Patchset 2 (Latest):[EventTiming] Add targetIdentifier string in case Node is disconnected
Scott Haseley . unresolved

Is there an I2P, chromestatus entry, or explainer for this? I think it would be good to have something before landing code, since this will require blink-dev intents.

File third_party/blink/renderer/core/frame/animation_frame_timing_monitor.cc
Line 24, Patchset 2 (Latest):#include "third_party/blink/renderer/core/timing/timing_shared.h"
File third_party/blink/renderer/core/timing/performance_event_timing.cc
Line 78, Patchset 2 (Latest): EventTarget* target,
Scott Haseley . unresolved

Is there ever a case where the EventTarget is not a Node? I would think that trusted input events would always target a node? Just wondering if this part needs to change, given Node IsA(n) EventTarget.

Open in Gerrit

Related details

Attention is currently required from:
  • Michal Mocny
  • Noam Rosenthal
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ibafa01ac4de5f21a5d72a558abcaf0306a351fd0
    Gerrit-Change-Number: 6967813
    Gerrit-PatchSet: 2
    Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Noam Rosenthal <nrose...@google.com>
    Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
    Gerrit-CC: Alexis Menard <alexis...@intel.com>
    Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
    Gerrit-Attention: Noam Rosenthal <nrose...@google.com>
    Gerrit-Comment-Date: Fri, 19 Sep 2025 16:31:44 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Michal Mocny (Gerrit)

    unread,
    Sep 19, 2025, 1:03:11 PM (5 days ago) Sep 19
    to Noam Rosenthal, Scott Haseley, Chromium LUCI CQ, AyeAye, Alexis Menard, chromium...@chromium.org, Olga Gerchikov, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, core-timi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, lighthouse-eng-extern...@google.com, speed-metrics...@chromium.org
    Attention needed from Noam Rosenthal and Scott Haseley

    Michal Mocny added 3 comments

    Commit Message
    Line 7, Patchset 2 (Latest):[EventTiming] Add targetIdentifier string in case Node is disconnected
    Scott Haseley . unresolved

    Is there an I2P, chromestatus entry, or explainer for this? I think it would be good to have something before landing code, since this will require blink-dev intents.

    Michal Mocny

    Not yet.

    After that, I will update to create a chromestatus entry.

    File third_party/blink/renderer/core/frame/animation_frame_timing_monitor.cc
    Line 24, Patchset 2 (Latest):#include "third_party/blink/renderer/core/timing/timing_shared.h"
    Michal Mocny

    Hash, yeah actually that was the initial name I used and it got renamed as part of some iteration I will move it.

    Another option is to just put it into some existing shared header...

    File third_party/blink/renderer/core/timing/performance_event_timing.cc
    Line 78, Patchset 2 (Latest): EventTarget* target,
    Scott Haseley . unresolved

    Is there ever a case where the EventTarget is not a Node? I would think that trusted input events would always target a node? Just wondering if this part needs to change, given Node IsA(n) EventTarget.

    Michal Mocny

    I don't actually know.

    We are and continue to enforce that only EventTargets that are nodes are exposed as the target property, but since the loaf script invoker attribution works for targets that are not nodes, I figured I might as well offer the same support here.

    Even if it doesn't ever do anything, i still think it cleans things up to not have the caller have to do the conversion. I think.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Noam Rosenthal
    • Scott Haseley
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ibafa01ac4de5f21a5d72a558abcaf0306a351fd0
    Gerrit-Change-Number: 6967813
    Gerrit-PatchSet: 2
    Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Noam Rosenthal <nrose...@google.com>
    Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
    Gerrit-CC: Alexis Menard <alexis...@intel.com>
    Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Attention: Scott Haseley <shas...@chromium.org>
    Gerrit-Attention: Noam Rosenthal <nrose...@google.com>
    Gerrit-Comment-Date: Fri, 19 Sep 2025 17:03:05 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Scott Haseley <shas...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    AI Code Reviewer (Gerrit)

    unread,
    Sep 19, 2025, 1:15:05 PM (5 days ago) Sep 19
    to Michal Mocny, Noam Rosenthal, Scott Haseley, Chromium LUCI CQ, AyeAye, Alexis Menard, chromium...@chromium.org, Olga Gerchikov, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, core-timi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, lighthouse-eng-extern...@google.com, speed-metrics...@chromium.org
    Attention needed from Noam Rosenthal and Scott Haseley

    AI Code Reviewer added 2 comments

    File third_party/blink/renderer/core/timing/performance_event_timing.h
    Line 108, Patchset 3 (Latest): EventTimingReportingInfo repoerting_info,
    AI Code Reviewer . unresolved

    nit: There appears to be a typo in the parameter name `repoerting_info`; it should likely be `reporting_info`. (Blink Style Guide: Naming - Be Descriptive)

    _To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
    **Done** | **Won't fix**: reason | **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 95, Patchset 3 (Latest): EventTimingReportingInfo reporting_info,
    AI Code Reviewer . unresolved

    Blink Style Guide: May leave obvious parameter names out of function declarations. Please consider omitting the names for parameters `reporting_info`, `target`, and `source` in this declaration, as their types are self-descriptive. Parameter names should be included in the implementation file.

    _To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
    **Done** | **Won't fix**: reason | **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:
    • Noam Rosenthal
    • Scott Haseley
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ibafa01ac4de5f21a5d72a558abcaf0306a351fd0
    Gerrit-Change-Number: 6967813
    Gerrit-PatchSet: 3
    Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Noam Rosenthal <nrose...@google.com>
    Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Alexis Menard <alexis...@intel.com>
    Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Attention: Scott Haseley <shas...@chromium.org>
    Gerrit-Attention: Noam Rosenthal <nrose...@google.com>
    Gerrit-Comment-Date: Fri, 19 Sep 2025 17:15:01 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Michal Mocny (Gerrit)

    unread,
    Sep 22, 2025, 1:04:22 PM (2 days ago) Sep 22
    to AI Code Reviewer, Noam Rosenthal, Scott Haseley, Chromium LUCI CQ, AyeAye, Alexis Menard, chromium...@chromium.org, Olga Gerchikov, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, core-timi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, lighthouse-eng-extern...@google.com, speed-metrics...@chromium.org
    Attention needed from Noam Rosenthal and Scott Haseley

    Michal Mocny added 2 comments

    File third_party/blink/renderer/core/timing/performance_event_timing.h
    Line 108, Patchset 3: EventTimingReportingInfo repoerting_info,
    AI Code Reviewer . resolved

    nit: There appears to be a typo in the parameter name `repoerting_info`; it should likely be `reporting_info`. (Blink Style Guide: Naming - Be Descriptive)

    _To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
    **Done** | **Won't fix**: reason | **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

    Line 95, Patchset 3: EventTimingReportingInfo reporting_info,
    AI Code Reviewer . resolved

    Blink Style Guide: May leave obvious parameter names out of function declarations. Please consider omitting the names for parameters `reporting_info`, `target`, and `source` in this declaration, as their types are self-descriptive. Parameter names should be included in the implementation file.

    _To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
    **Done** | **Won't fix**: reason | **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:
    • Noam Rosenthal
    • Scott Haseley
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ibafa01ac4de5f21a5d72a558abcaf0306a351fd0
    Gerrit-Change-Number: 6967813
    Gerrit-PatchSet: 5
    Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Noam Rosenthal <nrose...@google.com>
    Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Alexis Menard <alexis...@intel.com>
    Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Attention: Scott Haseley <shas...@chromium.org>
    Gerrit-Attention: Noam Rosenthal <nrose...@google.com>
    Gerrit-Comment-Date: Mon, 22 Sep 2025 17:04:16 +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

    Michal Mocny (Gerrit)

    unread,
    Sep 23, 2025, 2:51:27 PM (19 hours ago) Sep 23
    to AI Code Reviewer, Noam Rosenthal, Scott Haseley, Chromium LUCI CQ, AyeAye, Alexis Menard, chromium...@chromium.org, Olga Gerchikov, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, core-timi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, lighthouse-eng-extern...@google.com, speed-metrics...@chromium.org
    Attention needed from Noam Rosenthal and Scott Haseley

    Michal Mocny added 4 comments

    Patchset-level comments
    File-level comment, Patchset 7 (Latest):
    Michal Mocny . resolved

    I think this is ready for review

    Commit Message
    Line 7, Patchset 2:[EventTiming] Add targetIdentifier string in case Node is disconnected
    Scott Haseley . resolved

    Is there an I2P, chromestatus entry, or explainer for this? I think it would be good to have something before landing code, since this will require blink-dev intents.

    Michal Mocny

    Not yet.

    After that, I will update to create a chromestatus entry.

    Michal Mocny

    Done, and updated the COMMIT message with links.

    File third_party/blink/renderer/core/frame/animation_frame_timing_monitor.cc
    Line 24, Patchset 2:#include "third_party/blink/renderer/core/timing/timing_shared.h"
    Scott Haseley . resolved

    nit/optional: timing_utils.h perhaps?

    Code search for precedent in blink/renderer:

    98 instances of "_utils.h": https://source.chromium.org/search?q=f:%22_utils.h%22&sq=&ss=chromium%2Fchromium%2Fsrc:third_party%2Fblink%2Frenderer%2F

    0 of "_shared.h": https://source.chromium.org/search?q=f:%22_shared.h%22&sq=&ss=chromium%2Fchromium%2Fsrc:third_party%2Fblink%2Frenderer%2F

    Michal Mocny

    Hash, yeah actually that was the initial name I used and it got renamed as part of some iteration I will move it.

    Another option is to just put it into some existing shared header...

    Michal Mocny

    Done

    File third_party/blink/renderer/core/timing/performance_event_timing.cc
    Line 78, Patchset 2: EventTarget* target,
    Scott Haseley . resolved

    Is there ever a case where the EventTarget is not a Node? I would think that trusted input events would always target a node? Just wondering if this part needs to change, given Node IsA(n) EventTarget.

    Michal Mocny

    I don't actually know.

    We are and continue to enforce that only EventTargets that are nodes are exposed as the target property, but since the loaf script invoker attribution works for targets that are not nodes, I figured I might as well offer the same support here.

    Even if it doesn't ever do anything, i still think it cleans things up to not have the caller have to do the conversion. I think.

    Michal Mocny

    SetTarget will remain nullptr if target is not a Node, but will now get an identifier string (InterfaceName).

    I think you are right that for Events which are dispatched against HitTest targets that this will always have a Node.

    However, we do have a proposal to add more event types to Event Timing, for example interactions with browser UI that fire e.g. navigate/popstate events or otherwise. These would not have a Node target.

    I think we can leave this to be future proof in this way?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Noam Rosenthal
    • Scott Haseley
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    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: Ibafa01ac4de5f21a5d72a558abcaf0306a351fd0
    Gerrit-Change-Number: 6967813
    Gerrit-PatchSet: 7
    Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Noam Rosenthal <nrose...@google.com>
    Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Alexis Menard <alexis...@intel.com>
    Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Attention: Scott Haseley <shas...@chromium.org>
    Gerrit-Attention: Noam Rosenthal <nrose...@google.com>
    Gerrit-Comment-Date: Tue, 23 Sep 2025 18:51:20 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Scott Haseley <shas...@chromium.org>
    Comment-In-Reply-To: Michal Mocny <mmo...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Scott Haseley (Gerrit)

    unread,
    Sep 23, 2025, 8:35:29 PM (13 hours ago) Sep 23
    to Michal Mocny, AI Code Reviewer, Noam Rosenthal, Chromium LUCI CQ, AyeAye, Alexis Menard, chromium...@chromium.org, Olga Gerchikov, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, core-timi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, lighthouse-eng-extern...@google.com, speed-metrics...@chromium.org
    Attention needed from Michal Mocny and Noam Rosenthal

    Scott Haseley voted and added 4 comments

    Votes added by Scott Haseley

    Code-Review+1
    Commit-Queue+1

    4 comments

    Patchset-level comments
    Scott Haseley . resolved

    LGTM, but I think you'll need to update webexposed/ (failures in earlier patchset). I'll kick off a dry run.

    File third_party/blink/renderer/core/frame/animation_frame_timing_monitor.cc
    Line 24, Patchset 2:#include "third_party/blink/renderer/core/timing/timing_shared.h"
    Scott Haseley . resolved

    nit/optional: timing_utils.h perhaps?

    Code search for precedent in blink/renderer:

    98 instances of "_utils.h": https://source.chromium.org/search?q=f:%22_utils.h%22&sq=&ss=chromium%2Fchromium%2Fsrc:third_party%2Fblink%2Frenderer%2F

    0 of "_shared.h": https://source.chromium.org/search?q=f:%22_shared.h%22&sq=&ss=chromium%2Fchromium%2Fsrc:third_party%2Fblink%2Frenderer%2F

    Michal Mocny

    Hash, yeah actually that was the initial name I used and it got renamed as part of some iteration I will move it.

    Another option is to just put it into some existing shared header...

    Michal Mocny

    Done

    Scott Haseley

    Another option is to just put it into some existing shared header...

    Possibly a static method on WindowPerformance, if it's tied to that and makes sense spec-wise? I'm fine either way.

    File third_party/blink/renderer/core/timing/performance_event_timing.cc
    Line 78, Patchset 2: EventTarget* target,
    Scott Haseley . resolved

    Is there ever a case where the EventTarget is not a Node? I would think that trusted input events would always target a node? Just wondering if this part needs to change, given Node IsA(n) EventTarget.

    Michal Mocny

    I don't actually know.

    We are and continue to enforce that only EventTargets that are nodes are exposed as the target property, but since the loaf script invoker attribution works for targets that are not nodes, I figured I might as well offer the same support here.

    Even if it doesn't ever do anything, i still think it cleans things up to not have the caller have to do the conversion. I think.

    Michal Mocny

    SetTarget will remain nullptr if target is not a Node, but will now get an identifier string (InterfaceName).

    I think you are right that for Events which are dispatched against HitTest targets that this will always have a Node.

    However, we do have a proposal to add more event types to Event Timing, for example interactions with browser UI that fire e.g. navigate/popstate events or otherwise. These would not have a Node target.

    I think we can leave this to be future proof in this way?

    Scott Haseley

    SGTM.

    File third_party/blink/renderer/core/timing/window_performance.cc
    Line 701, Patchset 6: entry->SetTarget(event.RawTarget());
    Scott Haseley . unresolved

    This is outside the scope of this CL, but is it okay to use `RawTarget()` here? The comments for that say it isn't web-exposed, but the entry is exposing it. Looks like `event.target()` has additional checks for pseudo elements, which are missing in PerformanceEventTiming.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Michal Mocny
    • Noam Rosenthal
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ibafa01ac4de5f21a5d72a558abcaf0306a351fd0
    Gerrit-Change-Number: 6967813
    Gerrit-PatchSet: 7
    Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Noam Rosenthal <nrose...@google.com>
    Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Alexis Menard <alexis...@intel.com>
    Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
    Gerrit-Attention: Noam Rosenthal <nrose...@google.com>
    Gerrit-Comment-Date: Wed, 24 Sep 2025 00:35:18 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Noam Rosenthal (Gerrit)

    unread,
    5:15 AM (5 hours ago) 5:15 AM
    to Michal Mocny, Scott Haseley, AI Code Reviewer, Chromium LUCI CQ, AyeAye, Alexis Menard, chromium...@chromium.org, Olga Gerchikov, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, core-timi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, lighthouse-eng-extern...@google.com, speed-metrics...@chromium.org
    Attention needed from Michal Mocny and Scott Haseley

    Noam Rosenthal added 1 comment

    File third_party/blink/renderer/core/timing/performance_event_timing.cc
    Line 199, Patchset 7 (Latest): builder.AddString("targetIdentifier", targetIdentifier());
    Noam Rosenthal . unresolved

    You probably want to flag-protect this

    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
    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: Ibafa01ac4de5f21a5d72a558abcaf0306a351fd0
    Gerrit-Change-Number: 6967813
    Gerrit-PatchSet: 7
    Gerrit-Owner: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Michal Mocny <mmo...@chromium.org>
    Gerrit-Reviewer: Noam Rosenthal <nrose...@google.com>
    Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Alexis Menard <alexis...@intel.com>
    Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Attention: Scott Haseley <shas...@chromium.org>
    Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
    Gerrit-Comment-Date: Wed, 24 Sep 2025 09:15:35 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages