[Gap Decorations]: Add UseCounter for Disentanglement change [chromium/src : main]

0 views
Skip to first unread message

Alison Maher (Gerrit)

unread,
Aug 13, 2025, 12:08:01 PMAug 13
to Sam Davis Omekara, Kevin Babbitt, AyeAye, Chromium LUCI CQ, Alexis Menard, Chromium Metrics Reviews, chromium...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, csharris...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
Attention needed from Kevin Babbitt and Sam Davis Omekara

Alison Maher added 12 comments

File chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc
Line 1994, Patchset 6 (Latest): auto waiter = CreatePageLoadMetricsTestWaiter("waiter");
waiter->AddPageExpectation(TimingField::kLoadEvent);
ASSERT_TRUE(ui_test_utils::NavigateToURL(
browser(), embedded_test_server()->GetURL(
"/page_load_metrics/use_counter_features.html")));
Alison Maher . unresolved

We may want to test this in a way that loads one at a time to ensure that only the relevant use counter is fired when appropriate

File third_party/blink/renderer/core/css/cssom/computed_style_property_map.h
Line 72, Patchset 6 (Latest): // "hidden". This is to assess web compatibility risks, as the
Alison Maher . unresolved

will be used

Line 70, Patchset 6 (Latest): // is triggered when the computed value for a width property is
Alison Maher . unresolved

This could get confused with "width". I would specify it is related to border-width, outline-width, and column-rule-width

Line 69, Patchset 6 (Latest): // Records use counters for width/style properties. The use counter
Alison Maher . unresolved

I'd remove this sentence since it isn't a use counter for the property, but under specific circumstances, which is covered by the rest of the paragraph

Line 69, Patchset 6 (Latest): // Records use counters for width/style properties. The use counter
Alison Maher . unresolved

There is more than one use counter, right?

File third_party/blink/renderer/core/css/cssom/computed_style_property_map.cc
Line 91, Patchset 6 (Latest):const CSSValue* ComputedStylePropertyMap::GetProperty(
Alison Maher . unresolved

Why do we only for this on a Get instead of if it is set at all? Is this because we could only cause web compat issues if the author is querying the value since the rendering would be equivalent either way?

Line 180, Patchset 6 (Latest): if (property.PropertyID() == CSSPropertyID::kBorderWidth) {
Alison Maher . unresolved

Likely worth adding a comment here, as well, for extra context at this callsite

Line 263, Patchset 6 (Latest): return false;
Alison Maher . unresolved

Will we ever hit this? If not, should it be a NOT_REACHED instead and just be a void method?

Line 267, Patchset 6 (Latest): auto ShouldCount = [](int width_value, EBorderStyle style_value) {
Alison Maher . unresolved

nit: ShouldRecordUseCounter

Line 281, Patchset 6 (Latest): int width_value = 0;
EBorderStyle style_value = EBorderStyle::kNone;
Alison Maher . unresolved

I'd move these earlier since they can be used here and below

Line 285, Patchset 6 (Latest): // Record once for the border-width shorthand
Alison Maher . unresolved

Missing punctuation. But it's also likely worth noting why we only record once in this case

File third_party/blink/renderer/core/style/computed_style.h
Line 295, Patchset 6 (Latest): friend class ComputedStylePropertyMap;
Alison Maher . unresolved

Why was this needed?

Open in Gerrit

Related details

Attention is currently required from:
  • Kevin Babbitt
  • Sam Davis Omekara
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • 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: I787d348fab52f815564762ef2c0555ec01218763
Gerrit-Change-Number: 6839339
Gerrit-PatchSet: 6
Gerrit-Owner: Sam Davis Omekara <samome...@microsoft.com>
Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
Gerrit-Reviewer: Kevin Babbitt <kbab...@microsoft.com>
Gerrit-Reviewer: Sam Davis Omekara <samome...@microsoft.com>
Gerrit-CC: Alexis Menard <alexis...@intel.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Kevin Babbitt <kbab...@microsoft.com>
Gerrit-Attention: Sam Davis Omekara <samome...@microsoft.com>
Gerrit-Comment-Date: Wed, 13 Aug 2025 16:07:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Sam Davis Omekara (Gerrit)

unread,
Aug 13, 2025, 1:01:54 PMAug 13
to Alison Maher, Kevin Babbitt, AyeAye, Chromium LUCI CQ, Alexis Menard, Chromium Metrics Reviews, chromium...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, csharris...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
Attention needed from Alison Maher and Kevin Babbitt

Sam Davis Omekara added 13 comments

Patchset-level comments
File-level comment, Patchset 6:
Sam Davis Omekara . resolved

ch

File chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc
Line 1994, Patchset 6: auto waiter = CreatePageLoadMetricsTestWaiter("waiter");

waiter->AddPageExpectation(TimingField::kLoadEvent);
ASSERT_TRUE(ui_test_utils::NavigateToURL(
browser(), embedded_test_server()->GetURL(
"/page_load_metrics/use_counter_features.html")));
Alison Maher . unresolved

We may want to test this in a way that loads one at a time to ensure that only the relevant use counter is fired when appropriate

Sam Davis Omekara

SO essentially having 7 different .html pages for each property? That seems a bit much no?

File third_party/blink/renderer/core/css/cssom/computed_style_property_map.h
Line 72, Patchset 6: // "hidden". This is to assess web compatibility risks, as the
Alison Maher . resolved

will be used

Sam Davis Omekara

Done

Line 70, Patchset 6: // is triggered when the computed value for a width property is
Alison Maher . resolved

This could get confused with "width". I would specify it is related to border-width, outline-width, and column-rule-width

Sam Davis Omekara

Done

Line 69, Patchset 6: // Records use counters for width/style properties. The use counter
Alison Maher . unresolved

There is more than one use counter, right?

Sam Davis Omekara

Single one for each property so I used "property-specific". Let me know if you have better suggestions.

Line 69, Patchset 6: // Records use counters for width/style properties. The use counter
Alison Maher . resolved

I'd remove this sentence since it isn't a use counter for the property, but under specific circumstances, which is covered by the rest of the paragraph

Sam Davis Omekara

Done

File third_party/blink/renderer/core/css/cssom/computed_style_property_map.cc
Line 91, Patchset 6:const CSSValue* ComputedStylePropertyMap::GetProperty(
Alison Maher . resolved

Why do we only for this on a Get instead of if it is set at all? Is this because we could only cause web compat issues if the author is querying the value since the rendering would be equivalent either way?

Sam Davis Omekara

Yes, It'll have to be queried via `ComputedStylePropertyMap` for us to notice observable change in behavior.

Line 180, Patchset 6: if (property.PropertyID() == CSSPropertyID::kBorderWidth) {
Alison Maher . resolved

Likely worth adding a comment here, as well, for extra context at this callsite

Sam Davis Omekara

Done

Line 263, Patchset 6: return false;
Alison Maher . resolved

Will we ever hit this? If not, should it be a NOT_REACHED instead and just be a void method?

Sam Davis Omekara

Done

Line 267, Patchset 6: auto ShouldCount = [](int width_value, EBorderStyle style_value) {
Alison Maher . resolved

nit: ShouldRecordUseCounter

Sam Davis Omekara

Done

Line 281, Patchset 6: int width_value = 0;

EBorderStyle style_value = EBorderStyle::kNone;
Alison Maher . resolved

I'd move these earlier since they can be used here and below

Sam Davis Omekara

Done

Line 285, Patchset 6: // Record once for the border-width shorthand
Alison Maher . resolved

Missing punctuation. But it's also likely worth noting why we only record once in this case

Sam Davis Omekara

I mean for all properties we record once, I took out "once" and added more context. The diff here is that because there multiple longhands associated, we could record 4 times instead of once.

File third_party/blink/renderer/core/style/computed_style.h
Line 295, Patchset 6: friend class ComputedStylePropertyMap;
Alison Maher . resolved

Why was this needed?

Sam Davis Omekara

Needed to access the *Internal methods. The comment above applies.

Open in Gerrit

Related details

Attention is currently required from:
  • Alison Maher
  • Kevin Babbitt
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • 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: I787d348fab52f815564762ef2c0555ec01218763
Gerrit-Change-Number: 6839339
Gerrit-PatchSet: 6
Gerrit-Owner: Sam Davis Omekara <samome...@microsoft.com>
Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
Gerrit-Reviewer: Kevin Babbitt <kbab...@microsoft.com>
Gerrit-Reviewer: Sam Davis Omekara <samome...@microsoft.com>
Gerrit-CC: Alexis Menard <alexis...@intel.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Kevin Babbitt <kbab...@microsoft.com>
Gerrit-Attention: Alison Maher <alm...@microsoft.com>
Gerrit-Comment-Date: Wed, 13 Aug 2025 17:01:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Alison Maher <alm...@microsoft.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Alison Maher (Gerrit)

unread,
Aug 13, 2025, 6:00:34 PMAug 13
to Sam Davis Omekara, Kevin Babbitt, AyeAye, Chromium LUCI CQ, Alexis Menard, Chromium Metrics Reviews, chromium...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, csharris...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
Attention needed from Kevin Babbitt and Sam Davis Omekara

Alison Maher added 3 comments

File chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc
Line 1994, Patchset 6: auto waiter = CreatePageLoadMetricsTestWaiter("waiter");
waiter->AddPageExpectation(TimingField::kLoadEvent);
ASSERT_TRUE(ui_test_utils::NavigateToURL(
browser(), embedded_test_server()->GetURL(
"/page_load_metrics/use_counter_features.html")));
Alison Maher . unresolved

We may want to test this in a way that loads one at a time to ensure that only the relevant use counter is fired when appropriate

Sam Davis Omekara

SO essentially having 7 different .html pages for each property? That seems a bit much no?

Alison Maher

I can't think of a better way to do it, but as it stands, we aren't really testing that these are firing in different scenarios

File third_party/blink/renderer/core/css/cssom/computed_style_property_map.h
Line 69, Patchset 6: // Records use counters for width/style properties. The use counter
Alison Maher . resolved

There is more than one use counter, right?

Sam Davis Omekara

Single one for each property so I used "property-specific". Let me know if you have better suggestions.

Alison Maher

Acknowledged

File third_party/blink/renderer/core/css/cssom/computed_style_property_map.cc
Line 91, Patchset 6:const CSSValue* ComputedStylePropertyMap::GetProperty(
Alison Maher . unresolved

Why do we only for this on a Get instead of if it is set at all? Is this because we could only cause web compat issues if the author is querying the value since the rendering would be equivalent either way?

Sam Davis Omekara

Yes, It'll have to be queried via `ComputedStylePropertyMap` for us to notice observable change in behavior.

Alison Maher

Will this go down the same path if you do window.getComputedStyle(element).borderWidth? Or element.style.borderWidth?

Open in Gerrit

Related details

Attention is currently required from:
  • Kevin Babbitt
  • Sam Davis Omekara
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • 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: I787d348fab52f815564762ef2c0555ec01218763
Gerrit-Change-Number: 6839339
Gerrit-PatchSet: 7
Gerrit-Owner: Sam Davis Omekara <samome...@microsoft.com>
Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
Gerrit-Reviewer: Kevin Babbitt <kbab...@microsoft.com>
Gerrit-Reviewer: Sam Davis Omekara <samome...@microsoft.com>
Gerrit-CC: Alexis Menard <alexis...@intel.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Kevin Babbitt <kbab...@microsoft.com>
Gerrit-Attention: Sam Davis Omekara <samome...@microsoft.com>
Gerrit-Comment-Date: Wed, 13 Aug 2025 22:00:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Sam Davis Omekara <samome...@microsoft.com>
Comment-In-Reply-To: Alison Maher <alm...@microsoft.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Sam Davis Omekara (Gerrit)

unread,
Aug 13, 2025, 6:07:34 PMAug 13
to Alison Maher, Kevin Babbitt, AyeAye, Chromium LUCI CQ, Alexis Menard, Chromium Metrics Reviews, chromium...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, csharris...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
Attention needed from Alison Maher and Kevin Babbitt

Sam Davis Omekara added 2 comments

File chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc
Line 1994, Patchset 6: auto waiter = CreatePageLoadMetricsTestWaiter("waiter");
waiter->AddPageExpectation(TimingField::kLoadEvent);
ASSERT_TRUE(ui_test_utils::NavigateToURL(
browser(), embedded_test_server()->GetURL(
"/page_load_metrics/use_counter_features.html")));
Alison Maher . unresolved

We may want to test this in a way that loads one at a time to ensure that only the relevant use counter is fired when appropriate

Sam Davis Omekara

SO essentially having 7 different .html pages for each property? That seems a bit much no?

Alison Maher

I can't think of a better way to do it, but as it stands, we aren't really testing that these are firing in different scenarios

Sam Davis Omekara

Help me understand:

In the existing test, we set the seven different properties and query each of them and expect a hit count for the seven separate properties use counters.

So in my opinion, it's testing firing for different scenarios.

Is your worry that we might fire for border-left-width when we set and query border-width or vice versa?

@kbab...@microsoft.com any thoughts here?

File third_party/blink/renderer/core/css/cssom/computed_style_property_map.cc
Line 91, Patchset 6:const CSSValue* ComputedStylePropertyMap::GetProperty(
Alison Maher . unresolved

Why do we only for this on a Get instead of if it is set at all? Is this because we could only cause web compat issues if the author is querying the value since the rendering would be equivalent either way?

Sam Davis Omekara

Yes, It'll have to be queried via `ComputedStylePropertyMap` for us to notice observable change in behavior.

Alison Maher

Will this go down the same path if you do window.getComputedStyle(element).borderWidth? Or element.style.borderWidth?

Sam Davis Omekara

No because that's querying the resolved value and not computed value.

Open in Gerrit

Related details

Attention is currently required from:
  • Alison Maher
  • Kevin Babbitt
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedRecitation-Check
    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: I787d348fab52f815564762ef2c0555ec01218763
    Gerrit-Change-Number: 6839339
    Gerrit-PatchSet: 7
    Gerrit-Owner: Sam Davis Omekara <samome...@microsoft.com>
    Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
    Gerrit-Reviewer: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-Reviewer: Sam Davis Omekara <samome...@microsoft.com>
    Gerrit-CC: Alexis Menard <alexis...@intel.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-Attention: Alison Maher <alm...@microsoft.com>
    Gerrit-Comment-Date: Wed, 13 Aug 2025 22:07:24 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Alison Maher (Gerrit)

    unread,
    Aug 13, 2025, 6:12:59 PMAug 13
    to Sam Davis Omekara, Kevin Babbitt, AyeAye, Chromium LUCI CQ, Alexis Menard, Chromium Metrics Reviews, chromium...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, csharris...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
    Attention needed from Kevin Babbitt and Sam Davis Omekara

    Alison Maher added 2 comments

    File chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc
    Line 1994, Patchset 6: auto waiter = CreatePageLoadMetricsTestWaiter("waiter");
    waiter->AddPageExpectation(TimingField::kLoadEvent);
    ASSERT_TRUE(ui_test_utils::NavigateToURL(
    browser(), embedded_test_server()->GetURL(
    "/page_load_metrics/use_counter_features.html")));
    Alison Maher . unresolved

    We may want to test this in a way that loads one at a time to ensure that only the relevant use counter is fired when appropriate

    Sam Davis Omekara

    SO essentially having 7 different .html pages for each property? That seems a bit much no?

    Alison Maher

    I can't think of a better way to do it, but as it stands, we aren't really testing that these are firing in different scenarios

    Sam Davis Omekara

    Help me understand:

    In the existing test, we set the seven different properties and query each of them and expect a hit count for the seven separate properties use counters.

    So in my opinion, it's testing firing for different scenarios.

    Is your worry that we might fire for border-left-width when we set and query border-width or vice versa?

    @kbab...@microsoft.com any thoughts here?

    Alison Maher

    Yeah, essentially if your code fired all of them whenever one of these were queried, this test would still pass, which isn't what we want

    File third_party/blink/renderer/core/css/cssom/computed_style_property_map.cc
    Line 91, Patchset 6:const CSSValue* ComputedStylePropertyMap::GetProperty(
    Alison Maher . resolved

    Why do we only for this on a Get instead of if it is set at all? Is this because we could only cause web compat issues if the author is querying the value since the rendering would be equivalent either way?

    Sam Davis Omekara

    Yes, It'll have to be queried via `ComputedStylePropertyMap` for us to notice observable change in behavior.

    Alison Maher

    Will this go down the same path if you do window.getComputedStyle(element).borderWidth? Or element.style.borderWidth?

    Sam Davis Omekara

    No because that's querying the resolved value and not computed value.

    Alison Maher

    Acknowledged

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kevin Babbitt
    • Sam Davis Omekara
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedRecitation-Check
    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: I787d348fab52f815564762ef2c0555ec01218763
    Gerrit-Change-Number: 6839339
    Gerrit-PatchSet: 7
    Gerrit-Owner: Sam Davis Omekara <samome...@microsoft.com>
    Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
    Gerrit-Reviewer: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-Reviewer: Sam Davis Omekara <samome...@microsoft.com>
    Gerrit-CC: Alexis Menard <alexis...@intel.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-Attention: Sam Davis Omekara <samome...@microsoft.com>
    Gerrit-Comment-Date: Wed, 13 Aug 2025 22:12:51 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Kevin Babbitt (Gerrit)

    unread,
    Aug 13, 2025, 7:23:35 PMAug 13
    to Sam Davis Omekara, Alison Maher, AyeAye, Chromium LUCI CQ, Alexis Menard, Chromium Metrics Reviews, chromium...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, csharris...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
    Attention needed from Sam Davis Omekara

    Kevin Babbitt added 1 comment

    File chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc
    Line 1994, Patchset 6: auto waiter = CreatePageLoadMetricsTestWaiter("waiter");
    waiter->AddPageExpectation(TimingField::kLoadEvent);
    ASSERT_TRUE(ui_test_utils::NavigateToURL(
    browser(), embedded_test_server()->GetURL(
    "/page_load_metrics/use_counter_features.html")));
    Alison Maher . unresolved

    We may want to test this in a way that loads one at a time to ensure that only the relevant use counter is fired when appropriate

    Sam Davis Omekara

    SO essentially having 7 different .html pages for each property? That seems a bit much no?

    Alison Maher

    I can't think of a better way to do it, but as it stands, we aren't really testing that these are firing in different scenarios

    Sam Davis Omekara

    Help me understand:

    In the existing test, we set the seven different properties and query each of them and expect a hit count for the seven separate properties use counters.

    So in my opinion, it's testing firing for different scenarios.

    Is your worry that we might fire for border-left-width when we set and query border-width or vice versa?

    @kbab...@microsoft.com any thoughts here?

    Alison Maher

    Yeah, essentially if your code fired all of them whenever one of these were queried, this test would still pass, which isn't what we want

    Kevin Babbitt

    I agree with Alison that it would be good to exercise each property in its own test. I'm unclear on why that would require 7 different html pages. For example, would it be possible for each test to inject a bit of JavaScript to exercise a specific property? There's examples of this elsewhere in the file; search for `EvalJs`.

    I'm also wondering if it would be worth parameterizing these tests to reduce repetition among them.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Sam Davis Omekara
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedRecitation-Check
    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: I787d348fab52f815564762ef2c0555ec01218763
    Gerrit-Change-Number: 6839339
    Gerrit-PatchSet: 7
    Gerrit-Owner: Sam Davis Omekara <samome...@microsoft.com>
    Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
    Gerrit-Reviewer: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-Reviewer: Sam Davis Omekara <samome...@microsoft.com>
    Gerrit-CC: Alexis Menard <alexis...@intel.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Sam Davis Omekara <samome...@microsoft.com>
    Gerrit-Comment-Date: Wed, 13 Aug 2025 23:23:25 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Sam Davis Omekara (Gerrit)

    unread,
    Aug 15, 2025, 5:46:39 PMAug 15
    to Olga Gerchikov, Alison Maher, Kevin Babbitt, AyeAye, Chromium LUCI CQ, Alexis Menard, Chromium Metrics Reviews, chromium...@chromium.org, blink-revie...@chromium.org, jmedle...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, csharris...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
    Attention needed from Alison Maher and Kevin Babbitt

    Sam Davis Omekara added 1 comment

    File chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc
    Line 1994, Patchset 6: auto waiter = CreatePageLoadMetricsTestWaiter("waiter");
    waiter->AddPageExpectation(TimingField::kLoadEvent);
    ASSERT_TRUE(ui_test_utils::NavigateToURL(
    browser(), embedded_test_server()->GetURL(
    "/page_load_metrics/use_counter_features.html")));
    Alison Maher . unresolved

    We may want to test this in a way that loads one at a time to ensure that only the relevant use counter is fired when appropriate

    Sam Davis Omekara

    SO essentially having 7 different .html pages for each property? That seems a bit much no?

    Alison Maher

    I can't think of a better way to do it, but as it stands, we aren't really testing that these are firing in different scenarios

    Sam Davis Omekara

    Help me understand:

    In the existing test, we set the seven different properties and query each of them and expect a hit count for the seven separate properties use counters.

    So in my opinion, it's testing firing for different scenarios.

    Is your worry that we might fire for border-left-width when we set and query border-width or vice versa?

    @kbab...@microsoft.com any thoughts here?

    Alison Maher

    Yeah, essentially if your code fired all of them whenever one of these were queried, this test would still pass, which isn't what we want

    Kevin Babbitt

    I agree with Alison that it would be good to exercise each property in its own test. I'm unclear on why that would require 7 different html pages. For example, would it be possible for each test to inject a bit of JavaScript to exercise a specific property? There's examples of this elsewhere in the file; search for `EvalJs`.

    I'm also wondering if it would be worth parameterizing these tests to reduce repetition among them.

    Sam Davis Omekara

    Just did something like this. Let me know if this is sufficient.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alison Maher
    • Kevin Babbitt
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • 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: I787d348fab52f815564762ef2c0555ec01218763
    Gerrit-Change-Number: 6839339
    Gerrit-PatchSet: 10
    Gerrit-Owner: Sam Davis Omekara <samome...@microsoft.com>
    Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
    Gerrit-Reviewer: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-Reviewer: Sam Davis Omekara <samome...@microsoft.com>
    Gerrit-CC: Alexis Menard <alexis...@intel.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Attention: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-Attention: Alison Maher <alm...@microsoft.com>
    Gerrit-Comment-Date: Fri, 15 Aug 2025 21:46:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Kevin Babbitt <kbab...@microsoft.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Kevin Babbitt (Gerrit)

    unread,
    Aug 15, 2025, 7:18:13 PMAug 15
    to Sam Davis Omekara, Olga Gerchikov, Alison Maher, AyeAye, Chromium LUCI CQ, Alexis Menard, Chromium Metrics Reviews, chromium...@chromium.org, blink-revie...@chromium.org, jmedle...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, csharris...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
    Attention needed from Alison Maher and Sam Davis Omekara

    Kevin Babbitt voted and added 1 comment

    Votes added by Kevin Babbitt

    Code-Review+1

    1 comment

    File chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc
    Line 1962, Patchset 10 (Latest): R"JS(
    document.getElementById('width-no-style')
    .computedStyleMap()
    .get('border-top-width');
    )JS",
    Kevin Babbitt . unresolved

    Can we reduce the repetition by having just the property name be in the test parameters, and having the test function splice that into the remainder of the script?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alison Maher
    • Sam Davis Omekara
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement 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: I787d348fab52f815564762ef2c0555ec01218763
      Gerrit-Change-Number: 6839339
      Gerrit-PatchSet: 10
      Gerrit-Owner: Sam Davis Omekara <samome...@microsoft.com>
      Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
      Gerrit-Reviewer: Kevin Babbitt <kbab...@microsoft.com>
      Gerrit-Reviewer: Sam Davis Omekara <samome...@microsoft.com>
      Gerrit-CC: Alexis Menard <alexis...@intel.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
      Gerrit-Attention: Sam Davis Omekara <samome...@microsoft.com>
      Gerrit-Attention: Alison Maher <alm...@microsoft.com>
      Gerrit-Comment-Date: Fri, 15 Aug 2025 23:18:04 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Alison Maher (Gerrit)

      unread,
      Aug 18, 2025, 11:43:03 AMAug 18
      to Sam Davis Omekara, Kevin Babbitt, Olga Gerchikov, AyeAye, Chromium LUCI CQ, Alexis Menard, Chromium Metrics Reviews, chromium...@chromium.org, blink-revie...@chromium.org, jmedle...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, csharris...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
      Attention needed from Sam Davis Omekara

      Alison Maher voted and added 2 comments

      Votes added by Alison Maher

      Code-Review+1

      2 comments

      Patchset-level comments
      File-level comment, Patchset 10 (Latest):
      Alison Maher . resolved

      LGTM % Kevin's feedback and merge conflict

      File chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc
      Line 1994, Patchset 6: auto waiter = CreatePageLoadMetricsTestWaiter("waiter");
      waiter->AddPageExpectation(TimingField::kLoadEvent);
      ASSERT_TRUE(ui_test_utils::NavigateToURL(
      browser(), embedded_test_server()->GetURL(
      "/page_load_metrics/use_counter_features.html")));
      Alison Maher . resolved

      We may want to test this in a way that loads one at a time to ensure that only the relevant use counter is fired when appropriate

      Sam Davis Omekara

      SO essentially having 7 different .html pages for each property? That seems a bit much no?

      Alison Maher

      I can't think of a better way to do it, but as it stands, we aren't really testing that these are firing in different scenarios

      Sam Davis Omekara

      Help me understand:

      In the existing test, we set the seven different properties and query each of them and expect a hit count for the seven separate properties use counters.

      So in my opinion, it's testing firing for different scenarios.

      Is your worry that we might fire for border-left-width when we set and query border-width or vice versa?

      @kbab...@microsoft.com any thoughts here?

      Alison Maher

      Yeah, essentially if your code fired all of them whenever one of these were queried, this test would still pass, which isn't what we want

      Kevin Babbitt

      I agree with Alison that it would be good to exercise each property in its own test. I'm unclear on why that would require 7 different html pages. For example, would it be possible for each test to inject a bit of JavaScript to exercise a specific property? There's examples of this elsewhere in the file; search for `EvalJs`.

      I'm also wondering if it would be worth parameterizing these tests to reduce repetition among them.

      Sam Davis Omekara

      Just did something like this. Let me know if this is sufficient.

      Alison Maher

      Acknowledged

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Sam Davis Omekara
      Gerrit-Comment-Date: Mon, 18 Aug 2025 15:42:48 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Sam Davis Omekara (Gerrit)

      unread,
      Aug 18, 2025, 1:58:59 PMAug 18
      to Shunya Shishido, Alison Maher, Kevin Babbitt, Olga Gerchikov, AyeAye, Chromium LUCI CQ, Alexis Menard, Chromium Metrics Reviews, chromium...@chromium.org, blink-revie...@chromium.org, jmedle...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, csharris...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
      Attention needed from Shunya Shishido

      Sam Davis Omekara added 2 comments

      Sam Davis Omekara . resolved

      @sisid...@chromium.org: for c/b/p/page_load_metrics_browsertests.cc

      File chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc

      document.getElementById('width-no-style')
      .computedStyleMap()
      .get('border-top-width');
      )JS",
      Kevin Babbitt . resolved

      Can we reduce the repetition by having just the property name be in the test parameters, and having the test function splice that into the remainder of the script?

      Sam Davis Omekara

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Shunya Shishido
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: I787d348fab52f815564762ef2c0555ec01218763
      Gerrit-Change-Number: 6839339
      Gerrit-PatchSet: 12
      Gerrit-Owner: Sam Davis Omekara <samome...@microsoft.com>
      Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
      Gerrit-Reviewer: Kevin Babbitt <kbab...@microsoft.com>
      Gerrit-Reviewer: Sam Davis Omekara <samome...@microsoft.com>
      Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
      Gerrit-CC: Alexis Menard <alexis...@intel.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
      Gerrit-Attention: Shunya Shishido <sisid...@chromium.org>
      Gerrit-Comment-Date: Mon, 18 Aug 2025 17:58:49 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Shunya Shishido (Gerrit)

      unread,
      Aug 19, 2025, 12:00:29 AMAug 19
      to Sam Davis Omekara, Alison Maher, Kevin Babbitt, Olga Gerchikov, AyeAye, Chromium LUCI CQ, Alexis Menard, Chromium Metrics Reviews, chromium...@chromium.org, blink-revie...@chromium.org, jmedle...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, csharris...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org
      Attention needed from Sam Davis Omekara

      Shunya Shishido voted and added 2 comments

      Votes added by Shunya Shishido

      Code-Review+1

      2 comments

      Patchset-level comments
      Shunya Shishido . resolved

      page_load_metrics LGTM.

      File chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc
      Line 1954, Patchset 12 (Latest):namespace {
      struct DecoupleComputedWidthCase {
      const char* property_name;
      WebFeature feature;
      };

      static const DecoupleComputedWidthCase kDecoupleComputedWidthCases[] = {
      {
      "border-top-width",
      WebFeature::kComputedBorderTopWidthWithNoneOrHiddenStyle,
      },
      {
      "border-right-width",
      WebFeature::kComputedBorderRightWidthWithNoneOrHiddenStyle,
      },
      {
      "border-bottom-width",
      WebFeature::kComputedBorderBottomWidthWithNoneOrHiddenStyle,
      },
      {
      "border-left-width",
      WebFeature::kComputedBorderLeftWidthWithNoneOrHiddenStyle,
      },
      {
      "border-width",
      WebFeature::kComputedBorderWidthWithNoneOrHiddenStyle,
      },
      {
      "column-rule-width",
      WebFeature::kComputedColumnRuleWidthWithNoneOrHiddenStyle,
      },
      {
      "outline-width",
      WebFeature::kComputedOutlineWidthWithNoneOrHiddenStyle,
      },
      };

      } // namespace
      Shunya Shishido . unresolved

      Could you avoid having multiple anonymous namespaces? It would be better to move this to the existing namespace started from L133.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Sam Davis Omekara
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement 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: I787d348fab52f815564762ef2c0555ec01218763
      Gerrit-Change-Number: 6839339
      Gerrit-PatchSet: 12
      Gerrit-Owner: Sam Davis Omekara <samome...@microsoft.com>
      Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
      Gerrit-Reviewer: Kevin Babbitt <kbab...@microsoft.com>
      Gerrit-Reviewer: Sam Davis Omekara <samome...@microsoft.com>
      Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
      Gerrit-CC: Alexis Menard <alexis...@intel.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
      Gerrit-Attention: Sam Davis Omekara <samome...@microsoft.com>
      Gerrit-Comment-Date: Tue, 19 Aug 2025 04:00:03 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Sam Davis Omekara (Gerrit)

      unread,
      Aug 19, 2025, 1:03:58 PMAug 19
      to Shunya Shishido, Alison Maher, Kevin Babbitt, Olga Gerchikov, AyeAye, Chromium LUCI CQ, Alexis Menard, Chromium Metrics Reviews, chromium...@chromium.org, blink-revie...@chromium.org, jmedle...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, csharris...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org

      Sam Davis Omekara added 1 comment

      File chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc
      Shunya Shishido . resolved

      Could you avoid having multiple anonymous namespaces? It would be better to move this to the existing namespace started from L133.

      Sam Davis Omekara

      Done

      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: I787d348fab52f815564762ef2c0555ec01218763
      Gerrit-Change-Number: 6839339
      Gerrit-PatchSet: 13
      Gerrit-Owner: Sam Davis Omekara <samome...@microsoft.com>
      Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
      Gerrit-Reviewer: Kevin Babbitt <kbab...@microsoft.com>
      Gerrit-Reviewer: Sam Davis Omekara <samome...@microsoft.com>
      Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
      Gerrit-CC: Alexis Menard <alexis...@intel.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
      Gerrit-Comment-Date: Tue, 19 Aug 2025 17:03:46 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Shunya Shishido <sisid...@chromium.org>
      satisfied_requirement
      open
      diffy

      Sam Davis Omekara (Gerrit)

      unread,
      Aug 19, 2025, 1:09:13 PMAug 19
      to Shunya Shishido, Alison Maher, Kevin Babbitt, Olga Gerchikov, AyeAye, Chromium LUCI CQ, Alexis Menard, Chromium Metrics Reviews, chromium...@chromium.org, blink-revie...@chromium.org, jmedle...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, csharris...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org

      Sam Davis Omekara voted Commit-Queue+2

      Commit-Queue+2
      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: I787d348fab52f815564762ef2c0555ec01218763
      Gerrit-Change-Number: 6839339
      Gerrit-PatchSet: 14
      Gerrit-Owner: Sam Davis Omekara <samome...@microsoft.com>
      Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
      Gerrit-Reviewer: Kevin Babbitt <kbab...@microsoft.com>
      Gerrit-Reviewer: Sam Davis Omekara <samome...@microsoft.com>
      Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
      Gerrit-CC: Alexis Menard <alexis...@intel.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
      Gerrit-Comment-Date: Tue, 19 Aug 2025 17:09:03 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Aug 19, 2025, 2:28:13 PMAug 19
      to Sam Davis Omekara, Shunya Shishido, Alison Maher, Kevin Babbitt, Olga Gerchikov, AyeAye, Alexis Menard, Chromium Metrics Reviews, chromium...@chromium.org, blink-revie...@chromium.org, jmedle...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, csharris...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, speed-metrics...@chromium.org, speed-metr...@chromium.org

      Chromium LUCI CQ submitted the change with unreviewed changes

      Unreviewed changes

      12 is the latest approved patch-set.
      The change was submitted with unreviewed changes in the following files:

      ```
      The name of the file: third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom
      Insertions: 8, Deletions: 7.

      The diff is too large to show. Please review the diff.
      ```
      ```
      The name of the file: tools/metrics/histograms/metadata/blink/enums.xml
      Insertions: 8, Deletions: 7.

      The diff is too large to show. Please review the diff.
      ```
      ```
      The name of the file: chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc
      Insertions: 36, Deletions: 39.

      The diff is too large to show. Please review the diff.
      ```

      Change information

      Commit message:
      [Gap Decorations]: Add UseCounter for Disentanglement change

      This CL introduces granular use counters for the *-width CSS properties
      affected by the disentanglement work in crrev.com/c/6489213. These
      counters are property-specific to accurately measure usage and assess
      potential web compatibility risks resulting from the CSS issue
      resolution [1], which led to decoupling the *-width computed values from
      their corresponding style values.

      [1]:
      https://github.com/w3c/csswg-drafts/issues/11494#issuecomment-2675800489
      Bug: 393631108
      Change-Id: I787d348fab52f815564762ef2c0555ec01218763
      Reviewed-by: Kevin Babbitt <kbab...@microsoft.com>
      Reviewed-by: Shunya Shishido <sisid...@chromium.org>
      Commit-Queue: Sam Davis Omekara <samome...@microsoft.com>
      Reviewed-by: Alison Maher <alm...@microsoft.com>
      Cr-Commit-Position: refs/heads/main@{#1503490}
      Files:
      • M chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc
      • M chrome/test/data/page_load_metrics/use_counter_features.html
      • M third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom
      • M third_party/blink/renderer/core/css/cssom/computed_style_property_map.cc
      • M third_party/blink/renderer/core/css/cssom/computed_style_property_map.h
      • M third_party/blink/renderer/core/style/computed_style.h
      • M tools/metrics/histograms/metadata/blink/enums.xml
      Change size: L
      Delta: 7 files changed, 254 insertions(+), 0 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Kevin Babbitt, +1 by Alison Maher, +1 by Shunya Shishido
      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: I787d348fab52f815564762ef2c0555ec01218763
      Gerrit-Change-Number: 6839339
      Gerrit-PatchSet: 15
      Gerrit-Owner: Sam Davis Omekara <samome...@microsoft.com>
      Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Kevin Babbitt <kbab...@microsoft.com>
      Gerrit-Reviewer: Sam Davis Omekara <samome...@microsoft.com>
      Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
      Gerrit-CC: Alexis Menard <alexis...@intel.com>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages