Repository navigation
fix: NativeImage serialization of <webview>.capturePage() result - #20825
Merged
Merged
Conversation
zcbenz
approved these changes
Oct 30, 2019
miniak
force-pushed
the
miniak/fix-webview-capture-page
branch
3 times, most recently
from
November 4, 2019 23:38
0388424 to
872ead0
Compare
Contributor
Author
|
@nornagon, @MarshallOfSound can you please review? |
nornagon
suggested changes
Nov 5, 2019
nornagon
left a comment
Contributor
There was a problem hiding this comment.
Let's apply the serialize / deserialize operation only where it's needed, i.e. this one capturePage operation. Otherwise we add a bunch of extra useless CPU work for no reason.
miniak
force-pushed
the
miniak/fix-webview-capture-page
branch
from
November 6, 2019 00:17
872ead0 to
1dfe5ee
Compare
Contributor
Author
|
@nornagon done, I've created a separate IPC for |
nornagon
approved these changes
Nov 6, 2019
miniak
force-pushed
the
miniak/fix-webview-capture-page
branch
2 times, most recently
from
November 9, 2019 09:59
f8799ee to
e6a1912
Compare
miniak
force-pushed
the
miniak/fix-webview-capture-page
branch
from
November 12, 2019 15:45
e6a1912 to
526485a
Compare
alexeykuzmin
approved these changes
Nov 12, 2019
alexeykuzmin
left a comment
Contributor
There was a problem hiding this comment.
isPromise looks weird though.
Contributor
|
@alexeykuzmin i agree, but it was there before, so 🤷♂ i guess? |
Contributor
|
@nornagon yeah, I was going to write a comment about it but then checked contents of the removed file =) The PR looks good otherwise. |
Contributor
|
The win-x64-testing failure is not related to the change. Merging. |
Contributor
Contributor
Contributor
miniak
added a commit
that referenced
this pull request
Nov 13, 2019
codebytere
pushed a commit
that referenced
this pull request
Nov 14, 2019
codebytere
pushed a commit
that referenced
this pull request
Nov 14, 2019
4 of 6 tasks
4 tasks done
4 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Fixes #8151
Fixes #16241
Checklist
npm testpassesRelease Notes
Notes: Fixed
<webview>.capturePage()resolving with an empty object instead ofNativeImageinstance.