Attach WebContents to HeadlessWindowTreeHost [chromium/src : main]

0 views
Skip to first unread message

Viktor Semeniuk (Gerrit)

unread,
Feb 10, 2026, 12:33:28 PM (10 days ago) Feb 10
to Erik Chen, Peter Kvitek, chromium...@chromium.org, Chromium LUCI CQ, 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 and Peter Kvitek

Viktor Semeniuk added 1 comment

Patchset-level comments
File-level comment, Patchset 5 (Latest):
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.

Open in Gerrit

Related details

Attention is currently required from:
  • Erik Chen
  • Peter Kvitek
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: Ib605c66a1d64aa6cc6419248c5057eaab38223eb
Gerrit-Change-Number: 6983369
Gerrit-PatchSet: 5
Gerrit-Owner: Viktor Semeniuk <vsem...@google.com>
Gerrit-Reviewer: Erik Chen <erik...@chromium.org>
Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
Gerrit-Attention: Erik Chen <erik...@chromium.org>
Gerrit-Attention: Peter Kvitek <kvi...@chromium.org>
Gerrit-Comment-Date: Tue, 10 Feb 2026 17:33:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Erik Chen (Gerrit)

unread,
Feb 10, 2026, 4:49:18 PM (10 days ago) Feb 10
to Viktor Semeniuk, Peter Kvitek, chromium...@chromium.org, Chromium LUCI CQ, 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 Peter Kvitek and Viktor Semeniuk

Erik Chen added 2 comments

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

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?

File-level comment, Patchset 6 (Latest):
Erik Chen . unresolved

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?

Open in Gerrit

Related details

Attention is currently required from:
  • Peter Kvitek
  • 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: 6
    Gerrit-Owner: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Reviewer: Erik Chen <erik...@chromium.org>
    Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
    Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Attention: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Attention: Peter Kvitek <kvi...@chromium.org>
    Gerrit-Comment-Date: Tue, 10 Feb 2026 21:49:09 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Viktor Semeniuk <vsem...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Viktor Semeniuk (Gerrit)

    unread,
    Feb 11, 2026, 8:26:45 AM (9 days ago) Feb 11
    to Colin Blundell, Erik Chen, Peter Kvitek, chromium...@chromium.org, Chromium LUCI CQ, 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 Colin Blundell, Erik Chen and Peter Kvitek

    Viktor Semeniuk added 2 comments

    Patchset-level comments
    Viktor Semeniuk . unresolved

    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.

    Erik Chen . unresolved

    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.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Colin Blundell
    • Erik Chen
    • Peter Kvitek
    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: 6
    Gerrit-Owner: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Erik Chen <erik...@chromium.org>
    Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
    Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Attention: Erik Chen <erik...@chromium.org>
    Gerrit-Attention: Colin Blundell <blun...@chromium.org>
    Gerrit-Attention: Peter Kvitek <kvi...@chromium.org>
    Gerrit-Comment-Date: Wed, 11 Feb 2026 13:26:33 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Erik Chen <erik...@chromium.org>
    Comment-In-Reply-To: Viktor Semeniuk <vsem...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Colin Blundell (Gerrit)

    unread,
    Feb 11, 2026, 9:43:23 AM (9 days ago) Feb 11
    to Viktor Semeniuk, Colin Blundell, Erik Chen, Peter Kvitek, chromium...@chromium.org, Chromium LUCI CQ, 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, Peter Kvitek and Viktor Semeniuk

    Colin Blundell added 1 comment

    Patchset-level comments
    Viktor Semeniuk . unresolved

    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.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Erik Chen
    • Peter Kvitek
    • 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: 6
    Gerrit-Owner: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Erik Chen <erik...@chromium.org>
    Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
    Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Attention: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Attention: Erik Chen <erik...@chromium.org>
    Gerrit-Attention: Peter Kvitek <kvi...@chromium.org>
    Gerrit-Comment-Date: Wed, 11 Feb 2026 14:43:08 +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>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Peter Kvitek (Gerrit)

    unread,
    Feb 11, 2026, 5:44:36 PM (9 days ago) Feb 11
    to Viktor Semeniuk, Colin Blundell, Erik Chen, chromium...@chromium.org, Chromium LUCI CQ, 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 and Viktor Semeniuk

    Peter Kvitek added 2 comments

    Patchset-level comments
    Erik Chen . unresolved

    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.

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

    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.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Erik Chen
    • 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: 6
    Gerrit-Owner: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Erik Chen <erik...@chromium.org>
    Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
    Gerrit-Reviewer: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Attention: Viktor Semeniuk <vsem...@google.com>
    Gerrit-Attention: Erik Chen <erik...@chromium.org>
    Gerrit-Comment-Date: Wed, 11 Feb 2026 22:44:24 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages