-
Notifications
You must be signed in to change notification settings - Fork 17.1k
[Bug]: capturePage doesn't work for a hidden browser view since version 13.0.0-beta.21 #30666
Copy link
Copy link
Closed
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Electron Version
13.0.0-beta.21 and newer
12.0.0-beta.21 and newer
What operating system are you using?
Windows
Operating System Version
Windows 10
What arch are you using?
x64
Last Known Working Electron version
11.x
Expected Behavior
A screenshot should be captured successfully
Actual Behavior
A zero-sized image is returned instead.
Testcase Gist URL
https://gist.github.com/d4051b57412bf289d3a812d5387179fe
Additional Information
createBrowserView3works fine with electron 12.x.y on Mac OS X.createBrowserView2doesn't work with electron 12.0.0-beta.21 and newercreateBrowserView3doesn't work with electron 13.0.0-beta.21 and newer- The only difference between createBrowserView2 and createBrowserView3 is the createBrowserView3 loads
about:blankbefore loading the target page. - Periodically reloading the page and capturing the page will break page loading completely, further loading requests will never be finished, and setting app.allowRendererProcessReuse to false doesn't help.
Reactions are currently unavailable