Repository navigation
feat: promisify webContents.savePage() - #16742
Merged
Merged
Conversation
codebytere
force-pushed
the
promisify-savepage
branch
from
February 5, 2019 17:25
5d95eb4 to
0351700
Compare
codebytere
force-pushed
the
promisify-savepage
branch
from
February 5, 2019 18:50
0351700 to
52645a2
Compare
codebytere
force-pushed
the
promisify-savepage
branch
2 times, most recently
from
February 6, 2019 17:53
b3f0083 to
1dfca39
Compare
miniak
approved these changes
Feb 9, 2019
ckerr
requested changes
Feb 12, 2019
ckerr
left a comment
Member
There was a problem hiding this comment.
Mostly nits. Elevating to 'Request changes' for the docs error.
ckerr
requested changes
Feb 13, 2019
codebytere
force-pushed
the
promisify-savepage
branch
from
February 13, 2019 05:20
1685c60 to
517af79
Compare
ckerr
approved these changes
Feb 13, 2019
codebytere
force-pushed
the
promisify-savepage
branch
from
February 13, 2019 23:27
517af79 to
0cbef75
Compare
|
Release Notes Persisted
|
Member
Author
|
/trop run backport-to 5-0-x |
Contributor
|
The backport process for this PR has been manually initiated, |
Contributor
|
I was unable to backport this PR to "5-0-x" cleanly; |
codebytere
added a commit
that referenced
this pull request
Feb 14, 2019
* feat: promisify webContents.savePage() * no need to make compatible w callbacks, we're breaking it * fix promise resolve type * address feedback from review * fix promise return text * update smoke test
5 of 6 tasks
codebytere
added a commit
that referenced
this pull request
Feb 16, 2019
* feat: promisify webContents.savePage() * no need to make compatible w callbacks, we're breaking it * fix promise resolve type * address feedback from review * fix promise return text * update smoke test
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
This PR promisifies
webContents.savePage(). There was, unfortunately, no way to perfectly maintain backwards compatibility that I was able to see; previously, this method returned a Boolean and called the callback with an error but now it calls the callback with both the Boolean and the error and returns nothing.cc @deepak1556 @ckerr
Checklist
npm testpassesRelease Notes
Notes: Converted
webContents.savePage()to return a Promise instead of taking a callback.