Skip to content

Electron 4.0.0 - webview.capturePage returns empty object. #16241

Closed

Description

@wjharney
  • Output of node_modules/.bin/electron --version: 4.0.0
  • Operating System (Platform and Version): Windows 10
  • Output of node_modules/.bin/electron --version on last known working Electron version (if applicable): 3.0.13

Expected Behavior
webview.capturePage(callback) should invoke the callback with a NativeImage.

Actual behavior
webview.capturePage(callback) invokes the callback with an empty/plain object.

To Reproduce
See this gist.

Additional Information
webview.getWebContents().capturePage(callback) still works as expected.

Activity

  1. Tinysymphony commented on Jan 7, 2019

    @Tinysymphony
  2. vsanse commented on Aug 29, 2019

    @vsanse

    I have same issue but webview.getWebContents().capturePage(callback) also results in empty object for me.

  3. deleted a comment from hanlike on Oct 29, 2019
  4. deleted a comment from ksullivan91 on Oct 29, 2019
  5. deleted a comment from michalzaq12 on Oct 29, 2019
  6. deleted a comment from zachbeasley on Oct 29, 2019
  7. self-assigned this
    on Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions