Skip to content

test: prepare the spec suite for a parallel runner - #54261

Merged
MarshallOfSound merged 11 commits into
mainfrom
claude/project-thread-a1ddk9
Sep 24, 2026
Merged

MarshallOfSound merged 11 commits into
mainfrom
claude/project-thread-a1ddk9

Conversation

@MarshallOfSound

@MarshallOfSound MarshallOfSound commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Description of Change

Groundwork for running the spec files across several Electron processes at once (the vitest runner itself follows separately). Everything here runs under the current mocha runner; one commit per change.

  • BrowserWindow spec groups that were declared with it() but only wrap other it() calls become describe(); the inner tests never ran (two macOS expectations they contained are updated or skipped with a FIXME, see the commit).
  • this.retries(n) moves from inside test bodies up to the suite.
  • runCleanupFunctions() runs every defer()-ed cleanup even when one throws, instead of leaving the stale one to throw again after every later test.
  • closeWindow() only reaps windows that existed when it was called, never the next test's window.
  • The WebContentsView reuse spec compares webContents sets instead of a GC-sensitive count.
  • The document.visibilityState specs listen on the window's own webContents.ipc instead of ipcMain, so a late message from the previous test's page is not mistaken for the new window's.
  • The BrowserWindow.focus() spec waits for the window to take focus before calling blur().
  • The utilityProcess heap snapshot spec gets 60 s instead of 30.
  • The powerMonitor specs clear the logind mock's call log first, so they only count their own process's Inhibit calls.
  • describe/it accept an options object between title and body, (title, { timeout, retry, tags }, fn).
  • Suites that need OS focus, the clipboard, screen capture, global shortcuts, real mouse input, the D-Bus mocks or Squirrel.Mac's shared cache are tagged { tags: ['serial'] } (a no-op for mocha).

Checklist

Release Notes

Notes: none

@MarshallOfSound MarshallOfSound added the semver/patch backwards-compatible bug fixes label Sep 24, 2026
@MarshallOfSound MarshallOfSound self-assigned this Sep 24, 2026
@release-clerk

release-clerk Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Release note looks good now.

@MarshallOfSound
MarshallOfSound force-pushed the claude/project-thread-a1ddk9 branch from b575907 to b21b648 Compare September 24, 2026 00:09
@MarshallOfSound MarshallOfSound 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. target/45-x-y PR should also be added to the "45-x-y" branch. and removed semver/patch backwards-compatible bug fixes labels Sep 24, 2026
@MarshallOfSound
MarshallOfSound force-pushed the claude/project-thread-a1ddk9 branch from b21b648 to 50e806f Compare September 24, 2026 01:37
A few BrowserWindow spec groups were declared with it()/ifit() but only
contain further it() calls. Mocha registered the inner tests against a
suite that had already started, so they never ran; vitest rejects the
nesting outright. Declare them as suites.

Some of the tests this brings back to life no longer match macOS: a
non-resizable window is not maximizable there, and maximizable on its own
follows fullScreenable because the zoom button doubles as the full screen
button (NativeWindowMac::UpdateZoomButton), so those expectations are
updated or kept to Windows; representedFilename comes back as an absolute
path, so the spec sets one; and the animated setBounds()/setSize()
'resized' event does not arrive on the CI hosts, so that pair stays
skipped with a FIXME.
this.retries(n) from inside a test body only works in mocha, which reads
the value after the attempt fails. Move the two remaining uses up to the
enclosing describe so the retry count is known when the test is
declared.
runCleanupFunctions() stopped at the first cleanup that threw and never
cleared the list, so the same stale cleanup ran, and threw, again after
every later test in the file. Drain the list up front, run every entry,
and report the collected errors once.
…be/it

Lets specs write it(title, { timeout, retry, tags }, fn) and
describe(title, { ... }, fn). timeout and retry map onto mocha's per
runnable settings; tags are ignored by the mocha runner and are there so
suites can be marked for the upcoming parallel runner without a second
syntax.
closeWindow() checks on the next tick that no other windows were left
behind and destroys any it finds. It re-read the window list at that
point, so when the next test had already created its window by then, that
window was destroyed too and the test failed with 'Object has been
destroyed'. Whether that happened depended only on how long the runner
took between afterEach and the next beforeEach.
…spec

The test compared getAllWebContents().length before and after, which also
counts webContents that earlier tests left to the garbage collector and
that can be collected while this test awaits a load. Compare the sets
instead.
@MarshallOfSound
MarshallOfSound force-pushed the claude/project-thread-a1ddk9 branch from 50e806f to 0eaffe5 Compare September 24, 2026 03:20
Suites that depend on OS-level window focus, the system clipboard, screen
capture, global shortcuts, real mouse input or the mocked D-Bus services
cannot share the machine with other test windows. Mark them with
{ tags: ['serial'] } so a parallel runner can hold them back and run them
one at a time; the mocha runner ignores the option.
The document.visibilityState specs listened for 'pong' on ipcMain, so a
late message from the previous test's page (sent as its window was torn
down) could be taken for the first report of the new window. Listen on
the window's own webContents.ipc instead.

The BrowserView variant counted visibilitychange events from page load,
which includes the freshly shown host window becoming visible when that
reaches the renderer after the load; wait for the page to report
'visible' before counting.
The specs assert exact Inhibit call counts on the python-dbusmock logind
object. That mock is started once around the whole test run, so any other
Electron process of the same run that engaged powerMonitor has already
left calls in its log. Clear it before counting.
'focuses a blurred window' called blur() straight after show(). blur()
does nothing to a window that has not become key yet, and for the first
window a process shows on macOS that trails the 'show' event, so the
'blur' the test then waited for never came. Wait for 'focus' first, as
the BrowserWindow.blur() spec next to it already does.
Growing the heap to its limit and writing the snapshot is CPU bound and
does not fit in the default 30 seconds on the macOS x64 CI hosts when
other spec files run alongside it.
@MarshallOfSound
MarshallOfSound force-pushed the claude/project-thread-a1ddk9 branch from 0eaffe5 to 5f101b5 Compare September 24, 2026 05:14
@MarshallOfSound
MarshallOfSound merged commit 5c34ec5 into main Sep 24, 2026
74 of 76 checks passed
@release-clerk

release-clerk Bot commented Sep 24, 2026

Copy link
Copy Markdown

No Release Notes

@MarshallOfSound
MarshallOfSound deleted the claude/project-thread-a1ddk9 branch September 24, 2026 06:55
@trop

trop Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "43-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

@MarshallOfSound has manually backported this PR to "44-x-y", please check out #54283

@trop

trop Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

@MarshallOfSound has manually backported this PR to "43-x-y", please check out #54284

@trop

trop Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

@MarshallOfSound has manually backported this PR to "42-x-y", please check out #54285

MarshallOfSound added a commit that referenced this pull request Sep 24, 2026
test: prepare the spec suite for a parallel runner (#54261)

* test: use describe() for spec groups that were declared with it()

A few BrowserWindow spec groups were declared with it()/ifit() but only
contain further it() calls. Mocha registered the inner tests against a
suite that had already started, so they never ran; vitest rejects the
nesting outright. Declare them as suites.

Some of the tests this brings back to life no longer match macOS: a
non-resizable window is not maximizable there, and maximizable on its own
follows fullScreenable because the zoom button doubles as the full screen
button (NativeWindowMac::UpdateZoomButton), so those expectations are
updated or kept to Windows; representedFilename comes back as an absolute
path, so the spec sets one; and the animated setBounds()/setSize()
'resized' event does not arrive on the CI hosts, so that pair stays
skipped with a FIXME.

* test: set retries on the suite instead of inside the running test

this.retries(n) from inside a test body only works in mocha, which reads
the value after the attempt fails. Move the two remaining uses up to the
enclosing describe so the retry count is known when the test is
declared.

* test: keep running defer()-ed cleanups after one of them throws

runCleanupFunctions() stopped at the first cleanup that threw and never
cleared the list, so the same stale cleanup ran, and threw, again after
every later test in the file. Drain the list up front, run every entry,
and report the collected errors once.

* test: accept an options argument between the title and body of describe/it

Lets specs write it(title, { timeout, retry, tags }, fn) and
describe(title, { ... }, fn). timeout and retry map onto mocha's per
runnable settings; tags are ignored by the mocha runner and are there so
suites can be marked for the upcoming parallel runner without a second
syntax.

* test: only reap windows that were open when closeWindow() was called

closeWindow() checks on the next tick that no other windows were left
behind and destroys any it finds. It re-read the window list at that
point, so when the next test had already created its window by then, that
window was destroyed too and the test failed with 'Object has been
destroyed'. Whether that happened depended only on how long the runner
took between afterEach and the next beforeEach.

* test: don't count unrelated webContents in the WebContentsView reuse spec

The test compared getAllWebContents().length before and after, which also
counts webContents that earlier tests left to the garbage collector and
that can be collected while this test awaits a load. Compare the sets
instead.

* test: tag the suites that need the machine to themselves as serial

Suites that depend on OS-level window focus, the system clipboard, screen
capture, global shortcuts, real mouse input or the mocked D-Bus services
cannot share the machine with other test windows. Mark them with
{ tags: ['serial'] } so a parallel runner can hold them back and run them
one at a time; the mocha runner ignores the option.

* test: don't pick up another window's visibilitychange message

The document.visibilityState specs listened for 'pong' on ipcMain, so a
late message from the previous test's page (sent as its window was torn
down) could be taken for the first report of the new window. Listen on
the window's own webContents.ipc instead.

The BrowserView variant counted visibilitychange events from page load,
which includes the freshly shown host window becoming visible when that
reaches the renderer after the load; wait for the page to report
'visible' before counting.

* test: clear the logind mock's call log before the powerMonitor specs

The specs assert exact Inhibit call counts on the python-dbusmock logind
object. That mock is started once around the whole test run, so any other
Electron process of the same run that engaged powerMonitor has already
left calls in its log. Clear it before counting.

* test: wait for focus before blurring in the BrowserWindow.focus() spec

'focuses a blurred window' called blur() straight after show(). blur()
does nothing to a window that has not become key yet, and for the first
window a process shows on macOS that trails the 'show' event, so the
'blur' the test then waited for never came. Wait for 'focus' first, as
the BrowserWindow.blur() spec next to it already does.

* test: give the utilityProcess heap snapshot spec a minute

Growing the heap to its limit and writing the snapshot is CPU bound and
does not fit in the default 30 seconds on the macOS x64 CI hosts when
other spec files run alongside it.

(cherry picked from commit 5c34ec5)
MarshallOfSound added a commit that referenced this pull request Sep 24, 2026
test: prepare the spec suite for a parallel runner (#54261)

* test: use describe() for spec groups that were declared with it()

A few BrowserWindow spec groups were declared with it()/ifit() but only
contain further it() calls. Mocha registered the inner tests against a
suite that had already started, so they never ran; vitest rejects the
nesting outright. Declare them as suites.

Some of the tests this brings back to life no longer match macOS: a
non-resizable window is not maximizable there, and maximizable on its own
follows fullScreenable because the zoom button doubles as the full screen
button (NativeWindowMac::UpdateZoomButton), so those expectations are
updated or kept to Windows; representedFilename comes back as an absolute
path, so the spec sets one; and the animated setBounds()/setSize()
'resized' event does not arrive on the CI hosts, so that pair stays
skipped with a FIXME.

* test: set retries on the suite instead of inside the running test

this.retries(n) from inside a test body only works in mocha, which reads
the value after the attempt fails. Move the two remaining uses up to the
enclosing describe so the retry count is known when the test is
declared.

* test: keep running defer()-ed cleanups after one of them throws

runCleanupFunctions() stopped at the first cleanup that threw and never
cleared the list, so the same stale cleanup ran, and threw, again after
every later test in the file. Drain the list up front, run every entry,
and report the collected errors once.

* test: accept an options argument between the title and body of describe/it

Lets specs write it(title, { timeout, retry, tags }, fn) and
describe(title, { ... }, fn). timeout and retry map onto mocha's per
runnable settings; tags are ignored by the mocha runner and are there so
suites can be marked for the upcoming parallel runner without a second
syntax.

* test: only reap windows that were open when closeWindow() was called

closeWindow() checks on the next tick that no other windows were left
behind and destroys any it finds. It re-read the window list at that
point, so when the next test had already created its window by then, that
window was destroyed too and the test failed with 'Object has been
destroyed'. Whether that happened depended only on how long the runner
took between afterEach and the next beforeEach.

* test: don't count unrelated webContents in the WebContentsView reuse spec

The test compared getAllWebContents().length before and after, which also
counts webContents that earlier tests left to the garbage collector and
that can be collected while this test awaits a load. Compare the sets
instead.

* test: tag the suites that need the machine to themselves as serial

Suites that depend on OS-level window focus, the system clipboard, screen
capture, global shortcuts, real mouse input or the mocked D-Bus services
cannot share the machine with other test windows. Mark them with
{ tags: ['serial'] } so a parallel runner can hold them back and run them
one at a time; the mocha runner ignores the option.

* test: don't pick up another window's visibilitychange message

The document.visibilityState specs listened for 'pong' on ipcMain, so a
late message from the previous test's page (sent as its window was torn
down) could be taken for the first report of the new window. Listen on
the window's own webContents.ipc instead.

The BrowserView variant counted visibilitychange events from page load,
which includes the freshly shown host window becoming visible when that
reaches the renderer after the load; wait for the page to report
'visible' before counting.

* test: clear the logind mock's call log before the powerMonitor specs

The specs assert exact Inhibit call counts on the python-dbusmock logind
object. That mock is started once around the whole test run, so any other
Electron process of the same run that engaged powerMonitor has already
left calls in its log. Clear it before counting.

* test: wait for focus before blurring in the BrowserWindow.focus() spec

'focuses a blurred window' called blur() straight after show(). blur()
does nothing to a window that has not become key yet, and for the first
window a process shows on macOS that trails the 'show' event, so the
'blur' the test then waited for never came. Wait for 'focus' first, as
the BrowserWindow.blur() spec next to it already does.

* test: give the utilityProcess heap snapshot spec a minute

Growing the heap to its limit and writing the snapshot is CPU bound and
does not fit in the default 30 seconds on the macOS x64 CI hosts when
other spec files run alongside it.

(cherry picked from commit 5c34ec5)
@trop trop Bot added merged/43-x-y PR was merged to the "43-x-y" branch. merged/45-x-y PR was merged to the "45-x-y" branch. and removed in-flight/43-x-y in-flight/45-x-y labels Sep 24, 2026
MarshallOfSound added a commit that referenced this pull request Sep 24, 2026
test: prepare the spec suite for a parallel runner (#54261)

* test: use describe() for spec groups that were declared with it()

A few BrowserWindow spec groups were declared with it()/ifit() but only
contain further it() calls. Mocha registered the inner tests against a
suite that had already started, so they never ran; vitest rejects the
nesting outright. Declare them as suites.

Some of the tests this brings back to life no longer match macOS: a
non-resizable window is not maximizable there, and maximizable on its own
follows fullScreenable because the zoom button doubles as the full screen
button (NativeWindowMac::UpdateZoomButton), so those expectations are
updated or kept to Windows; representedFilename comes back as an absolute
path, so the spec sets one; and the animated setBounds()/setSize()
'resized' event does not arrive on the CI hosts, so that pair stays
skipped with a FIXME.

* test: set retries on the suite instead of inside the running test

this.retries(n) from inside a test body only works in mocha, which reads
the value after the attempt fails. Move the two remaining uses up to the
enclosing describe so the retry count is known when the test is
declared.

* test: keep running defer()-ed cleanups after one of them throws

runCleanupFunctions() stopped at the first cleanup that threw and never
cleared the list, so the same stale cleanup ran, and threw, again after
every later test in the file. Drain the list up front, run every entry,
and report the collected errors once.

* test: accept an options argument between the title and body of describe/it

Lets specs write it(title, { timeout, retry, tags }, fn) and
describe(title, { ... }, fn). timeout and retry map onto mocha's per
runnable settings; tags are ignored by the mocha runner and are there so
suites can be marked for the upcoming parallel runner without a second
syntax.

* test: only reap windows that were open when closeWindow() was called

closeWindow() checks on the next tick that no other windows were left
behind and destroys any it finds. It re-read the window list at that
point, so when the next test had already created its window by then, that
window was destroyed too and the test failed with 'Object has been
destroyed'. Whether that happened depended only on how long the runner
took between afterEach and the next beforeEach.

* test: don't count unrelated webContents in the WebContentsView reuse spec

The test compared getAllWebContents().length before and after, which also
counts webContents that earlier tests left to the garbage collector and
that can be collected while this test awaits a load. Compare the sets
instead.

* test: tag the suites that need the machine to themselves as serial

Suites that depend on OS-level window focus, the system clipboard, screen
capture, global shortcuts, real mouse input or the mocked D-Bus services
cannot share the machine with other test windows. Mark them with
{ tags: ['serial'] } so a parallel runner can hold them back and run them
one at a time; the mocha runner ignores the option.

* test: don't pick up another window's visibilitychange message

The document.visibilityState specs listened for 'pong' on ipcMain, so a
late message from the previous test's page (sent as its window was torn
down) could be taken for the first report of the new window. Listen on
the window's own webContents.ipc instead.

The BrowserView variant counted visibilitychange events from page load,
which includes the freshly shown host window becoming visible when that
reaches the renderer after the load; wait for the page to report
'visible' before counting.

* test: clear the logind mock's call log before the powerMonitor specs

The specs assert exact Inhibit call counts on the python-dbusmock logind
object. That mock is started once around the whole test run, so any other
Electron process of the same run that engaged powerMonitor has already
left calls in its log. Clear it before counting.

* test: wait for focus before blurring in the BrowserWindow.focus() spec

'focuses a blurred window' called blur() straight after show(). blur()
does nothing to a window that has not become key yet, and for the first
window a process shows on macOS that trails the 'show' event, so the
'blur' the test then waited for never came. Wait for 'focus' first, as
the BrowserWindow.blur() spec next to it already does.

* test: give the utilityProcess heap snapshot spec a minute

Growing the heap to its limit and writing the snapshot is CPU bound and
does not fit in the default 30 seconds on the macOS x64 CI hosts when
other spec files run alongside it.

(cherry picked from commit 5c34ec5)
@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 Sep 24, 2026
MarshallOfSound added a commit that referenced this pull request Sep 24, 2026
test: prepare the spec suite for a parallel runner (#54261)

* test: use describe() for spec groups that were declared with it()

A few BrowserWindow spec groups were declared with it()/ifit() but only
contain further it() calls. Mocha registered the inner tests against a
suite that had already started, so they never ran; vitest rejects the
nesting outright. Declare them as suites.

Some of the tests this brings back to life no longer match macOS: a
non-resizable window is not maximizable there, and maximizable on its own
follows fullScreenable because the zoom button doubles as the full screen
button (NativeWindowMac::UpdateZoomButton), so those expectations are
updated or kept to Windows; representedFilename comes back as an absolute
path, so the spec sets one; and the animated setBounds()/setSize()
'resized' event does not arrive on the CI hosts, so that pair stays
skipped with a FIXME.

* test: set retries on the suite instead of inside the running test

this.retries(n) from inside a test body only works in mocha, which reads
the value after the attempt fails. Move the two remaining uses up to the
enclosing describe so the retry count is known when the test is
declared.

* test: keep running defer()-ed cleanups after one of them throws

runCleanupFunctions() stopped at the first cleanup that threw and never
cleared the list, so the same stale cleanup ran, and threw, again after
every later test in the file. Drain the list up front, run every entry,
and report the collected errors once.

* test: accept an options argument between the title and body of describe/it

Lets specs write it(title, { timeout, retry, tags }, fn) and
describe(title, { ... }, fn). timeout and retry map onto mocha's per
runnable settings; tags are ignored by the mocha runner and are there so
suites can be marked for the upcoming parallel runner without a second
syntax.

* test: only reap windows that were open when closeWindow() was called

closeWindow() checks on the next tick that no other windows were left
behind and destroys any it finds. It re-read the window list at that
point, so when the next test had already created its window by then, that
window was destroyed too and the test failed with 'Object has been
destroyed'. Whether that happened depended only on how long the runner
took between afterEach and the next beforeEach.

* test: don't count unrelated webContents in the WebContentsView reuse spec

The test compared getAllWebContents().length before and after, which also
counts webContents that earlier tests left to the garbage collector and
that can be collected while this test awaits a load. Compare the sets
instead.

* test: tag the suites that need the machine to themselves as serial

Suites that depend on OS-level window focus, the system clipboard, screen
capture, global shortcuts, real mouse input or the mocked D-Bus services
cannot share the machine with other test windows. Mark them with
{ tags: ['serial'] } so a parallel runner can hold them back and run them
one at a time; the mocha runner ignores the option.

* test: don't pick up another window's visibilitychange message

The document.visibilityState specs listened for 'pong' on ipcMain, so a
late message from the previous test's page (sent as its window was torn
down) could be taken for the first report of the new window. Listen on
the window's own webContents.ipc instead.

The BrowserView variant counted visibilitychange events from page load,
which includes the freshly shown host window becoming visible when that
reaches the renderer after the load; wait for the page to report
'visible' before counting.

* test: clear the logind mock's call log before the powerMonitor specs

The specs assert exact Inhibit call counts on the python-dbusmock logind
object. That mock is started once around the whole test run, so any other
Electron process of the same run that engaged powerMonitor has already
left calls in its log. Clear it before counting.

* test: wait for focus before blurring in the BrowserWindow.focus() spec

'focuses a blurred window' called blur() straight after show(). blur()
does nothing to a window that has not become key yet, and for the first
window a process shows on macOS that trails the 'show' event, so the
'blur' the test then waited for never came. Wait for 'focus' first, as
the BrowserWindow.blur() spec next to it already does.

* test: give the utilityProcess heap snapshot spec a minute

Growing the heap to its limit and writing the snapshot is CPU bound and
does not fit in the default 30 seconds on the macOS x64 CI hosts when
other spec files run alongside it.

(cherry picked from commit 5c34ec5)
@trop trop Bot added the merged/42-x-y PR was merged to the "42-x-y" branch. label Sep 24, 2026
MarshallOfSound added a commit that referenced this pull request Sep 24, 2026
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 added a commit that referenced this pull request Sep 25, 2026
…#54334)

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 added a commit that referenced this pull request Sep 25, 2026
…#54340)

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.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Sam Attard <[email protected]>
ckerr pushed a commit that referenced this pull request Oct 7, 2026
…#54711)

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.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Sam Attard <[email protected]>
ckerr pushed a commit that referenced this pull request Oct 7, 2026
…#54712)

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.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Sam Attard <[email protected]>
ckerr pushed a commit that referenced this pull request Oct 7, 2026
…#54713)

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.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Sam Attard <[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.

2 participants