Editing: Allow selection to extend into open <details> content [chromium/src : main]

0 views
Skip to first unread message

Vishwa Kalubowila (Gerrit)

unread,
Jul 24, 2026, 3:09:46 AM (3 days ago) Jul 24
to Stephen Chenney, David Baron, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
Attention needed from David Baron and Stephen Chenney

Vishwa Kalubowila added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Vishwa Kalubowila . resolved

Hi, could you take a look when you get a chance?

This addresses [crbug.com/477613569](https://issues.chromium.org/477613569): text inside an open <details> couldn't be selected when the drag started outside it. The fix makes <slot> transparent for its assigned light-DOM content in IsEditingBoundary, so it's no longer treated as an editing boundary — fallback/non-slotted shadow content is unchanged. I've also added a new test and updated the existing ShadowDistributedNodesWithEditingBoundary expectations accordingly.

Happy to make any changes, thanks for reviewing!

Open in Gerrit

Related details

Attention is currently required from:
  • David Baron
  • Stephen Chenney
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I9e832cd3201c2fc9b3780f389da8b1c9df5833e9
Gerrit-Change-Number: 8140425
Gerrit-PatchSet: 1
Gerrit-Owner: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Stephen Chenney <sche...@chromium.org>
Gerrit-Reviewer: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Attention: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: David Baron <dba...@chromium.org>
Gerrit-Comment-Date: Fri, 24 Jul 2026 07:09:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Stephen Chenney (Gerrit)

unread,
Jul 24, 2026, 10:07:13 AM (3 days ago) Jul 24
to Vishwa Kalubowila, Kent Tamura, David Baron, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
Attention needed from David Baron, Kent Tamura and Vishwa Kalubowila

Stephen Chenney added 1 comment

Patchset-level comments
Stephen Chenney . resolved

Switching to tkent@ to review. I'm concerned that I don't know about the rules for selection across shadow boundaries, and I'm also unsure what the selection range returned in JS should contain. I would like to that tested too in a WPT.

Open in Gerrit

Related details

Attention is currently required from:
  • David Baron
  • Kent Tamura
  • Vishwa Kalubowila
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I9e832cd3201c2fc9b3780f389da8b1c9df5833e9
Gerrit-Change-Number: 8140425
Gerrit-PatchSet: 1
Gerrit-Owner: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
Gerrit-Reviewer: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Attention: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Attention: Kent Tamura <tk...@chromium.org>
Gerrit-Attention: David Baron <dba...@chromium.org>
Gerrit-Comment-Date: Fri, 24 Jul 2026 14:06:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

David Baron (Gerrit)

unread,
Jul 24, 2026, 10:36:02 AM (3 days ago) Jul 24
to Vishwa Kalubowila, Kent Tamura, David Baron, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
Attention needed from Kent Tamura and Vishwa Kalubowila

David Baron added 1 comment

Patchset-level comments
David Baron . resolved

I'd like to hear what tkent (or another editor expert) thinks first.

Open in Gerrit

Related details

Attention is currently required from:
  • Kent Tamura
  • Vishwa Kalubowila
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I9e832cd3201c2fc9b3780f389da8b1c9df5833e9
Gerrit-Change-Number: 8140425
Gerrit-PatchSet: 1
Gerrit-Owner: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
Gerrit-Reviewer: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Attention: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Attention: Kent Tamura <tk...@chromium.org>
Gerrit-Comment-Date: Fri, 24 Jul 2026 14:35:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Kent Tamura (Gerrit)

unread,
Jul 26, 2026, 8:06:09 PM (8 hours ago) Jul 26
to Vishwa Kalubowila, Kent Tamura, David Baron, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
Attention needed from Vishwa Kalubowila

Kent Tamura added 1 comment

Patchset-level comments
Kent Tamura . resolved

The behavior change sounds reasonable.

Please add a runtime flag to runtime_enabled_features.json5, and enable the new behavior only if the flag is enabled.
https://chromium.googlesource.com/chromium/src/+/main/docs/flag_guarding_guidelines.md

Open in Gerrit

Related details

Attention is currently required from:
  • Vishwa Kalubowila
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I9e832cd3201c2fc9b3780f389da8b1c9df5833e9
Gerrit-Change-Number: 8140425
Gerrit-PatchSet: 1
Gerrit-Owner: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
Gerrit-Reviewer: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Attention: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Comment-Date: Mon, 27 Jul 2026 00:05:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Vishwa Kalubowila (Gerrit)

unread,
3:05 AM (1 hour ago) 3:05 AM
to Kent Tamura, David Baron, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
Attention needed from Kent Tamura

Vishwa Kalubowila added 1 comment

Patchset-level comments
Kent Tamura . resolved

The behavior change sounds reasonable.

Please add a runtime flag to runtime_enabled_features.json5, and enable the new behavior only if the flag is enabled.
https://chromium.googlesource.com/chromium/src/+/main/docs/flag_guarding_guidelines.md

Vishwa Kalubowila

Done.Added SelectionEditingBoundarySlottedContent flag (status: "stable") for Finch rollout/kill-switch support.
Guarded the <slot> logic behind the flag to preserve previous behavior when disabled. Added tests covering both flag-on and flag-off paths.

Open in Gerrit

Related details

Attention is currently required from:
  • Kent Tamura
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I9e832cd3201c2fc9b3780f389da8b1c9df5833e9
Gerrit-Change-Number: 8140425
Gerrit-PatchSet: 1
Gerrit-Owner: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
Gerrit-Reviewer: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Attention: Kent Tamura <tk...@chromium.org>
Gerrit-Comment-Date: Mon, 27 Jul 2026 07:05:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kent Tamura <tk...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Kent Tamura (Gerrit)

unread,
3:56 AM (22 minutes ago) 3:56 AM
to Vishwa Kalubowila, Kent Tamura, android-bu...@system.gserviceaccount.com, David Baron, Chromium LUCI CQ, chromium...@chromium.org, kinuko...@chromium.org, jmedle...@chromium.org, blink-...@chromium.org
Attention needed from Vishwa Kalubowila

Kent Tamura voted and added 2 comments

Votes added by Kent Tamura

Code-Review+1

2 comments

File third_party/blink/renderer/core/editing/selection_adjuster_test.cc
Line 425, Patchset 2 (Latest): Element* host = GetDocument().getElementById(AtomicString("host"));
Kent Tamura . unresolved

nit: ➜ `GetElementById("host")`

Line 430, Patchset 2 (Latest): Element* foo = GetDocument().getElementById(AtomicString("foo"));
Element* bar = GetDocument().getElementById(AtomicString("bar"));
Kent Tamura . unresolved

Ditto.

Open in Gerrit

Related details

Attention is currently required from:
  • Vishwa Kalubowila
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • 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: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I9e832cd3201c2fc9b3780f389da8b1c9df5833e9
Gerrit-Change-Number: 8140425
Gerrit-PatchSet: 2
Gerrit-Owner: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
Gerrit-Reviewer: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Attention: Vishwa Kalubowila <vishwa.k...@codimite.com>
Gerrit-Comment-Date: Mon, 27 Jul 2026 07:56:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages