[PEPC] Restrict Permission icon's height and margin. [chromium/src : main]

0 views
Skip to first unread message

Andy Paicu (Gerrit)

unread,
Jun 23, 2025, 1:21:12 PMJun 23
to Ravjit Uppal, Chromium LUCI CQ, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Ravjit Uppal

Andy Paicu added 6 comments

File third_party/blink/renderer/core/html/html_permission_element_utils.h
Line 35, Patchset 9 (Latest): static const CalculationExpressionNode* BuildLengthBoundExpr(
Andy Paicu . unresolved

These 2 functions can be internal-only (defined in an anonymous namespace in the cc file), I think only the function above is actually called.

File third_party/blink/renderer/core/html/html_permission_icon_element.cc
Line 55, Patchset 9 (Latest): Element::AdjustStyle(builder);
Andy Paicu . unresolved

What about other properties like stroke-width? Should they have a max size to not interfere with the test?

Line 63, Patchset 9 (Latest): builder.SetWidth(
Andy Paicu . unresolved

I believe that `width` was supposed to just duplicate height, you can do this by setting it here (both for width and minwidth)

Also when adding this, it would be good set a console warning if we have a width here that is not auto and not already equal to height.

Line 107, Patchset 9 (Latest): "the min/max width and height of the permission element";
Andy Paicu . unresolved

"of the permission element's icon"

also only the height can be set I believe, the width is supposed to copy it.

File third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-height-bounded-reftest-ref.html
Line 4, Patchset 9 (Latest): A standard permission element of type location, with 50px icon height.
Andy Paicu . unresolved

This explanation should go in the reftest. Also same comment about setting the value to the precise expected value as below.

File third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-margin-bounded-reftest-ref.html
Line 10, Patchset 9 (Latest): margin-inline-end: 80px;
Andy Paicu . unresolved

if you define the font-size of the permission element you should be able to precisely set the precise value of 3em and not need to rely on the clamping in this reference file as well.

Open in Gerrit

Related details

Attention is currently required from:
  • Ravjit Uppal
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: I579f9bc6b3ea315db36cdd244ec630784e9e4aee
Gerrit-Change-Number: 6652569
Gerrit-PatchSet: 9
Gerrit-Owner: Ravjit Uppal <rav...@chromium.org>
Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
Gerrit-Comment-Date: Mon, 23 Jun 2025 17:21:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Ravjit Uppal (Gerrit)

unread,
Jun 24, 2025, 1:06:33 PMJun 24
to Andy Paicu, Chromium LUCI CQ, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Andy Paicu

Ravjit Uppal added 6 comments

File third_party/blink/renderer/core/html/html_permission_element_utils.h
Line 35, Patchset 9: static const CalculationExpressionNode* BuildLengthBoundExpr(
Andy Paicu . resolved

These 2 functions can be internal-only (defined in an anonymous namespace in the cc file), I think only the function above is actually called.

Ravjit Uppal

Done

File third_party/blink/renderer/core/html/html_permission_icon_element.cc
Line 55, Patchset 9: Element::AdjustStyle(builder);
Andy Paicu . unresolved

What about other properties like stroke-width? Should they have a max size to not interfere with the test?

Ravjit Uppal

How can it affect the test? The default for stroke-width is 1px unless it is explicitly set.

Line 63, Patchset 9: builder.SetWidth(
Andy Paicu . resolved

I believe that `width` was supposed to just duplicate height, you can do this by setting it here (both for width and minwidth)

Also when adding this, it would be good set a console warning if we have a width here that is not auto and not already equal to height.

Ravjit Uppal

Done

Line 107, Patchset 9: "the min/max width and height of the permission element";
Andy Paicu . resolved

"of the permission element's icon"

also only the height can be set I believe, the width is supposed to copy it.

Ravjit Uppal

Done

File third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-height-bounded-reftest-ref.html
Line 4, Patchset 9: A standard permission element of type location, with 50px icon height.
Andy Paicu . resolved

This explanation should go in the reftest. Also same comment about setting the value to the precise expected value as below.

Ravjit Uppal

Done

File third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-margin-bounded-reftest-ref.html
Line 10, Patchset 9: margin-inline-end: 80px;
Andy Paicu . resolved

if you define the font-size of the permission element you should be able to precisely set the precise value of 3em and not need to rely on the clamping in this reference file as well.

Ravjit Uppal

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Andy Paicu
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: I579f9bc6b3ea315db36cdd244ec630784e9e4aee
Gerrit-Change-Number: 6652569
Gerrit-PatchSet: 10
Gerrit-Owner: Ravjit Uppal <rav...@chromium.org>
Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
Gerrit-Attention: Andy Paicu <andy...@chromium.org>
Gerrit-Comment-Date: Tue, 24 Jun 2025 17:06:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Andy Paicu <andy...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Andy Paicu (Gerrit)

unread,
Jun 25, 2025, 3:16:02 AMJun 25
to Ravjit Uppal, Chromium LUCI CQ, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Ravjit Uppal

Andy Paicu added 1 comment

File third_party/blink/renderer/core/html/html_permission_icon_element.cc
Line 55, Patchset 9: Element::AdjustStyle(builder);
Andy Paicu . unresolved

What about other properties like stroke-width? Should they have a max size to not interfere with the test?

Ravjit Uppal

How can it affect the test? The default for stroke-width is 1px unless it is explicitly set.

Andy Paicu

Sorry, typo: I meant to say "text". As in if you set a large value for stoke-width will it end up covering the text of the permission element.

Open in Gerrit

Related details

Attention is currently required from:
  • Ravjit Uppal
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: I579f9bc6b3ea315db36cdd244ec630784e9e4aee
Gerrit-Change-Number: 6652569
Gerrit-PatchSet: 11
Gerrit-Owner: Ravjit Uppal <rav...@chromium.org>
Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
Gerrit-Comment-Date: Wed, 25 Jun 2025 07:15:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Andy Paicu <andy...@chromium.org>
Comment-In-Reply-To: Ravjit Uppal <rav...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Ravjit Uppal (Gerrit)

unread,
Jun 27, 2025, 9:45:52 AMJun 27
to Andy Paicu, Chromium LUCI CQ, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Andy Paicu

Ravjit Uppal added 1 comment

File third_party/blink/renderer/core/html/html_permission_icon_element.cc
Line 55, Patchset 9: Element::AdjustStyle(builder);
Andy Paicu . unresolved

What about other properties like stroke-width? Should they have a max size to not interfere with the test?

Ravjit Uppal

How can it affect the test? The default for stroke-width is 1px unless it is explicitly set.

Andy Paicu

Sorry, typo: I meant to say "text". As in if you set a large value for stoke-width will it end up covering the text of the permission element.

Ravjit Uppal

I tested. The SVG doesn't render outside it's max-height and width. Setting a large stroke-width doesn't interfere with the text, it just makes the icon illegible.

Open in Gerrit

Related details

Attention is currently required from:
  • Andy Paicu
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: I579f9bc6b3ea315db36cdd244ec630784e9e4aee
Gerrit-Change-Number: 6652569
Gerrit-PatchSet: 11
Gerrit-Owner: Ravjit Uppal <rav...@chromium.org>
Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
Gerrit-Attention: Andy Paicu <andy...@chromium.org>
Gerrit-Comment-Date: Fri, 27 Jun 2025 13:45:39 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Andy Paicu (Gerrit)

unread,
Jun 27, 2025, 10:17:49 AMJun 27
to Ravjit Uppal, Chromium LUCI CQ, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Ravjit Uppal

Andy Paicu voted and added 7 comments

Votes added by Andy Paicu

Code-Review+1

7 comments

File third_party/blink/renderer/core/html/html_permission_icon_element.cc
Line 55, Patchset 9: Element::AdjustStyle(builder);
Andy Paicu . resolved

What about other properties like stroke-width? Should they have a max size to not interfere with the test?

Ravjit Uppal

How can it affect the test? The default for stroke-width is 1px unless it is explicitly set.

Andy Paicu

Sorry, typo: I meant to say "text". As in if you set a large value for stoke-width will it end up covering the text of the permission element.

Ravjit Uppal

I tested. The SVG doesn't render outside it's max-height and width. Setting a large stroke-width doesn't interfere with the text, it just makes the icon illegible.

Andy Paicu

Acknowledged

Line 61, Patchset 11 (Latest): LOG(WARNING) << warning;
Andy Paicu . unresolved

I don't think we need this LOG, just the console message.

Line 86, Patchset 11 (Latest): builder.SetMarginRight(AdjustedBoundedLengthWrapper(
Andy Paicu . unresolved

and SetMarginLeft(0)

Line 93, Patchset 11 (Latest): builder.MarginLeft(),
Andy Paicu . unresolved

and SetMarginRight(0)

Line 113, Patchset 11 (Latest): LOG(WARNING) << warning;
Andy Paicu . unresolved

I don't think we need this LOG, just the console message.

File third_party/blink/renderer/core/html/resources/permission.css
Line 66, Patchset 11 (Latest): height: 1.3em;
Andy Paicu . unresolved

I would put `width: auto` here.

File third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-height-bounded-reftest-ref.html
Line 15, Patchset 11 (Latest): height: var(--height);
Andy Paicu . unresolved

I'm confused why we don't set the height directly to 15px here.

Open in Gerrit

Related details

Attention is currently required from:
  • Ravjit Uppal
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: I579f9bc6b3ea315db36cdd244ec630784e9e4aee
    Gerrit-Change-Number: 6652569
    Gerrit-PatchSet: 11
    Gerrit-Owner: Ravjit Uppal <rav...@chromium.org>
    Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
    Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
    Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
    Gerrit-Comment-Date: Fri, 27 Jun 2025 14:17:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ravjit Uppal (Gerrit)

    unread,
    Jul 2, 2025, 7:38:39 AMJul 2
    to Andy Paicu, Chromium LUCI CQ, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org

    Ravjit Uppal added 6 comments

    File third_party/blink/renderer/core/html/html_permission_icon_element.cc
    Line 61, Patchset 11 (Latest): LOG(WARNING) << warning;
    Andy Paicu . resolved

    I don't think we need this LOG, just the console message.

    Ravjit Uppal

    Done

    Line 86, Patchset 11 (Latest): builder.SetMarginRight(AdjustedBoundedLengthWrapper(
    Andy Paicu . resolved

    and SetMarginLeft(0)

    Ravjit Uppal

    Done

    Line 93, Patchset 11 (Latest): builder.MarginLeft(),
    Andy Paicu . resolved

    and SetMarginRight(0)

    Ravjit Uppal

    Done

    Line 113, Patchset 11 (Latest): LOG(WARNING) << warning;
    Andy Paicu . resolved

    I don't think we need this LOG, just the console message.

    Ravjit Uppal

    Done

    File third_party/blink/renderer/core/html/resources/permission.css
    Andy Paicu . resolved

    I would put `width: auto` here.

    Ravjit Uppal

    Done

    File third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-height-bounded-reftest-ref.html
    Line 15, Patchset 11 (Latest): height: var(--height);
    Andy Paicu . resolved

    I'm confused why we don't set the height directly to 15px here.

    Ravjit Uppal

    Fixed.
    I over engineered it xD

    Open in Gerrit

    Related details

    Attention set is empty
    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: I579f9bc6b3ea315db36cdd244ec630784e9e4aee
    Gerrit-Change-Number: 6652569
    Gerrit-PatchSet: 11
    Gerrit-Owner: Ravjit Uppal <rav...@chromium.org>
    Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
    Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
    Gerrit-Comment-Date: Wed, 02 Jul 2025 11:38:21 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Joey Arhar (Gerrit)

    unread,
    Jul 2, 2025, 11:29:30 AMJul 2
    to Ravjit Uppal, Andy Paicu, Chromium LUCI CQ, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
    Attention needed from Ravjit Uppal

    Joey Arhar added 6 comments

    File third_party/blink/renderer/core/html/html_permission_element_utils.h
    Line 23, Patchset 11 (Latest):
    Joey Arhar . unresolved

    Want to put a `//` on this line so I can tell that the first paragraph is talking about AdjustedBoundedLength? Right now it looks like it might be documenting the HTMLPermissionElementUtils class.

    File third_party/blink/renderer/core/html/html_permission_element_utils.cc
    File-level comment, Patchset 11 (Latest):
    Joey Arhar . unresolved

    How similar is this to the removed code in html_permission_element.cc? Is there a small portion that is changed that I could focus on?

    File third_party/blink/renderer/core/html/html_permission_icon_element.h
    Line 41, Patchset 11 (Latest): // A bool that tracks whether a specific console message was sent already to
    // ensure it's not sent again.
    bool length_console_error_sent_ = false;

    // A bool that tracks whether a specific console message was sent already to
    // ensure it's not sent again.
    bool width_console_error_sent_ = false;
    Joey Arhar . unresolved

    The DevTools frontend already has logic to deduplicate and combine similar console messages. If the affected scenario emits a couple messages, I might consider removing this. If it gets sent hundreds or thousands of times though, I think this is a good idea for performance reasons and we should keep it.

    File third_party/blink/renderer/core/html/html_permission_icon_element.cc
    Line 61, Patchset 11 (Latest): LOG(WARNING) << warning;
    Andy Paicu . unresolved

    I don't think we need this LOG, just the console message.

    Ravjit Uppal

    Done

    Joey Arhar

    I still see LOG(WARNING) here, and I'm not sure the other comments in this file have actually been addressed?

    File third_party/blink/renderer/core/html/resources/permission.css
    Andy Paicu . unresolved

    I would put `width: auto` here.

    Ravjit Uppal

    Done

    Joey Arhar

    I see `width: 1.3em` removed, but I don't see a `width: auto`. Is `width: auto` the default value?

    File third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-height-bounded-reftest-ref.html
    Line 15, Patchset 11 (Latest): height: var(--height);
    Andy Paicu . unresolved

    I'm confused why we don't set the height directly to 15px here.

    Ravjit Uppal

    Fixed.
    I over engineered it xD

    Joey Arhar

    I still see `var(--height)` instead of `15px`

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ravjit Uppal
    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: I579f9bc6b3ea315db36cdd244ec630784e9e4aee
      Gerrit-Change-Number: 6652569
      Gerrit-PatchSet: 11
      Gerrit-Owner: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Comment-Date: Wed, 02 Jul 2025 15:29:18 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Andy Paicu <andy...@chromium.org>
      Comment-In-Reply-To: Ravjit Uppal <rav...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Ravjit Uppal (Gerrit)

      unread,
      Jul 7, 2025, 9:34:25 AM (12 days ago) Jul 7
      to Andy Paicu, Chromium LUCI CQ, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
      Attention needed from Joey Arhar

      Ravjit Uppal added 6 comments

      File third_party/blink/renderer/core/html/html_permission_element_utils.h
      Line 23, Patchset 11:
      Joey Arhar . resolved

      Want to put a `//` on this line so I can tell that the first paragraph is talking about AdjustedBoundedLength? Right now it looks like it might be documenting the HTMLPermissionElementUtils class.

      Ravjit Uppal

      Done

      File third_party/blink/renderer/core/html/html_permission_element_utils.cc

      How similar is this to the removed code in html_permission_element.cc? Is there a small portion that is changed that I could focus on?

      Ravjit Uppal

      It is exactly the same. It is just moved to a util class.

      File third_party/blink/renderer/core/html/html_permission_icon_element.h
      Line 41, Patchset 11: // A bool that tracks whether a specific console message was sent already to

      // ensure it's not sent again.
      bool length_console_error_sent_ = false;

      // A bool that tracks whether a specific console message was sent already to
      // ensure it's not sent again.
      bool width_console_error_sent_ = false;
      Joey Arhar . unresolved

      The DevTools frontend already has logic to deduplicate and combine similar console messages. If the affected scenario emits a couple messages, I might consider removing this. If it gets sent hundreds or thousands of times though, I think this is a good idea for performance reasons and we should keep it.

      Ravjit Uppal

      AdjustStyle gets called very often while navigating the page. Let's keep this?

      File third_party/blink/renderer/core/html/html_permission_icon_element.cc
      Line 61, Patchset 11: LOG(WARNING) << warning;
      Andy Paicu . resolved

      I don't think we need this LOG, just the console message.

      Ravjit Uppal

      Done

      Joey Arhar

      I still see LOG(WARNING) here, and I'm not sure the other comments in this file have actually been addressed?

      Ravjit Uppal

      Ah the latest changes were not pushed.
      Done

      File third_party/blink/renderer/core/html/resources/permission.css
      Line 66, Patchset 11: height: 1.3em;
      Andy Paicu . resolved

      I would put `width: auto` here.

      Ravjit Uppal

      Done

      Joey Arhar

      I see `width: 1.3em` removed, but I don't see a `width: auto`. Is `width: auto` the default value?

      Ravjit Uppal

      Done

      File third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-height-bounded-reftest-ref.html
      Line 15, Patchset 11: height: var(--height);
      Andy Paicu . resolved

      I'm confused why we don't set the height directly to 15px here.

      Ravjit Uppal

      Fixed.
      I over engineered it xD

      Joey Arhar

      I still see `var(--height)` instead of `15px`

      Ravjit Uppal

      Marked as resolved.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Joey Arhar
      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: I579f9bc6b3ea315db36cdd244ec630784e9e4aee
      Gerrit-Change-Number: 6652569
      Gerrit-PatchSet: 13
      Gerrit-Owner: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Attention: Joey Arhar <jar...@chromium.org>
      Gerrit-Comment-Date: Mon, 07 Jul 2025 13:34:09 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Andy Paicu <andy...@chromium.org>
      Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
      Comment-In-Reply-To: Ravjit Uppal <rav...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Joey Arhar (Gerrit)

      unread,
      Jul 7, 2025, 2:13:24 PM (11 days ago) Jul 7
      to Ravjit Uppal, Andy Paicu, Chromium LUCI CQ, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
      Attention needed from Ravjit Uppal

      Joey Arhar voted and added 1 comment

      Votes added by Joey Arhar

      Code-Review+1

      1 comment

      File third_party/blink/renderer/core/html/html_permission_icon_element.h
      Line 41, Patchset 11: // A bool that tracks whether a specific console message was sent already to
      // ensure it's not sent again.
      bool length_console_error_sent_ = false;

      // A bool that tracks whether a specific console message was sent already to
      // ensure it's not sent again.
      bool width_console_error_sent_ = false;
      Joey Arhar . resolved

      The DevTools frontend already has logic to deduplicate and combine similar console messages. If the affected scenario emits a couple messages, I might consider removing this. If it gets sent hundreds or thousands of times though, I think this is a good idea for performance reasons and we should keep it.

      Ravjit Uppal

      AdjustStyle gets called very often while navigating the page. Let's keep this?

      Joey Arhar

      ok

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Ravjit Uppal
      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: I579f9bc6b3ea315db36cdd244ec630784e9e4aee
      Gerrit-Change-Number: 6652569
      Gerrit-PatchSet: 13
      Gerrit-Owner: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Comment-Date: Mon, 07 Jul 2025 18:13:13 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Blink W3C Test Autoroller (Gerrit)

      unread,
      Jul 7, 2025, 2:20:35 PM (11 days ago) Jul 7
      to Ravjit Uppal, Andy Paicu, Chromium LUCI CQ, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
      Attention needed from Ravjit Uppal

      Message from Blink W3C Test Autoroller

      Exportable changes to web-platform-tests were detected in this CL and a pull request in the upstream repo has been made: https://github.com/web-platform-tests/wpt/pull/53632.

      When this CL lands, the bot will automatically merge the PR on GitHub if the required GitHub checks pass; otherwise, ecosystem-infra@ team will triage the failures and may contact you.

      WPT Export docs:
      https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md#Automatic-export-process

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Ravjit Uppal
      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: I579f9bc6b3ea315db36cdd244ec630784e9e4aee
      Gerrit-Change-Number: 6652569
      Gerrit-PatchSet: 13
      Gerrit-Owner: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
      Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
      Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Comment-Date: Mon, 07 Jul 2025 18:20:29 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      satisfied_requirement
      open
      diffy

      Ravjit Uppal (Gerrit)

      unread,
      Jul 8, 2025, 10:58:24 AM (11 days ago) Jul 8
      to Blink W3C Test Autoroller, Andy Paicu, Chromium LUCI CQ, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org

      Ravjit Uppal 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: I579f9bc6b3ea315db36cdd244ec630784e9e4aee
      Gerrit-Change-Number: 6652569
      Gerrit-PatchSet: 13
      Gerrit-Owner: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
      Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
      Gerrit-Comment-Date: Tue, 08 Jul 2025 14:58:12 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Jul 8, 2025, 11:56:38 AM (11 days ago) Jul 8
      to Ravjit Uppal, Blink W3C Test Autoroller, Andy Paicu, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org

      Chromium LUCI CQ submitted the change

      Change information

      Commit message:
      [PEPC] Restrict Permission icon's height and margin.

      Permission icon's height or width should not exceed 1.5em The
      margin-inline-end should not exceed 3em. Other margins are immutable.
      DD: go/permission-icon-dd
      Bug: 417423571
      Change-Id: I579f9bc6b3ea315db36cdd244ec630784e9e4aee
      Commit-Queue: Ravjit Uppal <rav...@chromium.org>
      Reviewed-by: Andy Paicu <andy...@chromium.org>
      Reviewed-by: Joey Arhar <jar...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1483797}
      Files:
      • M third_party/blink/renderer/core/html/build.gni
      • M third_party/blink/renderer/core/html/html_permission_element.cc
      • M third_party/blink/renderer/core/html/html_permission_element.h
      • A third_party/blink/renderer/core/html/html_permission_element_utils.cc
      • A third_party/blink/renderer/core/html/html_permission_element_utils.h
      • M third_party/blink/renderer/core/html/html_permission_icon_element.cc
      • M third_party/blink/renderer/core/html/html_permission_icon_element.h
      • M third_party/blink/renderer/core/html/resources/permission.css
      • A third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-height-bounded-reftest-ref.html
      • A third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-height-bounded-reftest.html
      • M third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-height-reftest.html
      • A third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-margin-bounded-reftest-ref.html
      • A third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-margin-bounded-reftest.html
      • M third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-max-height-reftest-ref.html
      • A third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-min-height-reftest-ref.html
      • M third_party/blink/web_tests/external/wpt/html/semantics/permission-element/permission-icon/icon-css-property-min-height-reftest.html
      Change size: L
      Delta: 16 files changed, 384 insertions(+), 155 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Andy Paicu, +1 by Joey Arhar
      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: I579f9bc6b3ea315db36cdd244ec630784e9e4aee
      Gerrit-Change-Number: 6652569
      Gerrit-PatchSet: 14
      Gerrit-Owner: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      open
      diffy
      satisfied_requirement

      Blink W3C Test Autoroller (Gerrit)

      unread,
      Jul 8, 2025, 12:50:26 PM (11 days ago) Jul 8
      to Chromium LUCI CQ, Ravjit Uppal, Andy Paicu, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org

      Message from Blink W3C Test Autoroller

      The WPT PR for this CL has been merged upstream! https://github.com/web-platform-tests/wpt/pull/53632

      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: I579f9bc6b3ea315db36cdd244ec630784e9e4aee
      Gerrit-Change-Number: 6652569
      Gerrit-PatchSet: 14
      Gerrit-Owner: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
      Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
      Gerrit-Comment-Date: Tue, 08 Jul 2025 16:50:21 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      satisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages