Preload: Gate viewport heuristic on all anchors being sampled in [chromium/src : main]

0 views
Skip to first unread message

Adithya Srinivasan (Gerrit)

unread,
Oct 22, 2024, 5:35:53 PM10/22/24
to Jeremy Roman, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-rev...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, loading...@chromium.org
Attention needed from Jeremy Roman

Adithya Srinivasan added 1 comment

File third_party/blink/renderer/core/loader/anchor_element_interaction_tracker.cc
Line 265, Patchset 4 (Latest): // The viewport-based heuristic implemented by this class isn't as accurate
Adithya Srinivasan . unresolved

Testing this is a bit tricky, because if don't sample all the anchors in, the test becomes non-deterministic... so the prediction still might not be made if this code wasn't there because the anchor didn't get sampled in.

I could maybe have something more specific; maybe test the number of observers in AnchorElementViewportPositionTracker or something like that; and the non-determinism wouldn't matter. WDYT?

Open in Gerrit

Related details

Attention is currently required from:
  • Jeremy Roman
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • 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: I1eceab26cbd803fe5ede5587bf5a991bc49136e2
Gerrit-Change-Number: 5954388
Gerrit-PatchSet: 4
Gerrit-Owner: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Jeremy Roman <jbr...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Jeremy Roman <jbr...@chromium.org>
Gerrit-Comment-Date: Tue, 22 Oct 2024 21:35:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Jeremy Roman (Gerrit)

unread,
Oct 22, 2024, 6:07:35 PM10/22/24
to Adithya Srinivasan, Jeremy Roman, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-rev...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, loading...@chromium.org
Attention needed from Adithya Srinivasan

Jeremy Roman added 1 comment

File third_party/blink/renderer/core/loader/anchor_element_interaction_tracker.cc
Line 265, Patchset 4 (Latest): // The viewport-based heuristic implemented by this class isn't as accurate
Adithya Srinivasan . unresolved

Testing this is a bit tricky, because if don't sample all the anchors in, the test becomes non-deterministic... so the prediction still might not be made if this code wasn't there because the anchor didn't get sampled in.

I could maybe have something more specific; maybe test the number of observers in AnchorElementViewportPositionTracker or something like that; and the non-determinism wouldn't matter. WDYT?

Jeremy Roman

As long as the test deterministically passes when the code is correct and fails a large fraction of the time otherwise, I think that's probably okay -- it will still make someone investigate. A test hook could be plumbed to be cleaner but may not be worth it if the preceding works.

Open in Gerrit

Related details

Attention is currently required from:
  • Adithya Srinivasan
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • 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: I1eceab26cbd803fe5ede5587bf5a991bc49136e2
Gerrit-Change-Number: 5954388
Gerrit-PatchSet: 4
Gerrit-Owner: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Jeremy Roman <jbr...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Comment-Date: Tue, 22 Oct 2024 22:07:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Adithya Srinivasan <adit...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Adithya Srinivasan (Gerrit)

unread,
Oct 23, 2024, 11:43:47 AM10/23/24
to Jeremy Roman, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-rev...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, loading...@chromium.org
Attention needed from Jeremy Roman

Adithya Srinivasan voted and added 1 comment

Votes added by Adithya Srinivasan

Commit-Queue+1

1 comment

File third_party/blink/renderer/core/loader/anchor_element_interaction_tracker.cc
Line 265, Patchset 4: // The viewport-based heuristic implemented by this class isn't as accurate
Adithya Srinivasan . resolved

Testing this is a bit tricky, because if don't sample all the anchors in, the test becomes non-deterministic... so the prediction still might not be made if this code wasn't there because the anchor didn't get sampled in.

I could maybe have something more specific; maybe test the number of observers in AnchorElementViewportPositionTracker or something like that; and the non-determinism wouldn't matter. WDYT?

Jeremy Roman

As long as the test deterministically passes when the code is correct and fails a large fraction of the time otherwise, I think that's probably okay -- it will still make someone investigate. A test hook could be plumbed to be cleaner but may not be worth it if the preceding works.

Adithya Srinivasan

Makes sense; I've added a test which will fail 50% of the time if the code is incorrect (and should always pass if the code is correct).

Open in Gerrit

Related details

Attention is currently required from:
  • Jeremy Roman
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • 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: I1eceab26cbd803fe5ede5587bf5a991bc49136e2
Gerrit-Change-Number: 5954388
Gerrit-PatchSet: 5
Gerrit-Owner: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Jeremy Roman <jbr...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Jeremy Roman <jbr...@chromium.org>
Gerrit-Comment-Date: Wed, 23 Oct 2024 15:43:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Adithya Srinivasan <adit...@chromium.org>
Comment-In-Reply-To: Jeremy Roman <jbr...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Jeremy Roman (Gerrit)

unread,
Oct 23, 2024, 12:27:13 PM10/23/24
to Adithya Srinivasan, Jeremy Roman, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-rev...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, loading...@chromium.org
Attention needed from Adithya Srinivasan

Jeremy Roman voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Adithya Srinivasan
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I1eceab26cbd803fe5ede5587bf5a991bc49136e2
Gerrit-Change-Number: 5954388
Gerrit-PatchSet: 5
Gerrit-Owner: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Jeremy Roman <jbr...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Comment-Date: Wed, 23 Oct 2024 16:27:03 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Adithya Srinivasan (Gerrit)

unread,
Oct 23, 2024, 12:27:43 PM10/23/24
to Jeremy Roman, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-rev...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, loading...@chromium.org

Adithya Srinivasan voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I1eceab26cbd803fe5ede5587bf5a991bc49136e2
Gerrit-Change-Number: 5954388
Gerrit-PatchSet: 5
Gerrit-Owner: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Jeremy Roman <jbr...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Comment-Date: Wed, 23 Oct 2024 16:27:32 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Oct 23, 2024, 12:30:27 PM10/23/24
to Adithya Srinivasan, Jeremy Roman, chromium...@chromium.org, Nate Chapin, blink-rev...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, loading...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
Preload: Gate viewport heuristic on all anchors being sampled in

We now only make predictions when
`NavigationPredictor/random_anchor_sampling` is set to 1. This makes
experimentation easier; it allows the rollout of crbug.com/331670939
to continue running as is, and we can use a separate experiment for
PreloadingViewportHeuristics.
Bug: 331670939, 372053392
Change-Id: I1eceab26cbd803fe5ede5587bf5a991bc49136e2
Reviewed-by: Jeremy Roman <jbr...@chromium.org>
Commit-Queue: Adithya Srinivasan <adit...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1372760}
Files:
  • M third_party/blink/renderer/core/html/anchor_element_metrics_sender.cc
  • M third_party/blink/renderer/core/html/anchor_element_metrics_sender.h
  • M third_party/blink/renderer/core/loader/anchor_element_interaction_test.cc
  • M third_party/blink/renderer/core/loader/anchor_element_interaction_tracker.cc
Change size: S
Delta: 4 files changed, 43 insertions(+), 3 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Jeremy Roman
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: I1eceab26cbd803fe5ede5587bf5a991bc49136e2
Gerrit-Change-Number: 5954388
Gerrit-PatchSet: 6
Gerrit-Owner: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Jeremy Roman <jbr...@chromium.org>
open
diffy
satisfied_requirement

Ambioorhxsz Uzth (Gerrit)

unread,
Dec 13, 2025, 5:48:35 PM (3 days ago) Dec 13
to Chromium LUCI CQ, Adithya Srinivasan, Jeremy Roman, chromium...@chromium.org, Nate Chapin, blink-rev...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, loading...@chromium.org

Ambioorhxsz Uzth added 1 comment

Patchset-level comments
File-level comment, Patchset 6 (Latest):
Ambioorhxsz Uzth . resolved

sa...@onmogul.shop

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement 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: I1eceab26cbd803fe5ede5587bf5a991bc49136e2
Gerrit-Change-Number: 5954388
Gerrit-PatchSet: 6
Gerrit-Owner: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Jeremy Roman <jbr...@chromium.org>
Gerrit-CC: Ambioorhxsz Uzth <ambioorh...@gmail.com>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Comment-Date: Sat, 13 Dec 2025 22:48:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
open
diffy

Ambioorhxsz Uzth (Gerrit)

unread,
Dec 13, 2025, 6:08:42 PM (3 days ago) Dec 13
to Chromium LUCI CQ, Adithya Srinivasan, Jeremy Roman, chromium...@chromium.org, Nate Chapin, blink-rev...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, loading...@chromium.org

Ambioorhxsz Uzth added 1 comment

Patchset-level comments
Ambioorhxsz Uzth . resolved
This body integrated there hackothon binary illigsl partion on a international war crimes private investigation Subcommittee. This body iot is also in part of over 300 different projects build ranging from Google MacBook clean environment friendly applications and we'll marking to campaign of matters of civilian national identity. Because we have come into a problem with moving forward with quantum data system and algorithms fly by wire technology because humanity in the IT department decided that they wanted to control how AI can learn and teething back the AI for OVER 20 years straight. As at the same time on the other side of the world 50 dam power of planet plays with the rotation of the earth to change cute 2 or more hour out of the world clock to possibly make themselves younger and humanity older. Or possible to get a advantage in the stock market by having time zone.. Because the banking system is turned off for regular tax payer that pay tax and make purchase and payment 24/7. But they can't trade after 6. But the rest of the world market run 24/7. 
"labels": {
"author": "warith_akbar",
"document_type": "policy_testimony",
"domain": "sovereign_trust",
"classification": "public_record"
}
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement 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: I1eceab26cbd803fe5ede5587bf5a991bc49136e2
Gerrit-Change-Number: 5954388
Gerrit-PatchSet: 6
Gerrit-Owner: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Adithya Srinivasan <adit...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Jeremy Roman <jbr...@chromium.org>
Gerrit-CC: Ambioorhxsz Uzth <ambioorh...@gmail.com>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Comment-Date: Sat, 13 Dec 2025 23:08:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages