Attach WebContents to HeadlessWindowTreeHost during password change [chromium/src : main]

0 views
Skip to first unread message

Viktor Semeniuk (Gerrit)

unread,
Feb 17, 2026, 10:56:01 AM (3 days ago) Feb 17
to Robert Liao, Vasilii Sukhanov, Erik Chen, Peter Kvitek, AyeAye, chromium...@chromium.org, Chromium LUCI CQ, mfoltz+wa...@chromium.org, gcasto+w...@chromium.org, max+watc...@igalia.com, milicau+watchlis...@google.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org, vasilii+watchlis...@chromium.org
Attention needed from Robert Liao and Vasilii Sukhanov

Viktor Semeniuk added 2 comments

Patchset-level comments
File-level comment, Patchset 16 (Latest):
Viktor Semeniuk . resolved

Hi Robert and Vasilii, PTAL
Thanks!

File chrome/browser/password_manager/password_change_delegate_impl.cc
Line 148, Patchset 6:class HeadlessWindowTreeHost : public aura::WindowTreeHost {
Peter Kvitek . resolved

Could we rename this to something not having `Headless`? `DetachedWindowTreeHost` or something like that.

Reason: Headless is already overloaded in Chrome source tree so it would be good to avoid adding another overload.

Viktor Semeniuk

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Robert Liao
  • Vasilii Sukhanov
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib605c66a1d64aa6cc6419248c5057eaab38223eb
Gerrit-Change-Number: 6983369
Gerrit-PatchSet: 16
Gerrit-Owner: Viktor Semeniuk <vsem...@google.com>
Gerrit-Reviewer: Robert Liao <rob...@chromium.org>
Gerrit-Reviewer: Vasilii Sukhanov <vas...@chromium.org>
Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
Gerrit-CC: Erik Chen <erik...@chromium.org>
Gerrit-CC: Peter Kvitek <kvi...@chromium.org>
Gerrit-Attention: Robert Liao <rob...@chromium.org>
Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Feb 2026 15:55:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Peter Kvitek <kvi...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Robert Liao (Gerrit)

unread,
Feb 17, 2026, 5:53:16 PM (3 days ago) Feb 17
to Viktor Semeniuk, Keren Zhu, Vasilii Sukhanov, Erik Chen, Peter Kvitek, AyeAye, chromium...@chromium.org, Chromium LUCI CQ, mfoltz+wa...@chromium.org, gcasto+w...@chromium.org, max+watc...@igalia.com, milicau+watchlis...@google.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org, vasilii+watchlis...@chromium.org
Attention needed from Keren Zhu, Vasilii Sukhanov and Viktor Semeniuk

Robert Liao added 1 comment

Patchset-level comments
File-level comment, Patchset 18 (Latest):
Robert Liao . resolved

Adding kerenzhu@ as well.

Open in Gerrit

Related details

Attention is currently required from:
  • Keren Zhu
  • Vasilii Sukhanov
  • Viktor Semeniuk
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib605c66a1d64aa6cc6419248c5057eaab38223eb
Gerrit-Change-Number: 6983369
Gerrit-PatchSet: 18
Gerrit-Owner: Viktor Semeniuk <vsem...@google.com>
Gerrit-Reviewer: Keren Zhu <kere...@chromium.org>
Gerrit-Reviewer: Robert Liao <rob...@chromium.org>
Gerrit-Reviewer: Vasilii Sukhanov <vas...@chromium.org>
Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
Gerrit-CC: Erik Chen <erik...@chromium.org>
Gerrit-CC: Peter Kvitek <kvi...@chromium.org>
Gerrit-Attention: Viktor Semeniuk <vsem...@google.com>
Gerrit-Attention: Keren Zhu <kere...@chromium.org>
Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Feb 2026 22:53:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Robert Liao (Gerrit)

unread,
Feb 17, 2026, 6:02:33 PM (3 days ago) Feb 17
to Viktor Semeniuk, Keren Zhu, Vasilii Sukhanov, Erik Chen, Peter Kvitek, AyeAye, chromium...@chromium.org, Chromium LUCI CQ, mfoltz+wa...@chromium.org, gcasto+w...@chromium.org, max+watc...@igalia.com, milicau+watchlis...@google.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org, vasilii+watchlis...@chromium.org
Attention needed from Keren Zhu, Vasilii Sukhanov and Viktor Semeniuk

Robert Liao added 3 comments

File chrome/browser/password_manager/password_change/detached_window_tree_host.h
Line 19, Patchset 18 (Latest):
// WindowTreeHost:
Robert Liao . resolved
Optional:
```suggestion
private:
// WindowTreeHost:
```

This encourages folks to use the underlying aura::WindowTreeHost type instead of the concrete type.

Line 14, Patchset 18 (Latest):class DetachedWindowTreeHost : public aura::WindowTreeHost {
Robert Liao . unresolved

Add a quick comment above to indicate this is a special WindowTreeHost that will not actually show the underlying native_view.

File chrome/browser/password_manager/password_change/detached_window_tree_host.cc
Line 21, Patchset 18 (Latest): CreateCompositor(false, false);
Robert Liao . unresolved

These are default arguments to CreateCompositor. Are these values critical for this to work?

Gerrit-Comment-Date: Tue, 17 Feb 2026 23:02:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Keren Zhu (Gerrit)

unread,
Feb 17, 2026, 11:11:55 PM (2 days ago) Feb 17
to Viktor Semeniuk, Robert Liao, Vasilii Sukhanov, Erik Chen, Peter Kvitek, AyeAye, chromium...@chromium.org, Chromium LUCI CQ, mfoltz+wa...@chromium.org, gcasto+w...@chromium.org, max+watc...@igalia.com, milicau+watchlis...@google.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org, vasilii+watchlis...@chromium.org
Attention needed from Vasilii Sukhanov and Viktor Semeniuk

Keren Zhu voted and added 4 comments

Votes added by Keren Zhu

Code-Review+1

4 comments

Commit Message
Line 10, Patchset 18 (Latest):like rAF aren't propsagated. This results in APC failures. To resolve
Keren Zhu . unresolved

nit: typo

File chrome/browser/password_manager/password_change/detached_window_tree_host.h
Line 14, Patchset 18 (Latest):class DetachedWindowTreeHost : public aura::WindowTreeHost {
Robert Liao . unresolved

Add a quick comment above to indicate this is a special WindowTreeHost that will not actually show the underlying native_view.

Keren Zhu

+1. Also explains that this is needed to drive `requestAnimationFrame()` in a detached WebContents.

File chrome/browser/password_manager/password_change/detached_window_tree_host.cc
Line 68, Patchset 18 (Latest):void DetachedWindowTreeHost::ShowImpl() {}
Keren Zhu . unresolved

nit: add a blank line between each function.

File components/password_manager/core/browser/features/password_features.h
Line 189, Patchset 18 (Latest):// to which WebContents is attached. This helps to resolve some a problem with
// animations.
Keren Zhu . unresolved

```suggestion
// to which WebContents is attached. This helps to resolve the problem
// that requestAnimationFrame() is not fired on a detached WebContents.
```

Open in Gerrit

Related details

Attention is currently required from:
  • Vasilii Sukhanov
  • Viktor Semeniuk
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement 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: Ib605c66a1d64aa6cc6419248c5057eaab38223eb
    Gerrit-Change-Number: 6983369
    Gerrit-PatchSet: 18
    Gerrit-Owner: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Reviewer: Keren Zhu <kere...@chromium.org>
    Gerrit-Reviewer: Robert Liao <rob...@chromium.org>
    Gerrit-Reviewer: Vasilii Sukhanov <vas...@chromium.org>
    Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
    Gerrit-CC: Erik Chen <erik...@chromium.org>
    Gerrit-CC: Peter Kvitek <kvi...@chromium.org>
    Gerrit-Attention: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
    Gerrit-Comment-Date: Wed, 18 Feb 2026 04:11:48 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Robert Liao <rob...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages