Skip to content

test: keep visibility specs' windows on top on the Windows CI desktop - #54334

Merged
MarshallOfSound merged 1 commit into
mainfrom
claude/project-thread-i050ju
Sep 25, 2026
Merged

MarshallOfSound merged 1 commit into
mainfrom
claude/project-thread-i050ju

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

Description of Change

  • On the Windows CI hosts the test process's network service has no stdio, and --enable-logging makes it AllocConsole() a near-full-screen console window. When a newly shown test window lands behind that console, Chromium's native occlusion tracker reports it occluded and the page stays hidden (a BrowserWindow's own webContents is force-shown, so only child views and BaseWindow content notice).
  • api-browser-view.spec.ts: the document visibilitychange … same BrowserView multiple times spec started waiting for visible in test: prepare the spec suite for a parallel runner #54261 and has timed out on windows-x64 on most 45-x-y runs since; show its window always-on-top so desktop z-order can't decide the result.
  • visibility-state.spec.ts: same for the "visible" cases, Windows only (the macOS occlusion cases need a normal window level).

Verified on a Windows-only CI run of the two files: with the console above the window the view now reports visible; without the change it stayed hidden for all four attempts.

Checklist

Release Notes

Notes: none

The BrowserView visibilitychange spec and the document.visibilityState
specs need the page to actually be visible. On the Windows CI hosts the
network service of the test process has no stdio and --enable-logging
makes it AllocConsole() a near full screen console window; when a newly
shown test window lands behind it, Chromium's native occlusion tracker
reports the window occluded and the page stays 'hidden'. A BrowserWindow's
own webContents is force-shown by Electron so only child views and
BaseWindow content notice, and the BrowserView spec only started waiting
for 'visible' in #54261, which is when it began timing out on windows-x64.

Show these windows always-on-top (Windows only for visibility-state, whose
macOS-only occlusion cases need a normal level) so the desktop's z-order
cannot decide the result.
@MarshallOfSound MarshallOfSound added semver/none target/45-x-y PR should also be added to the "45-x-y" branch. labels Sep 24, 2026
@MarshallOfSound MarshallOfSound self-assigned this Sep 24, 2026
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) September 25, 2026 00:38
@MarshallOfSound
MarshallOfSound merged commit 471e642 into main Sep 25, 2026
130 of 134 checks passed
@MarshallOfSound
MarshallOfSound deleted the claude/project-thread-i050ju branch September 25, 2026 03:07
@release-clerk

release-clerk Bot commented Sep 25, 2026

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "45-x-y", please check out #54340

@trop trop Bot added in-flight/45-x-y merged/45-x-y PR was merged to the "45-x-y" branch. and removed target/45-x-y PR should also be added to the "45-x-y" branch. in-flight/45-x-y labels Sep 25, 2026
@ckerr ckerr added target/42-x-y PR should also be added to the "42-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. labels Oct 7, 2026
@ckerr

ckerr commented Oct 7, 2026

Copy link
Copy Markdown
Member

/trop run backport

@trop

trop Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

The backport process for this PR has been manually initiated - here we go! :D

@trop

trop Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "42-x-y", please check out #54711

@trop

trop Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "43-x-y", please check out #54712

@trop

trop Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "44-x-y", please check out #54713

@trop trop Bot added in-flight/42-x-y in-flight/43-x-y in-flight/44-x-y merged/42-x-y PR was merged to the "42-x-y" branch. merged/43-x-y PR was merged to the "43-x-y" branch. and removed target/42-x-y PR should also be added to the "42-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. in-flight/42-x-y in-flight/43-x-y labels Oct 7, 2026
@trop trop Bot added merged/44-x-y PR was merged to the "44-x-y" branch. and removed in-flight/44-x-y labels Oct 7, 2026
jkleinsc pushed a commit that referenced this pull request Oct 8, 2026
#54727)

The WebContentsView visibilityState specs wait for their page to become
'visible'. A BrowserWindow's own webContents is force-shown, but a
BaseWindow's content views are not, so Chromium's native occlusion
tracker decides their visibility. On the Windows CI hosts another
process's console window can sit above a newly shown test window, and
under the parallel runner another worker's window can cover it, so the
page stays 'hidden' and waitUntil() times out.

As #54334 did for visibility-state.spec.ts, create these windows
always-on-top on Windows, and run the block serially.

Co-authored-by: Claude Opus 5.5 <[email protected]>
ckerr added a commit that referenced this pull request Oct 8, 2026
#54762)

The WebContentsView visibilityState specs wait for their page to become
'visible'. A BrowserWindow's own webContents is force-shown, but a
BaseWindow's content views are not, so Chromium's native occlusion
tracker decides their visibility. On the Windows CI hosts another
process's console window can sit above a newly shown test window, and
under the parallel runner another worker's window can cover it, so the
page stays 'hidden' and waitUntil() times out.

As #54334 did for visibility-state.spec.ts, create these windows
always-on-top on Windows, and run the block serially.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <[email protected]>
ckerr added a commit that referenced this pull request Oct 8, 2026
#54760)

The WebContentsView visibilityState specs wait for their page to become
'visible'. A BrowserWindow's own webContents is force-shown, but a
BaseWindow's content views are not, so Chromium's native occlusion
tracker decides their visibility. On the Windows CI hosts another
process's console window can sit above a newly shown test window, and
under the parallel runner another worker's window can cover it, so the
page stays 'hidden' and waitUntil() times out.

As #54334 did for visibility-state.spec.ts, create these windows
always-on-top on Windows, and run the block serially.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <[email protected]>
ckerr added a commit that referenced this pull request Oct 8, 2026
#54761)

The WebContentsView visibilityState specs wait for their page to become
'visible'. A BrowserWindow's own webContents is force-shown, but a
BaseWindow's content views are not, so Chromium's native occlusion
tracker decides their visibility. On the Windows CI hosts another
process's console window can sit above a newly shown test window, and
under the parallel runner another worker's window can cover it, so the
page stays 'hidden' and waitUntil() times out.

As #54334 did for visibility-state.spec.ts, create these windows
always-on-top on Windows, and run the block serially.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

46-x-y merged/42-x-y PR was merged to the "42-x-y" branch. merged/43-x-y PR was merged to the "43-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. merged/45-x-y PR was merged to the "45-x-y" branch. semver/none

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants