Attach WebContents to a hidden Widget during password change [chromium/src : main]

0 views
Skip to first unread message

Viktor Semeniuk (Gerrit)

unread,
Feb 18, 2026, 5:40:10 AM (2 days ago) Feb 18
to Keren Zhu, 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 Keren Zhu, Robert Liao and Vasilii Sukhanov

Viktor Semeniuk voted and added 6 comments

Votes added by Viktor Semeniuk

Commit-Queue+1

6 comments

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

Moving Robert and Keren to CC since I managed to get this working with a hidden Widget alone which is way simpler and appears to be working without any issues.

Vasilii PTAL

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

nit: typo

Viktor Semeniuk

Done

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

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.

Viktor Semeniuk

Done

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

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

Viktor Semeniuk

Acknowledged

Line 68, Patchset 18:void DetachedWindowTreeHost::ShowImpl() {}
Keren Zhu . resolved

nit: add a blank line between each function.

Viktor Semeniuk

Acknowledged

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

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

Viktor Semeniuk

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Keren Zhu
  • 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: 23
Gerrit-Owner: Viktor Semeniuk <vsem...@google.com>
Gerrit-Reviewer: Vasilii Sukhanov <vas...@chromium.org>
Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
Gerrit-CC: Erik Chen <erik...@chromium.org>
Gerrit-CC: Keren Zhu <kere...@chromium.org>
Gerrit-CC: Peter Kvitek <kvi...@chromium.org>
Gerrit-CC: Robert Liao <rob...@chromium.org>
Gerrit-Attention: Robert Liao <rob...@chromium.org>
Gerrit-Attention: Keren Zhu <kere...@chromium.org>
Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
Gerrit-Comment-Date: Wed, 18 Feb 2026 10:39:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Robert Liao <rob...@chromium.org>
Comment-In-Reply-To: Keren Zhu <kere...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Vasilii Sukhanov (Gerrit)

unread,
Feb 18, 2026, 6:04:18 AM (2 days ago) Feb 18
to Viktor Semeniuk, Keren Zhu, Robert Liao, 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, Robert Liao and Viktor Semeniuk

Vasilii Sukhanov voted and added 3 comments

Votes added by Vasilii Sukhanov

Code-Review+1

3 comments

Commit Message
Line 16, Patchset 23:Bug: crbug.com/438702587
Vasilii Sukhanov . unresolved

438702587

File chrome/browser/password_manager/password_change/detached_web_contents.cc
Line 77, Patchset 23: {kWebContentsWidth, kWebContentsHeight}, false, true, true);
Vasilii Sukhanov . unresolved

Add comments for those paramaeters

File chrome/browser/password_manager/password_change_delegate_impl.cc
Line 586, Patchset 23: /* is_renderer_initiated= */ false),
Vasilii Sukhanov . unresolved

`is_renderer_initiated=`

Open in Gerrit

Related details

Attention is currently required from:
  • Keren Zhu
  • Robert Liao
  • Viktor Semeniuk
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: 24
Gerrit-Owner: Viktor Semeniuk <vsem...@google.com>
Gerrit-Reviewer: Vasilii Sukhanov <vas...@chromium.org>
Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
Gerrit-CC: Erik Chen <erik...@chromium.org>
Gerrit-CC: Keren Zhu <kere...@chromium.org>
Gerrit-CC: Peter Kvitek <kvi...@chromium.org>
Gerrit-CC: Robert Liao <rob...@chromium.org>
Gerrit-Attention: Robert Liao <rob...@chromium.org>
Gerrit-Attention: Viktor Semeniuk <vsem...@google.com>
Gerrit-Attention: Keren Zhu <kere...@chromium.org>
Gerrit-Comment-Date: Wed, 18 Feb 2026 11:04:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Viktor Semeniuk (Gerrit)

unread,
Feb 18, 2026, 6:33:12 AM (2 days ago) Feb 18
to Vasilii Sukhanov, Keren Zhu, Robert Liao, 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 and Robert Liao

Viktor Semeniuk added 4 comments

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

Thank you for the review!

Commit Message
Vasilii Sukhanov . resolved

438702587

Viktor Semeniuk

Done

File chrome/browser/password_manager/password_change/detached_web_contents.cc
Line 77, Patchset 23: {kWebContentsWidth, kWebContentsHeight}, false, true, true);
Vasilii Sukhanov . resolved

Add comments for those paramaeters

Viktor Semeniuk

Done

File chrome/browser/password_manager/password_change_delegate_impl.cc
Line 586, Patchset 23: /* is_renderer_initiated= */ false),
Vasilii Sukhanov . resolved

`is_renderer_initiated=`

Viktor Semeniuk

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Keren Zhu
  • Robert Liao
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: 26
Gerrit-Owner: Viktor Semeniuk <vsem...@google.com>
Gerrit-Reviewer: Vasilii Sukhanov <vas...@chromium.org>
Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
Gerrit-CC: Erik Chen <erik...@chromium.org>
Gerrit-CC: Keren Zhu <kere...@chromium.org>
Gerrit-CC: Peter Kvitek <kvi...@chromium.org>
Gerrit-CC: Robert Liao <rob...@chromium.org>
Gerrit-Attention: Robert Liao <rob...@chromium.org>
Gerrit-Attention: Keren Zhu <kere...@chromium.org>
Gerrit-Comment-Date: Wed, 18 Feb 2026 11:32:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Vasilii Sukhanov <vas...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Viktor Semeniuk (Gerrit)

unread,
Feb 19, 2026, 3:38:25 AM (yesterday) Feb 19
to Vasilii Sukhanov, Keren Zhu, Robert Liao, 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 Erik Chen, Keren Zhu and Peter Kvitek

Viktor Semeniuk added 3 comments

Patchset-level comments
File-level comment, Patchset 5:
Viktor Semeniuk . resolved

Hi Erik and Peter,
I would like to get your opinion on the following implementation. The CL is not ready to be submitted, I'm just looking for an early feedback.

Erik Chen

conceptually, the idea of a making a custom window tree host to pump beginframe events makes sense. I'm not a graphics expert so I don't want to comment on the correct of the details of what you've written. Feel free to ping blundell to find an appropriate owner.

What is the plan for macOS support?

Viktor Semeniuk

Adding @blun...@chromium.org as a reviewer.

What is the plan for macOS support?

There are no problems with rAF on MacOS. This caused plenty of confusion during the early development since testing the same site can lead to a different result depending on the OS.

Colin Blundell

Thanks! Viktor and I chatted offline, and he's going to send an email to chrome-compositor@ with the context and link to solicit advice from the most knowledgeable folks.

Viktor Semeniuk

Done

File-level comment, Patchset 6:
Erik Chen . resolved

This approach seems simpler than the "hidden window" approach discussed over email. Can someone provide context about why we're moving in the hidden window approach vs this approach?

Viktor Semeniuk

Oh, hidden window approach just came up because @kvi...@chromium.org is working on it to solve b/479056794. Originally it has nothing to do with APC or rAF problem we are tying to solve here. I just contacted Peter since he works on a headless mode.

Peter Kvitek

This minimalist WTH implementation looks fine to me, however, there is no guarantee that it will be enough to run all the existing and future password change pages. As you found out, some happen to need rAF, others may need something else.

The 'hidden browser window' approach runs pages in exactly the same way they would have run normally, now and in the future, so it seems like a more reliable in the long run.

Viktor Semeniuk

Done

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

Thank you for the review!

Open in Gerrit

Related details

Attention is currently required from:
  • Erik Chen
  • Keren Zhu
  • Peter Kvitek
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • 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: 26
    Gerrit-Owner: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Reviewer: Vasilii Sukhanov <vas...@chromium.org>
    Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
    Gerrit-CC: Erik Chen <erik...@chromium.org>
    Gerrit-CC: Keren Zhu <kere...@chromium.org>
    Gerrit-CC: Peter Kvitek <kvi...@chromium.org>
    Gerrit-CC: Robert Liao <rob...@chromium.org>
    Gerrit-Attention: Erik Chen <erik...@chromium.org>
    Gerrit-Attention: Keren Zhu <kere...@chromium.org>
    Gerrit-Attention: Peter Kvitek <kvi...@chromium.org>
    Gerrit-Comment-Date: Thu, 19 Feb 2026 08:38:12 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Viktor Semeniuk <vsem...@google.com>
    Comment-In-Reply-To: Erik Chen <erik...@chromium.org>
    Comment-In-Reply-To: Colin Blundell <blun...@chromium.org>
    Comment-In-Reply-To: Peter Kvitek <kvi...@chromium.org>
    satisfied_requirement
    open
    diffy

    Erik Chen (Gerrit)

    unread,
    Feb 19, 2026, 1:05:27 PM (15 hours ago) Feb 19
    to Viktor Semeniuk, Vasilii Sukhanov, Keren Zhu, Robert Liao, 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, Peter Kvitek and Viktor Semeniuk

    Erik Chen voted and added 1 comment

    Votes added by Erik Chen

    Code-Review+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 26 (Latest):
    Erik Chen . resolved

    I did a quick skim, overall lg, nice work

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Keren Zhu
    • Peter Kvitek
    • Viktor Semeniuk
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • 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: 26
    Gerrit-Owner: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Reviewer: Erik Chen <erik...@chromium.org>
    Gerrit-Reviewer: Vasilii Sukhanov <vas...@chromium.org>
    Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
    Gerrit-CC: Keren Zhu <kere...@chromium.org>
    Gerrit-CC: Peter Kvitek <kvi...@chromium.org>
    Gerrit-CC: Robert Liao <rob...@chromium.org>
    Gerrit-Attention: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Attention: Keren Zhu <kere...@chromium.org>
    Gerrit-Attention: Peter Kvitek <kvi...@chromium.org>
    Gerrit-Comment-Date: Thu, 19 Feb 2026 18:05:16 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages