Record startup FCP/LCP via a WebContentsObserver LCP callback [chromium/src : main]

0 views
Skip to first unread message

Chris Davis (Gerrit)

unread,
Jun 17, 2026, 12:20:51 PMJun 17
to Daniel Cheng, Annie Sullivan, Shunya Shishido, Ramin Halavati, Gabriel Charette, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org, droger+w...@chromium.org, kinuko...@chromium.org, creis...@chromium.org, blink-revi...@chromium.org, blink-re...@chromium.org, navigation...@chromium.org, asvitki...@chromium.org, bmcquad...@chromium.org, chromiumme...@microsoft.com, core-web-vita...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
Attention needed from Annie Sullivan, Gabriel Charette, Ramin Halavati and Shunya Shishido

Chris Davis added 4 comments

File chrome/browser/metrics/first_web_contents_profiler_base.h
Line 88, Patchset 4: void DidFirstVisuallyNonEmptyPaint() override;
Gabriel Charette . resolved

All of this makes me wonder why `WebContentsObserver` doesn't just emit FCP and LCP?

It seems it already has FCP with `WebContentsObserver::OnFirstContentfulPaintInPrimaryMainFrame()`, so it's just missing LCP. I think it makes sense to add it => @sull...@chromium.org?

Annie Sullivan

It definitely makes sense to add FCP.

For LCP, there are a series of candidates as larger and larger elements paint. The algorithm terminates at first input or scroll, but if the user doesn't interact you need to wait until the page unloads to get the value. I'm not sure how that would work here?

Gabriel Charette

As long as the retained candidate happened before the FirstWebContents was deprioritized (backgrounded/etc.), it should be fine?

Chris Davis

Done

File components/startup_metric_utils/browser/startup_metric_utils.h
Line 125, Patchset 4: void RecordFirstWebContentsFirstContentfulPaint(int64_t navigation_id,
Gabriel Charette . resolved

I'd say we should rename this since it's called by multiple navigations and not just the first.

How about: OnFCPForPotentialFirstWebContents() ? And then we allow it being called multiple times, documenting that it only proceeds with the first match to the FirstWebContents, as defined by RecordFirstWebContentsMainNavigationStart().

But I'm also not a fan of this always-on API for something we need to record once, hence my above meta comment about adding support to the WebContentsObserver.

Chris Davis

Done

Line 122, Patchset 4: // paint. |navigation_id| must match the navigation registered by
Gabriel Charette . resolved

Does it? I was under the impression this would take calls from each LCP until the one that matches the FirstWebContents? i.e. if another web contents finishes its LCP first, we still want to record the FirstWebContents' LCP, assuming it remained foreground the entire time (e.g. two foreground window scenario)

Chris Davis

Done

File components/startup_metric_utils/browser/startup_metric_utils_unittest.cc
Line 43, Patchset 4:class StartupMetricUtilsTest : public testing::Test {
Gabriel Charette . resolved

This makes me realize, we already have chrome/browser/metrics/startup_metrics_browsertest.cc (and I forgot to mention in the previous CL). I think we should just add the new metrics to that one? I like an integration test here to confirm that it's not just that calling the methods works but that everything is hooked up in order to get there in real startups.

Chris Davis

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Annie Sullivan
  • Gabriel Charette
  • Ramin Halavati
  • Shunya Shishido
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: Ie09640c27ab6118ba790912d8eff7cce611161bf
Gerrit-Change-Number: 7884099
Gerrit-PatchSet: 9
Gerrit-Owner: Chris Davis <chrd...@microsoft.com>
Gerrit-Reviewer: Annie Sullivan <sull...@chromium.org>
Gerrit-Reviewer: Chris Davis <chrd...@microsoft.com>
Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
Gerrit-Reviewer: Ramin Halavati <rhal...@chromium.org>
Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
Gerrit-CC: Daniel Cheng <dch...@chromium.org>
Gerrit-Attention: Gabriel Charette <g...@chromium.org>
Gerrit-Attention: Annie Sullivan <sull...@chromium.org>
Gerrit-Attention: Ramin Halavati <rhal...@chromium.org>
Gerrit-Attention: Shunya Shishido <sisid...@chromium.org>
Gerrit-Comment-Date: Wed, 17 Jun 2026 16:20:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Gabriel Charette <g...@chromium.org>
Comment-In-Reply-To: Annie Sullivan <sull...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Gabriel Charette (Gerrit)

unread,
Jun 17, 2026, 2:25:36 PMJun 17
to Chris Davis, Daniel Cheng, Annie Sullivan, Shunya Shishido, Ramin Halavati, Gabriel Charette, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org, droger+w...@chromium.org, kinuko...@chromium.org, creis...@chromium.org, blink-revi...@chromium.org, blink-re...@chromium.org, navigation...@chromium.org, asvitki...@chromium.org, bmcquad...@chromium.org, chromiumme...@microsoft.com, core-web-vita...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
Attention needed from Annie Sullivan, Chris Davis, Ramin Halavati and Shunya Shishido

Gabriel Charette added 3 comments

Patchset-level comments
File-level comment, Patchset 9 (Latest):
Gabriel Charette . resolved

Quick pass as I won't have time to review this much code today.

I'm surprised this needs to be that large? Can we make it less verbose? Does it need to plumb through so many files?

File components/startup_metric_utils/browser/startup_metric_utils.cc
Line 277, Patchset 9 (Latest): g_startup_temperature = UNDETERMINED_STARTUP_TEMPERATURE;
Gabriel Charette . unresolved

seems okay, but why is this related?

File components/startup_metric_utils/browser/startup_metric_utils_unittest.cc
Line 41, Patchset 9 (Latest):constexpr char kFirstRunSentinelHistogram[] = "FirstRun.Sentinel.Created";
Gabriel Charette . unresolved

Let's track the new metrics in chrome/browser/metrics/startup_metrics_browsertest.cc.

With that, I don't feel we need this test framework, it's doing very little (confirms that calling the thing does the thing...). What we really care about is whether the full integration registers the metrics.

Open in Gerrit

Related details

Attention is currently required from:
  • Annie Sullivan
  • Chris Davis
  • Ramin Halavati
  • Shunya Shishido
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: Ie09640c27ab6118ba790912d8eff7cce611161bf
    Gerrit-Change-Number: 7884099
    Gerrit-PatchSet: 9
    Gerrit-Owner: Chris Davis <chrd...@microsoft.com>
    Gerrit-Reviewer: Annie Sullivan <sull...@chromium.org>
    Gerrit-Reviewer: Chris Davis <chrd...@microsoft.com>
    Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
    Gerrit-Reviewer: Ramin Halavati <rhal...@chromium.org>
    Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
    Gerrit-CC: Daniel Cheng <dch...@chromium.org>
    Gerrit-Attention: Chris Davis <chrd...@microsoft.com>
    Gerrit-Attention: Annie Sullivan <sull...@chromium.org>
    Gerrit-Attention: Ramin Halavati <rhal...@chromium.org>
    Gerrit-Attention: Shunya Shishido <sisid...@chromium.org>
    Gerrit-Comment-Date: Wed, 17 Jun 2026 18:25:24 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Fergal Daly (Gerrit)

    unread,
    Jun 21, 2026, 8:42:42 PMJun 21
    to Chris Davis, Fergal Daly, Daniel Cheng, Annie Sullivan, Shunya Shishido, Ramin Halavati, Gabriel Charette, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org, droger+w...@chromium.org, kinuko...@chromium.org, creis...@chromium.org, blink-revi...@chromium.org, blink-re...@chromium.org, navigation...@chromium.org, asvitki...@chromium.org, bmcquad...@chromium.org, chromiumme...@microsoft.com, core-web-vita...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
    Attention needed from Annie Sullivan, Chris Davis, Ramin Halavati and Shunya Shishido

    Fergal Daly added 1 comment

    Patchset-level comments
    File-level comment, Patchset 10 (Latest):
    Fergal Daly . unresolved

    What's the status of this change. I would really like to be able to use this metric but the current issues make it problematic.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Annie Sullivan
    • Chris Davis
    • Ramin Halavati
    • Shunya Shishido
    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: Ie09640c27ab6118ba790912d8eff7cce611161bf
    Gerrit-Change-Number: 7884099
    Gerrit-PatchSet: 10
    Gerrit-Owner: Chris Davis <chrd...@microsoft.com>
    Gerrit-Reviewer: Annie Sullivan <sull...@chromium.org>
    Gerrit-Reviewer: Chris Davis <chrd...@microsoft.com>
    Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
    Gerrit-Reviewer: Ramin Halavati <rhal...@chromium.org>
    Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
    Gerrit-CC: Daniel Cheng <dch...@chromium.org>
    Gerrit-CC: Fergal Daly <fer...@chromium.org>
    Gerrit-Attention: Chris Davis <chrd...@microsoft.com>
    Gerrit-Attention: Annie Sullivan <sull...@chromium.org>
    Gerrit-Attention: Ramin Halavati <rhal...@chromium.org>
    Gerrit-Attention: Shunya Shishido <sisid...@chromium.org>
    Gerrit-Comment-Date: Mon, 22 Jun 2026 00:42:07 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Chris Davis (Gerrit)

    unread,
    Jun 30, 2026, 1:55:40 PM (9 days ago) Jun 30
    to Fergal Daly, Daniel Cheng, Annie Sullivan, Shunya Shishido, Ramin Halavati, Gabriel Charette, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org, droger+w...@chromium.org, kinuko...@chromium.org, creis...@chromium.org, blink-revi...@chromium.org, blink-re...@chromium.org, navigation...@chromium.org, asvitki...@chromium.org, bmcquad...@chromium.org, chromiumme...@microsoft.com, core-web-vita...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
    Attention needed from Annie Sullivan, Fergal Daly, Gabriel Charette, Ramin Halavati and Shunya Shishido

    Chris Davis added 3 comments

    Patchset-level comments
    Fergal Daly . resolved

    What's the status of this change. I would really like to be able to use this metric but the current issues make it problematic.

    Chris Davis

    I'm currently out of office until 7/6 and will work more on this then

    File components/startup_metric_utils/browser/startup_metric_utils.cc
    Line 277, Patchset 9: g_startup_temperature = UNDETERMINED_STARTUP_TEMPERATURE;
    Gabriel Charette . unresolved

    seems okay, but why is this related?

    Chris Davis

    This was needed to unblock unit tests issues. With the move away from the additional unit tests I add to startup_metrics_browsertest this is no longer needed.

    File components/startup_metric_utils/browser/startup_metric_utils_unittest.cc
    Line 41, Patchset 9:constexpr char kFirstRunSentinelHistogram[] = "FirstRun.Sentinel.Created";
    Gabriel Charette . unresolved

    Let's track the new metrics in chrome/browser/metrics/startup_metrics_browsertest.cc.

    With that, I don't feel we need this test framework, it's doing very little (confirms that calling the thing does the thing...). What we really care about is whether the full integration registers the metrics.

    Chris Davis

    Ok, let me create new unit tests there. I think the existing tests nav to about:blank so I will need to add a data url hello world for the FCP/LCP tests.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Annie Sullivan
    • Fergal Daly
    • Gabriel Charette
    • Ramin Halavati
    • Shunya Shishido
    Gerrit-Attention: Gabriel Charette <g...@chromium.org>
    Gerrit-Attention: Annie Sullivan <sull...@chromium.org>
    Gerrit-Attention: Ramin Halavati <rhal...@chromium.org>
    Gerrit-Attention: Shunya Shishido <sisid...@chromium.org>
    Gerrit-Attention: Fergal Daly <fer...@chromium.org>
    Gerrit-Comment-Date: Tue, 30 Jun 2026 17:55:17 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Gabriel Charette <g...@chromium.org>
    Comment-In-Reply-To: Fergal Daly <fer...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ramin Halavati (Gerrit)

    unread,
    Jul 1, 2026, 12:38:50 AM (8 days ago) Jul 1
    to Chris Davis, Fergal Daly, Daniel Cheng, Annie Sullivan, Shunya Shishido, Gabriel Charette, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org, droger+w...@chromium.org, kinuko...@chromium.org, creis...@chromium.org, blink-revi...@chromium.org, blink-re...@chromium.org, navigation...@chromium.org, asvitki...@chromium.org, bmcquad...@chromium.org, chromiumme...@microsoft.com, core-web-vita...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org, Ramin Halavati
    Attention needed from Annie Sullivan, Chris Davis, Fergal Daly and Shunya Shishido

    Ramin Halavati added 1 comment

    Patchset-level comments
    Ramin Halavati . resolved

    I don't own any files in this change, please add me back to reviewers if I can help.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Annie Sullivan
    • Chris Davis
    • Fergal Daly
    • Shunya Shishido
    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: Ie09640c27ab6118ba790912d8eff7cce611161bf
    Gerrit-Change-Number: 7884099
    Gerrit-PatchSet: 10
    Gerrit-Owner: Chris Davis <chrd...@microsoft.com>
    Gerrit-Reviewer: Annie Sullivan <sull...@chromium.org>
    Gerrit-Reviewer: Chris Davis <chrd...@microsoft.com>
    Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
    Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
    Gerrit-CC: Daniel Cheng <dch...@chromium.org>
    Gerrit-CC: Fergal Daly <fer...@chromium.org>
    Gerrit-Attention: Chris Davis <chrd...@microsoft.com>
    Gerrit-Attention: Annie Sullivan <sull...@chromium.org>
    Gerrit-Attention: Shunya Shishido <sisid...@chromium.org>
    Gerrit-Attention: Fergal Daly <fer...@chromium.org>
    Gerrit-Comment-Date: Wed, 01 Jul 2026 04:38:26 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Chris Davis (Gerrit)

    unread,
    Jul 8, 2026, 5:09:04 PM (11 hours ago) Jul 8
    to Fergal Daly, Daniel Cheng, Annie Sullivan, Shunya Shishido, Gabriel Charette, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org, droger+w...@chromium.org, kinuko...@chromium.org, creis...@chromium.org, blink-revi...@chromium.org, blink-re...@chromium.org, navigation...@chromium.org, asvitki...@chromium.org, bmcquad...@chromium.org, chromiumme...@microsoft.com, core-web-vita...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
    Attention needed from Annie Sullivan, Fergal Daly, Gabriel Charette and Shunya Shishido

    Chris Davis added 2 comments

    File components/startup_metric_utils/browser/startup_metric_utils.cc
    Line 277, Patchset 9: g_startup_temperature = UNDETERMINED_STARTUP_TEMPERATURE;
    Gabriel Charette . resolved

    seems okay, but why is this related?

    Chris Davis

    This was needed to unblock unit tests issues. With the move away from the additional unit tests I add to startup_metrics_browsertest this is no longer needed.

    Chris Davis

    Done

    File components/startup_metric_utils/browser/startup_metric_utils_unittest.cc
    Line 41, Patchset 9:constexpr char kFirstRunSentinelHistogram[] = "FirstRun.Sentinel.Created";
    Gabriel Charette . resolved

    Let's track the new metrics in chrome/browser/metrics/startup_metrics_browsertest.cc.

    With that, I don't feel we need this test framework, it's doing very little (confirms that calling the thing does the thing...). What we really care about is whether the full integration registers the metrics.

    Chris Davis

    Ok, let me create new unit tests there. I think the existing tests nav to about:blank so I will need to add a data url hello world for the FCP/LCP tests.

    Chris Davis

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Annie Sullivan
    • Fergal Daly
    • Gabriel Charette
    • Shunya Shishido
    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: Ie09640c27ab6118ba790912d8eff7cce611161bf
      Gerrit-Change-Number: 7884099
      Gerrit-PatchSet: 11
      Gerrit-Owner: Chris Davis <chrd...@microsoft.com>
      Gerrit-Reviewer: Annie Sullivan <sull...@chromium.org>
      Gerrit-Reviewer: Chris Davis <chrd...@microsoft.com>
      Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
      Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
      Gerrit-CC: Daniel Cheng <dch...@chromium.org>
      Gerrit-CC: Fergal Daly <fer...@chromium.org>
      Gerrit-Attention: Gabriel Charette <g...@chromium.org>
      Gerrit-Attention: Annie Sullivan <sull...@chromium.org>
      Gerrit-Attention: Shunya Shishido <sisid...@chromium.org>
      Gerrit-Attention: Fergal Daly <fer...@chromium.org>
      Gerrit-Comment-Date: Wed, 08 Jul 2026 21:08:50 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Gabriel Charette <g...@chromium.org>
      Comment-In-Reply-To: Chris Davis <chrd...@microsoft.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Gabriel Charette (Gerrit)

      unread,
      Jul 8, 2026, 5:38:05 PM (11 hours ago) Jul 8
      to Chris Davis, Fergal Daly, Daniel Cheng, Annie Sullivan, Shunya Shishido, Gabriel Charette, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org, droger+w...@chromium.org, kinuko...@chromium.org, creis...@chromium.org, blink-revi...@chromium.org, blink-re...@chromium.org, navigation...@chromium.org, asvitki...@chromium.org, bmcquad...@chromium.org, chromiumme...@microsoft.com, core-web-vita...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
      Attention needed from Annie Sullivan, Chris Davis, Fergal Daly and Shunya Shishido

      Gabriel Charette added 1 comment

      File chrome/browser/metrics/first_web_contents_profiler_base.h
      Line 135, Patchset 11 (Latest): bool finish_reason_recorded_ = false;
      Gabriel Charette . unresolved

      Do we still track page loads that were abandoned/deprioritized between first-paint and FCP/LCP?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Annie Sullivan
      • Chris Davis
      • Fergal Daly
      • Shunya Shishido
      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: Ie09640c27ab6118ba790912d8eff7cce611161bf
        Gerrit-Change-Number: 7884099
        Gerrit-PatchSet: 11
        Gerrit-Owner: Chris Davis <chrd...@microsoft.com>
        Gerrit-Reviewer: Annie Sullivan <sull...@chromium.org>
        Gerrit-Reviewer: Chris Davis <chrd...@microsoft.com>
        Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
        Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
        Gerrit-CC: Daniel Cheng <dch...@chromium.org>
        Gerrit-CC: Fergal Daly <fer...@chromium.org>
        Gerrit-Attention: Chris Davis <chrd...@microsoft.com>
        Gerrit-Attention: Annie Sullivan <sull...@chromium.org>
        Gerrit-Attention: Shunya Shishido <sisid...@chromium.org>
        Gerrit-Attention: Fergal Daly <fer...@chromium.org>
        Gerrit-Comment-Date: Wed, 08 Jul 2026 21:37:58 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Chris Davis (Gerrit)

        unread,
        1:12 AM (3 hours ago) 1:12 AM
        to Fergal Daly, Daniel Cheng, Annie Sullivan, Shunya Shishido, Gabriel Charette, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, alexmo...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org, droger+w...@chromium.org, kinuko...@chromium.org, creis...@chromium.org, blink-revi...@chromium.org, blink-re...@chromium.org, navigation...@chromium.org, asvitki...@chromium.org, bmcquad...@chromium.org, chromiumme...@microsoft.com, core-web-vita...@chromium.org, csharris...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
        Attention needed from Annie Sullivan, Fergal Daly, Gabriel Charette and Shunya Shishido

        Chris Davis added 1 comment

        File chrome/browser/metrics/first_web_contents_profiler_base.h
        Line 135, Patchset 11: bool finish_reason_recorded_ = false;
        Gabriel Charette . resolved

        Do we still track page loads that were abandoned/deprioritized between first-paint and FCP/LCP?

        Chris Davis

        No — once we reach first-non-empty-paint we commit to kDone and only keep observing the same WebContents for FCP/LCP. If it's abandoned/deprioritized in that window (new nav, hidden, or destroyed) we stop observing immediately and record only the FCP/LCP that already arrived; the finish reason stays kDone (unchanged from before this CL). Added a comment documenting this.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Annie Sullivan
        • Fergal Daly
        • Gabriel Charette
        • Shunya Shishido
        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: Ie09640c27ab6118ba790912d8eff7cce611161bf
          Gerrit-Change-Number: 7884099
          Gerrit-PatchSet: 13
          Gerrit-Owner: Chris Davis <chrd...@microsoft.com>
          Gerrit-Reviewer: Annie Sullivan <sull...@chromium.org>
          Gerrit-Reviewer: Chris Davis <chrd...@microsoft.com>
          Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
          Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
          Gerrit-CC: Daniel Cheng <dch...@chromium.org>
          Gerrit-CC: Fergal Daly <fer...@chromium.org>
          Gerrit-Attention: Gabriel Charette <g...@chromium.org>
          Gerrit-Attention: Annie Sullivan <sull...@chromium.org>
          Gerrit-Attention: Shunya Shishido <sisid...@chromium.org>
          Gerrit-Attention: Fergal Daly <fer...@chromium.org>
          Gerrit-Comment-Date: Thu, 09 Jul 2026 05:11:48 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Gabriel Charette <g...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy
          Reply all
          Reply to author
          Forward
          0 new messages