Skip to content

[Bug]: capturePage doesn't work for a hidden browser view since version 13.0.0-beta.21 #30666

@zeeker999

Description

@zeeker999

Preflight Checklist

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

  • createBrowserView3 works fine with electron 12.x.y on Mac OS X.
  • createBrowserView2 doesn't work with electron 12.0.0-beta.21 and newer
  • createBrowserView3 doesn't work with electron 13.0.0-beta.21 and newer
  • The only difference between createBrowserView2 and createBrowserView3 is the createBrowserView3 loads about:blank before 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions