Skip to content

feat: add BrowserWindow.isOccluded() - #41249

Closed
trop[bot] wants to merge 1 commit into
29-x-yfrom
trop/29-x-y-bp-feat-add-browserwindow-isoccluded--1707215463074
Closed

trop[bot] wants to merge 1 commit into
29-x-yfrom
trop/29-x-y-bp-feat-add-browserwindow-isoccluded--1707215463074

Conversation

@trop

@trop trop Bot commented Feb 6, 2024

Copy link
Copy Markdown
Contributor

Backport of #38982

See that PR for details.

Notes: Added a new method BrowserWindow.isOccluded() to allow apps to check occlusion status.

@trop
trop Bot requested a review from codebytere February 6, 2024 10:31
@trop trop Bot mentioned this pull request Feb 6, 2024
4 tasks done
@trop trop Bot added 29-x-y backport This is a backport PR backport/requested 🗳 semver/minor backwards-compatible functionality labels Feb 6, 2024
@ckerr

ckerr commented Feb 9, 2024

Copy link
Copy Markdown
Member

These CI failures seem relevant to the PR

not ok 498 BrowserWindow module BrowserWindow.isOccluded() returns false when the window is only partially obscured
  window is not occluded: expected false to be true
  AssertionError: window is not occluded: expected false to be true
      at Context.<anonymous> (electron\spec\api-browser-window-spec.ts:4189:41)
ok 499 BrowserWindow module BrowserWindow.isOccluded() returns false for a visible window covered by a transparent window
not ok 500 BrowserWindow module BrowserWindow.isOccluded() returns true for an obscured window
  visible window: expected false to be true
  AssertionError: visible window: expected false to be true
      at Context.<anonymous> (electron\spec\api-browser-window-spec.ts:4222:41)
ok 501 BrowserWindow module document.visibilityState/hidden visibilityState is initially visible despite window being hidden # SKIP -
ok 502 BrowserWindow module document.visibilityState/hidden visibilityState changes when window is hidden # SKIP -

@codebytere
codebytere marked this pull request as draft February 9, 2024 09:21
@codebytere codebytere closed this Feb 27, 2024
@trop
trop Bot deleted the trop/29-x-y-bp-feat-add-browserwindow-isoccluded--1707215463074 branch February 27, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

29-x-y backport/requested 🗳 backport This is a backport PR semver/minor backwards-compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants