Reland "Extract InspectorInjectedScriptManager from InspectorPageAgent" [chromium/src : main]

1 view
Skip to first unread message

rubber-stamper@appspot.gserviceaccount.com (Gerrit)

unread,
May 1, 2026, 6:36:22 PMĀ (3 days ago)Ā May 1
to Andrey Kosyakov, luci-bi...@appspot.gserviceaccount.com, Dmitry Gozman, Chromium LUCI CQ, Victor Tan, Scott Haseley, Alex Rudenko, android-bu...@system.gserviceaccount.com, AI Code Reviewer, chromium...@chromium.org, devtools-re...@chromium.org, blink-...@chromium.org
Attention needed from Alex Rudenko, Dmitry Gozman, Scott Haseley and Victor Tan

rubber-...@appspot.gserviceaccount.com voted Bot-Commit+1

Bot-Commit+1
Open in Gerrit

Related details

Attention is currently required from:
  • Alex Rudenko
  • Dmitry Gozman
  • Scott Haseley
  • Victor Tan
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: I99cb92ff4a9760180c69b606cffba00403bcc445
Gerrit-Change-Number: 7810658
Gerrit-PatchSet: 1
Gerrit-Owner: Andrey Kosyakov <ca...@chromium.org>
Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Dmitry Gozman <dgo...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@google.com>
Gerrit-Reviewer: Victor Tan <vict...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-Attention: Dmitry Gozman <dgo...@chromium.org>
Gerrit-Attention: Victor Tan <vict...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@google.com>
Gerrit-Attention: Alex Rudenko <alexr...@chromium.org>
Gerrit-Comment-Date: Fri, 01 May 2026 22:36:10 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

rubber-stamper@appspot.gserviceaccount.com (Gerrit)

unread,
May 1, 2026, 6:41:18 PMĀ (3 days ago)Ā May 1
to Andrey Kosyakov, luci-bi...@appspot.gserviceaccount.com, Dmitry Gozman, Chromium LUCI CQ, Victor Tan, Scott Haseley, Alex Rudenko, android-bu...@system.gserviceaccount.com, AI Code Reviewer, chromium...@chromium.org, devtools-re...@chromium.org, blink-...@chromium.org
Attention needed from Alex Rudenko, Dmitry Gozman, Scott Haseley and Victor Tan

Message from rubber-...@appspot.gserviceaccount.com

Gerrit GetPureRevert API does not mark this CL as a pure revert. Learn more: go/rubber-stamper-user-guide.

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Rudenko
  • Dmitry Gozman
  • Scott Haseley
  • Victor Tan
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: I99cb92ff4a9760180c69b606cffba00403bcc445
    Gerrit-Change-Number: 7810658
    Gerrit-PatchSet: 2
    Gerrit-Owner: Andrey Kosyakov <ca...@chromium.org>
    Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
    Gerrit-Reviewer: Andrey Kosyakov <ca...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Dmitry Gozman <dgo...@chromium.org>
    Gerrit-Reviewer: Scott Haseley <shas...@google.com>
    Gerrit-Reviewer: Victor Tan <vict...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-Attention: Dmitry Gozman <dgo...@chromium.org>
    Gerrit-Attention: Victor Tan <vict...@chromium.org>
    Gerrit-Attention: Scott Haseley <shas...@google.com>
    Gerrit-Attention: Alex Rudenko <alexr...@chromium.org>
    Gerrit-Comment-Date: Fri, 01 May 2026 22:41:08 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Dmitry Gozman (Gerrit)

    unread,
    May 2, 2026, 4:39:04 AMĀ (2 days ago)Ā May 2
    to Andrey Kosyakov, luci-bi...@appspot.gserviceaccount.com, Chromium LUCI CQ, Victor Tan, Scott Haseley, Alex Rudenko, android-bu...@system.gserviceaccount.com, AI Code Reviewer, chromium...@chromium.org, devtools-re...@chromium.org, blink-...@chromium.org
    Attention needed from Alex Rudenko, Andrey Kosyakov, Scott Haseley and Victor Tan

    Dmitry Gozman voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alex Rudenko
    • Andrey Kosyakov
    • Scott Haseley
    • Victor Tan
    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: I99cb92ff4a9760180c69b606cffba00403bcc445
      Gerrit-Change-Number: 7810658
      Gerrit-PatchSet: 2
      Gerrit-Owner: Andrey Kosyakov <ca...@chromium.org>
      Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
      Gerrit-Reviewer: Andrey Kosyakov <ca...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Dmitry Gozman <dgo...@chromium.org>
      Gerrit-Reviewer: Scott Haseley <shas...@google.com>
      Gerrit-Reviewer: Victor Tan <vict...@chromium.org>
      Gerrit-Attention: Andrey Kosyakov <ca...@chromium.org>
      Gerrit-Attention: Victor Tan <vict...@chromium.org>
      Gerrit-Attention: Scott Haseley <shas...@google.com>
      Gerrit-Attention: Alex Rudenko <alexr...@chromium.org>
      Gerrit-Comment-Date: Sat, 02 May 2026 08:38:47 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Alex Rudenko (Gerrit)

      unread,
      2:27 AMĀ (13 hours ago)Ā 2:27 AM
      to Andrey Kosyakov, Dmitry Gozman, luci-bi...@appspot.gserviceaccount.com, Chromium LUCI CQ, Victor Tan, Scott Haseley, android-bu...@system.gserviceaccount.com, AI Code Reviewer, chromium...@chromium.org, devtools-re...@chromium.org, blink-...@chromium.org
      Attention needed from Andrey Kosyakov, Scott Haseley and Victor Tan

      Alex Rudenko added 1 comment

      File third_party/blink/renderer/core/inspector/inspector_page_agent.cc
      Line 1980, Patchset 2 (Latest): injected_script_manager_ = nullptr;
      Alex Rudenko . unresolved

      Is it possible that this would gc the injected script manager (as expected), destroying the fields it creates and leaving the dangling pointers to the injected script manager in the inspector state?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Andrey Kosyakov
      • Scott Haseley
      • Victor Tan
      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: I99cb92ff4a9760180c69b606cffba00403bcc445
        Gerrit-Change-Number: 7810658
        Gerrit-PatchSet: 2
        Gerrit-Owner: Andrey Kosyakov <ca...@chromium.org>
        Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
        Gerrit-Reviewer: Andrey Kosyakov <ca...@chromium.org>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Dmitry Gozman <dgo...@chromium.org>
        Gerrit-Reviewer: Scott Haseley <shas...@google.com>
        Gerrit-Reviewer: Victor Tan <vict...@chromium.org>
        Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
        Gerrit-Attention: Andrey Kosyakov <ca...@chromium.org>
        Gerrit-Attention: Victor Tan <vict...@chromium.org>
        Gerrit-Attention: Scott Haseley <shas...@google.com>
        Gerrit-Comment-Date: Mon, 04 May 2026 06:27:09 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Andrey Kosyakov (Gerrit)

        unread,
        12:39 PMĀ (3 hours ago)Ā 12:39 PM
        to Dmitry Gozman, luci-bi...@appspot.gserviceaccount.com, Chromium LUCI CQ, Victor Tan, Scott Haseley, Alex Rudenko, android-bu...@system.gserviceaccount.com, AI Code Reviewer, chromium...@chromium.org, devtools-re...@chromium.org, blink-...@chromium.org
        Attention needed from Alex Rudenko, Scott Haseley and Victor Tan

        Andrey Kosyakov added 1 comment

        File third_party/blink/renderer/core/inspector/inspector_page_agent.cc
        Line 1980, Patchset 2 (Latest): injected_script_manager_ = nullptr;
        Alex Rudenko . unresolved

        Is it possible that this would gc the injected script manager (as expected), destroying the fields it creates and leaving the dangling pointers to the injected script manager in the inspector state?

        Andrey Kosyakov

        That's a good catch. I don't think this is practically significant because we wouldn't touch any of the fields after Dispose(), but let me take care of this just in case.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Alex Rudenko
        • Scott Haseley
        • Victor Tan
        Gerrit-Attention: Victor Tan <vict...@chromium.org>
        Gerrit-Attention: Scott Haseley <shas...@google.com>
        Gerrit-Attention: Alex Rudenko <alexr...@chromium.org>
        Gerrit-Comment-Date: Mon, 04 May 2026 16:38:48 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Alex Rudenko <alexr...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy
        Reply all
        Reply to author
        Forward
        0 new messages