CL 8904804: Skip non-canonicalizable URLs in SBProtocolManagerUtil::CanonicalizeUrl [chromium/src : main]

0 views
Skip to first unread message

thefrog (Gerrit)

unread,
Dec 4, 2026, 4:52:37 PM (2 days ago) Dec 4
to Anunoy Ghosh, Chromium LUCI CQ, chromium...@chromium.org, nwoked...@chromium.org, thefro...@chromium.org, xinghui...@chromium.org, zackha...@chromium.org
Attention needed from Anunoy Ghosh

thefrog voted Commit-Queue+1 on change 8904804

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Anunoy Ghosh
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: I9f81678b94dae4c2980fa86f8725a2a1d04c4b40
Gerrit-Change-Number: 8904804
Gerrit-PatchSet: 6
Gerrit-Owner: thefrog <the...@chromium.org>
Gerrit-Reviewer: Anunoy Ghosh <anu...@chromium.org>
Gerrit-Reviewer: thefrog <the...@chromium.org>
Gerrit-Attention: Anunoy Ghosh <anu...@chromium.org>
Gerrit-Comment-Date: Fri, 04 Dec 2026 21:52:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Anunoy Ghosh (Gerrit)

unread,
11:41 AM (3 hours ago) 11:41 AM
to thefrog, Chromium LUCI CQ, chromium...@chromium.org, nwoked...@chromium.org, thefro...@chromium.org, xinghui...@chromium.org, zackha...@chromium.org
Attention needed from thefrog

Anunoy Ghosh voted and added 2 comments on change 8904804

Votes added by Anunoy Ghosh <anu...@chromium.org>

Code-Review+1

2 comments

Patchset-level comments
File-level comment, Patchset 6 (Latest):
Anunoy Ghosh . resolved

LGTM with one optional comment on whether to also guard the V4 notification-abuse path. Thanks for the thorough tests!

File components/safe_browsing/core/browser/db/database_manager.cc
Line 86, Patchset 6 (Latest): if (full_hashes.empty()) {
Anunoy Ghosh . unresolved

Nit (optional): Should we also guard the V4 path below?

The V4 path has a similar pre-existing issue for dot-only hosts like https://./Foo.Bar/baz. GetFullHashesForNotificationAbuse() reduces the URL to its origin (https://./), so UrlToFullHashes() produces no hashes. That hits a DCHECK in V4GetHashProtocolManager::GetFullHashes(), and in non-DCHECK builds it logs a bogus CacheFullyHit metric.

Totally fine to leave V4 alone since it's being deprecated. If you do add a guard, the new test could also run under SafeBrowsingDatabaseManagerTest_V4V5.

Open in Gerrit

Related details

Attention is currently required from:
  • thefrog
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: I9f81678b94dae4c2980fa86f8725a2a1d04c4b40
    Gerrit-Change-Number: 8904804
    Gerrit-PatchSet: 6
    Gerrit-Owner: thefrog <the...@chromium.org>
    Gerrit-Reviewer: Anunoy Ghosh <anu...@chromium.org>
    Gerrit-Reviewer: thefrog <the...@chromium.org>
    Gerrit-Attention: thefrog <the...@chromium.org>
    Gerrit-Comment-Date: Sun, 06 Dec 2026 16:41:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages