[PEPC] Refactor request logic to fix click-to-re-grant regression [chromium/src : main]

0 views
Skip to first unread message

Thomas Nguyen (Gerrit)

unread,
Oct 16, 2025, 4:22:52 PM (3 days ago) Oct 16
to Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
Attention needed from Joey Arhar

Thomas Nguyen added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Thomas Nguyen . resolved

Hi Joey, could you please take a look at this?

This change fixes a regression bug, and I added a new test for it. Additionally, I tidied up the code a bit, got rid of some duplicate, and added that clearWatch correctly.

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
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: I2cd36d01ca46a9c0d41d0a391fabae3e509bbbda
Gerrit-Change-Number: 7048679
Gerrit-PatchSet: 3
Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Thu, 16 Oct 2025 20:22:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

AI Code Reviewer (Gerrit)

unread,
Oct 16, 2025, 4:29:58 PM (3 days ago) Oct 16
to Thomas Nguyen, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
Attention needed from Joey Arhar

AI Code Reviewer added 1 comment

File third_party/blink/renderer/core/html/html_geolocation_element.h
Line 94, Patchset 4 (Latest): void MaybeTriggerAutolocate(ForceAutolocate force);
AI Code Reviewer . unresolved

Blink Style Guide: Naming - May leave obvious parameter names out of function declarations. Obvious parameter names should be omitted from declarations in header files when the type name makes the purpose clear. Please change this to `void MaybeTriggerAutolocate(ForceAutolocate);`.

_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:
  • Joey Arhar
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not 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: I2cd36d01ca46a9c0d41d0a391fabae3e509bbbda
    Gerrit-Change-Number: 7048679
    Gerrit-PatchSet: 4
    Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Thu, 16 Oct 2025 20:29:55 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Thomas Nguyen (Gerrit)

    unread,
    Oct 16, 2025, 4:33:13 PM (3 days ago) Oct 16
    to AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
    Attention needed from Joey Arhar

    Thomas Nguyen added 1 comment

    File third_party/blink/renderer/core/html/html_geolocation_element.h
    Line 94, Patchset 4 (Latest): void MaybeTriggerAutolocate(ForceAutolocate force);
    AI Code Reviewer . resolved

    Blink Style Guide: Naming - May leave obvious parameter names out of function declarations. Obvious parameter names should be omitted from declarations in header files when the type name makes the purpose clear. Please change this to `void MaybeTriggerAutolocate(ForceAutolocate);`.

    _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)_

    Thomas Nguyen

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joey Arhar
    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: I2cd36d01ca46a9c0d41d0a391fabae3e509bbbda
      Gerrit-Change-Number: 7048679
      Gerrit-PatchSet: 4
      Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-Attention: Joey Arhar <jar...@chromium.org>
      Gerrit-Comment-Date: Thu, 16 Oct 2025 20:32:56 +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

      Joey Arhar (Gerrit)

      unread,
      Oct 17, 2025, 5:03:44 PM (2 days ago) Oct 17
      to Thomas Nguyen, AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
      Attention needed from Thomas Nguyen

      Joey Arhar voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Thomas Nguyen
      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: I2cd36d01ca46a9c0d41d0a391fabae3e509bbbda
      Gerrit-Change-Number: 7048679
      Gerrit-PatchSet: 5
      Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-Attention: Thomas Nguyen <tun...@chromium.org>
      Gerrit-Comment-Date: Fri, 17 Oct 2025 21:03:33 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Thomas Nguyen (Gerrit)

      unread,
      Oct 17, 2025, 5:26:07 PM (2 days ago) Oct 17
      to AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org

      Thomas Nguyen 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: I2cd36d01ca46a9c0d41d0a391fabae3e509bbbda
      Gerrit-Change-Number: 7048679
      Gerrit-PatchSet: 5
      Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-Comment-Date: Fri, 17 Oct 2025 21:25:48 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Thomas Nguyen (Gerrit)

      unread,
      Oct 17, 2025, 5:28:16 PM (2 days ago) Oct 17
      to AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org

      Thomas Nguyen voted Commit-Queue+0

      Commit-Queue+0
      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: I2cd36d01ca46a9c0d41d0a391fabae3e509bbbda
      Gerrit-Change-Number: 7048679
      Gerrit-PatchSet: 5
      Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-Comment-Date: Fri, 17 Oct 2025 21:27:59 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Thomas Nguyen (Gerrit)

      unread,
      Oct 18, 2025, 4:19:08 PM (22 hours ago) Oct 18
      to AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org

      Thomas Nguyen voted and added 1 comment

      Votes added by Thomas Nguyen

      Commit-Queue+2

      1 comment

      Patchset-level comments
      File-level comment, Patchset 5 (Latest):
      Thomas Nguyen . resolved

      Thanks for the review.

      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: I2cd36d01ca46a9c0d41d0a391fabae3e509bbbda
      Gerrit-Change-Number: 7048679
      Gerrit-PatchSet: 5
      Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-Comment-Date: Sat, 18 Oct 2025 20:18:49 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Thomas Nguyen (Gerrit)

      unread,
      Oct 18, 2025, 4:20:26 PM (22 hours ago) Oct 18
      to AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org

      Thomas Nguyen 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: I2cd36d01ca46a9c0d41d0a391fabae3e509bbbda
      Gerrit-Change-Number: 7048679
      Gerrit-PatchSet: 6
      Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-Comment-Date: Sat, 18 Oct 2025 20:20:07 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Oct 18, 2025, 6:27:12 PM (20 hours ago) Oct 18
      to Thomas Nguyen, AI Code Reviewer, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org

      Chromium LUCI CQ submitted the change with unreviewed changes

      Unreviewed changes

      5 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/html/html_geolocation_element.cc
      Insertions: 3, Deletions: 1.

      @@ -150,7 +150,9 @@
      }

      if (FastHasAttribute(html_names::kAutolocateAttr)) {
      - MaybeTriggerAutolocate(ForceAutolocate::kNo);
      + MaybeTriggerAutolocate(HasPendingPermissionRequest()
      + ? ForceAutolocate::kYes
      + : ForceAutolocate::kNo);
      } else if (HasPendingPermissionRequest()) {
      RequestGeolocation();
      }
      ```

      Change information

      Commit message:
      [PEPC] Refactor request logic to fix click-to-re-grant regression

      A previous change introduced a regression where clicking a
      <geolocation>` element without the `autolocate` attribute would fail to
      trigger a location request.

      This CL refactors the location request logic to fix this regression
      and correctly handle all user interaction scenarios.
      Bug: 452605978
      Change-Id: I2cd36d01ca46a9c0d41d0a391fabae3e509bbbda
      Commit-Queue: Thomas Nguyen <tun...@chromium.org>
      Reviewed-by: Joey Arhar <jar...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1531881}
      Files:
      • M third_party/blink/renderer/core/html/html_geolocation_element.cc
      • M third_party/blink/renderer/core/html/html_geolocation_element.h
      • M third_party/blink/renderer/core/html/html_geolocation_element_test.cc
      • M third_party/blink/renderer/core/html/html_permission_element.h
      Change size: L
      Delta: 4 files changed, 180 insertions(+), 210 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Joey Arhar
      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: I2cd36d01ca46a9c0d41d0a391fabae3e509bbbda
      Gerrit-Change-Number: 7048679
      Gerrit-PatchSet: 7
      Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages