Clean up legacy Font Editor experiment [devtools/devtools-frontend : main]

1 view
Skip to first unread message

Natallia Harshunova (Gerrit)

unread,
Apr 30, 2026, 3:36:07 AMĀ (5 days ago)Ā Apr 30
to Alex Rudenko, devtools-fro...@luci-project-accounts.iam.gserviceaccount.com, devtools-rev...@chromium.org
Attention needed from Alex Rudenko

Natallia Harshunova voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Alex Rudenko
Submit Requirements:
  • requirement 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: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: Ib4542e6ae85ebff1c01af0471cfefcd826c4f5c5
Gerrit-Change-Number: 7800883
Gerrit-PatchSet: 2
Gerrit-Owner: Natallia Harshunova <nhars...@chromium.org>
Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
Gerrit-Reviewer: Natallia Harshunova <nhars...@chromium.org>
Gerrit-Attention: Alex Rudenko <alexr...@chromium.org>
Gerrit-Comment-Date: Thu, 30 Apr 2026 07:36:04 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Wolfgang Beyer (Gerrit)

unread,
Apr 30, 2026, 3:05:43 PMĀ (4 days ago)Ā Apr 30
to Natallia Harshunova, devtools-fro...@luci-project-accounts.iam.gserviceaccount.com, devtools-rev...@chromium.org
Attention needed from Natallia Harshunova

Wolfgang Beyer added 3 comments

File front_end/panels/elements/StylePropertiesSection.ts
Line 425, Patchset 2 (Parent): if (this.stylesContainer.swatchPopoverHelper().isShowing() ||
this.styleInternal.type === SDK.CSSStyleDeclaration.Type.Inline) {
return;
}
if (this.fontEditorToolbar) {
this.fontEditorToolbar.classList.add('font-toolbar-hidden');
}
if (this.newStyleRuleToolbar) {
this.newStyleRuleToolbar.classList.remove('shifted-toolbar');
}
Wolfgang Beyer . unresolved

Is it really ok to delete all of this?

File front_end/panels/elements/StylePropertyTreeElement.ts
Line 3614, Patchset 2 (Parent): this.#parentSection.resetToolbars();
Wolfgang Beyer . unresolved

In case we need to keep `resetToolbars`, we'll need to keep this in as well.

File front_end/panels/elements/components/BUILD.gn
Line 53, Patchset 2 (Latest): "../../../ui/components/input:bundle",
Wolfgang Beyer . unresolved

Is this needed even though this CL only removes code?

Open in Gerrit

Related details

Attention is currently required from:
  • Natallia Harshunova
Submit Requirements:
    • requirement 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: devtools/devtools-frontend
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib4542e6ae85ebff1c01af0471cfefcd826c4f5c5
    Gerrit-Change-Number: 7800883
    Gerrit-PatchSet: 2
    Gerrit-Owner: Natallia Harshunova <nhars...@chromium.org>
    Gerrit-Reviewer: Natallia Harshunova <nhars...@chromium.org>
    Gerrit-Reviewer: Wolfgang Beyer <wo...@chromium.org>
    Gerrit-Attention: Natallia Harshunova <nhars...@chromium.org>
    Gerrit-Comment-Date: Thu, 30 Apr 2026 19:05:38 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Natallia Harshunova (Gerrit)

    unread,
    9:17 AMĀ (6 hours ago)Ā 9:17 AM
    to Wolfgang Beyer, devtools-fro...@luci-project-accounts.iam.gserviceaccount.com, devtools-rev...@chromium.org
    Attention needed from Wolfgang Beyer

    Natallia Harshunova added 1 comment

    File front_end/panels/elements/StylePropertiesSection.ts
    Line 425, Patchset 2 (Parent): if (this.stylesContainer.swatchPopoverHelper().isShowing() ||
    this.styleInternal.type === SDK.CSSStyleDeclaration.Type.Inline) {
    return;
    }
    if (this.fontEditorToolbar) {
    this.fontEditorToolbar.classList.add('font-toolbar-hidden');
    }
    if (this.newStyleRuleToolbar) {
    this.newStyleRuleToolbar.classList.remove('shifted-toolbar');
    }
    Wolfgang Beyer . unresolved

    Is it really ok to delete all of this?

    Natallia Harshunova

    Hi, i just saw it was added in exact CL that introduced this feature. Take a look
    https://chromium-review.git.corp.google.com/c/devtools/devtools-frontend/+/2305613/70/front_end/elements/StylesSidebarPane.js#1306
    Do you have any reason to consider it unsafe?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Wolfgang Beyer
    Submit Requirements:
    • requirement 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: devtools/devtools-frontend
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib4542e6ae85ebff1c01af0471cfefcd826c4f5c5
    Gerrit-Change-Number: 7800883
    Gerrit-PatchSet: 3
    Gerrit-Owner: Natallia Harshunova <nhars...@chromium.org>
    Gerrit-Reviewer: Natallia Harshunova <nhars...@chromium.org>
    Gerrit-Reviewer: Wolfgang Beyer <wo...@chromium.org>
    Gerrit-Attention: Wolfgang Beyer <wo...@chromium.org>
    Gerrit-Comment-Date: Mon, 04 May 2026 13:17:10 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Wolfgang Beyer <wo...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Natallia Harshunova (Gerrit)

    unread,
    9:55 AMĀ (6 hours ago)Ā 9:55 AM
    to Wolfgang Beyer, devtools-fro...@luci-project-accounts.iam.gserviceaccount.com, devtools-rev...@chromium.org
    Attention needed from Wolfgang Beyer

    Natallia Harshunova added 1 comment

    File front_end/panels/elements/components/BUILD.gn
    Line 53, Patchset 2: "../../../ui/components/input:bundle",
    Wolfgang Beyer . unresolved

    Is this needed even though this CL only removes code?

    Natallia Harshunova

    Hi.The file [front_end/panels/elements/components/StylePropertyEditor.ts](https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/panels/elements/components/StylePropertyEditor.ts;l=10) directly imports ui/components/input/input.js, but its direct dependency was never declared in this BUILD.gn. It used to compile because it leaked through a transitive dependency chain from another module. However, cleaning up the dead code for the font-editor in inline_editor and removing its unused deps broke that hidden chain, and the compiler started complaining about missing files. Adding this direct dependency is the correct fix and follows our best practices.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Wolfgang Beyer
    Submit Requirements:
    • requirement 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: devtools/devtools-frontend
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib4542e6ae85ebff1c01af0471cfefcd826c4f5c5
    Gerrit-Change-Number: 7800883
    Gerrit-PatchSet: 3
    Gerrit-Owner: Natallia Harshunova <nhars...@chromium.org>
    Gerrit-Reviewer: Natallia Harshunova <nhars...@chromium.org>
    Gerrit-Reviewer: Wolfgang Beyer <wo...@chromium.org>
    Gerrit-Attention: Wolfgang Beyer <wo...@chromium.org>
    Gerrit-Comment-Date: Mon, 04 May 2026 13:55:23 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages