Repository navigation
test: keep visibility specs' windows on top on the Windows CI desktop - #54334
Merged
Merged
Conversation
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
enabled auto-merge (squash)
September 25, 2026 00:38
codebytere
approved these changes
Sep 25, 2026
|
No Release Notes |
Contributor
|
I have automatically backported this PR to "45-x-y", please check out #54340 |
This was referenced Sep 25, 2026
2 tasks done
Member
|
/trop run backport |
Contributor
|
The backport process for this PR has been manually initiated - here we go! :D |
Contributor
|
I have automatically backported this PR to "42-x-y", please check out #54711 |
Contributor
|
I have automatically backported this PR to "43-x-y", please check out #54712 |
Contributor
|
I have automatically backported this PR to "44-x-y", please check out #54713 |
5 of 6 tasks
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
--enable-loggingmakes itAllocConsole()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 stayshidden(a BrowserWindow's own webContents is force-shown, so only child views and BaseWindow content notice).api-browser-view.spec.ts: thedocument visibilitychange … same BrowserView multiple timesspec started waiting forvisiblein 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 stayedhiddenfor all four attempts.Checklist
Release Notes
Notes: none