-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland "Add UKM for LazyAds / LazyEmbeds Interventions"
This is a reland of commit 2d85d0e The previous CL was reverted because of the flaky tests on Windows. Back/forward cache caused UKM recording problems on Windows. So this CL disables back/forward cache to avoid UKM recording problems. Original change's description: > Add UKM for LazyAds / LazyEmbeds Interventions > > Collection Review (Googlers only): > https://docs.google.com/document/d/18igOKn3CjqukHDU1L_xYyFH0w9ZVixkyQrRbddkrN_4 > > This CL adds Blink.AutomaticLazyLoadFrame UKM event for LazyAds / > LazyEmbeds Interventions. This event includes the following metrics. > > - LazyAdsFrameCount > > Records the total number of per-page ad frames that are eligible for > the LazyFrame interventions by AutomaticLazyFrameLoadingToAds feature > flag. > > - LazyEmbedsFrameCount > > Records the total number of per-page frames that are eligible for the > LazyEmbeds interventions by AutomaticLazyFrameLoadingToEmbeds feature > flag. > > These metrics will be recorded by using exponential bucketing with > ukm::GetExponentialBucketMinForCounts1000(). > > This CL also updates the existing behavior of LazyAds and > LazyEmbeds. Previously, LazyAds and LazyEmbeds ignored the following > conditions. > > - RuntimeEnabledFeatures::LazyFrameLoadingEnabled() > - settings of document (Document::GetSettings()) > - backgrounded tabs (lazy loading is disabled for backgrounded tabs.) > > This CL starts checking these conditions so that the behavior aligns > the behavior of lazy loading (<iframe loading="lazy">). > > Bug: 1247131, 1265343 > Change-Id: Ibd93a556a99fb3bc59ed62e5f8b281e15bd4d948 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3554238 > Reviewed-by: Kent Tamura <tkent@chromium.org> > Reviewed-by: Alex Turner <alexmt@chromium.org> > Reviewed-by: Robert Kaplow <rkaplow@chromium.org> > Reviewed-by: Kouhei Ueno <kouhei@chromium.org> > Commit-Queue: Minoru Chikamune <chikamune@chromium.org> > Cr-Commit-Position: refs/heads/main@{#991942} (cherry picked from commit a01cd72) Bug: 1316004, 1247131, 1265343 Change-Id: Iddf77b0934f8e858cf6ab20ddddb5529324ad961 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3582251 Reviewed-by: Kouhei Ueno <kouhei@chromium.org> Reviewed-by: Robert Kaplow <rkaplow@chromium.org> Reviewed-by: Alex Turner <alexmt@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Minoru Chikamune <chikamune@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#992781} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3590312 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/5005@{#41} Cr-Branched-From: 5b4d945-refs/heads/main@{#992738}
- Loading branch information
1 parent
6b940e3
commit 5e437c0
Showing
12 changed files
with
363 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.