Skip to content

fix: capturePage not resolving with hidden windows - #28074

Merged
codebytere merged 1 commit into
11-x-yfrom
trop/11-x-y-bp-fix-capturepage-not-resolving-with-hidden-windows-1615297930682
Mar 9, 2021
Merged

codebytere merged 1 commit into
11-x-yfrom
trop/11-x-y-bp-fix-capturepage-not-resolving-with-hidden-windows-1615297930682

Conversation

@trop

@trop trop Bot commented Mar 9, 2021

Copy link
Copy Markdown
Contributor

Backport of #27883

See that PR for details.

Notes: Fixed an issue where win.capturePage() never called back after calling hide() for a hidden window on some platforms.

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Mar 9, 2021
@trop
trop Bot requested a review from codebytere March 9, 2021 13:52
@trop trop Bot mentioned this pull request Mar 9, 2021
5 tasks done
@trop trop Bot added 11-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Mar 9, 2021
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Mar 9, 2021
@codebytere

Copy link
Copy Markdown
Member

tag loads devtools extensions registered on the parent window

Failure is not relevant.

@codebytere
codebytere merged commit 291b4f9 into 11-x-y Mar 9, 2021
@release-clerk

release-clerk Bot commented Mar 9, 2021

Copy link
Copy Markdown

Release Notes Persisted

Fixed an issue where win.capturePage() never called back after calling hide() for a hidden window on some platforms.

This was referenced Mar 15, 2021
@ztob

ztob commented Dec 17, 2021 •

Copy link
Copy Markdown

hi guys,

this issue still occurs.
we run electron app with 30-50 concurrent BrowserWindow with hidden state and at some point on some (random) pages the capture method will hang forever in the promise.
I did implemented Page.captureScreenshot through devtools protocol but the same thing.

electron v16.0.4
linux server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

11-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants