[Reland] [Site Familiarity] Skip checks for same-site navigations [chromium/src : main]

0 views
Skip to first unread message

Javier Castro (Gerrit)

unread,
6:22 PM (3 hours ago) 6:22 PM
to Varun Khaneja, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Varun Khaneja

Javier Castro added 1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Javier Castro . resolved

Hi vakh@,

Trying this again. I've removed the browsertests because:

1. The query counting approach was brittle, it had different queries on linux-chromeos-rel versus linux-chromeos-chrome (unbranded versus branded builds) and if we ever made changes to SB queries, these tests might break.
2. Another approach I thought of was using histograms but the guidelines say we shouldn't be testing functionality of features using histograms (testing histogram functionality is of course ok).
3. I drafted some tests but the skip behavior isn't observable and the ultimate outcomes for scenarios are also impacted by the browsinginstance cache implementation. Basically, I couldn't check that the familiarity checks were skipped because the observable result of the jsopt state was the same as when the feature didn't exist.

I think the unit tests should be enough test support for now. If you have another idea I'm happy to try it, but I think it's more important that this is good rather than perfect.

Thanks for the review!

By the way, I filed crbug.com/537858159 to track the iframed sandbox issue you pointed out.

Open in Gerrit

Related details

Attention is currently required from:
  • Varun Khaneja
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: I8fd294582feaf583da71576a866c75bfc3177199
Gerrit-Change-Number: 8135101
Gerrit-PatchSet: 2
Gerrit-Owner: Javier Castro <jaca...@chromium.org>
Gerrit-Reviewer: Javier Castro <jaca...@chromium.org>
Gerrit-Reviewer: Varun Khaneja <va...@chromium.org>
Gerrit-Attention: Varun Khaneja <va...@chromium.org>
Gerrit-Comment-Date: Wed, 22 Jul 2026 22:22:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Varun Khaneja (Gerrit)

unread,
7:18 PM (2 hours ago) 7:18 PM
to Javier Castro, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Javier Castro

Varun Khaneja added 1 comment

File chrome/browser/site_protection/site_familiarity_process_selection_deferring_condition_unittest.cc
Line 1103, Patchset 2 (Latest):class SiteFamiliaritySameSiteSkipFamiliarityCheckTest
Varun Khaneja . unresolved

The tests added for same-site skip logic only cover the case where V8 optimizations are enabled (which defaults to `kFamiliar` verdict). Would it be beneficial to add test coverage for the case where V8 optimizations are disabled, which should result in a `kUnfamiliar` verdict?

Open in Gerrit

Related details

Attention is currently required from:
  • Javier Castro
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: I8fd294582feaf583da71576a866c75bfc3177199
    Gerrit-Change-Number: 8135101
    Gerrit-PatchSet: 2
    Gerrit-Owner: Javier Castro <jaca...@chromium.org>
    Gerrit-Reviewer: Javier Castro <jaca...@chromium.org>
    Gerrit-Reviewer: Varun Khaneja <va...@chromium.org>
    Gerrit-Attention: Javier Castro <jaca...@chromium.org>
    Gerrit-Comment-Date: Wed, 22 Jul 2026 23:18:07 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages