New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add session.downloadURL() #19889
Conversation
0a2c324
to
6e19058
Compare
@miniak can you redirect the implementation of |
@deepak1556 |
@deepak1556 https://cs.chromium.org/chromium/src/components/download/public/common/download_url_parameters.h?g=0&l=69-81. It should be fine for our use case, or not? |
Yup but those are configurable via the download parameters which could be passed into, something like
Having these api separate sounds good too, but I would like to maintain single point of implementation that uses content api if possible , so that we don't update multiple places if chromium decides to break api signature. These are just few lines as you mentioned, so not a concern here. |
6e19058
to
6c4ab91
Compare
@deepak1556 I've updated the test to use |
@nornagon can you please review? |
Should this replace |
06d6f62
to
2cb3ebc
Compare
2cb3ebc
to
e45e98e
Compare
Release Notes Persisted
|
Description of Change
Add
session.downloadURL()
allowing to trigger downloads without aBrowserWindow
Checklist
npm test
passesRelease Notes
Notes: Added
session.downloadURL()
allowing to trigger downloads without aBrowserWindow
.