Skip to content
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: session.resolveHost #37847

Merged
merged 1 commit into from Apr 6, 2023
Merged

Conversation

indutny
Copy link
Contributor

@indutny indutny commented Apr 5, 2023

Backport of #37690.

See that PR for details.

Notes: Introduced session.resolveHost for resolving hostnames with Chromium's DNS resolver

* feat: session.resolveHost

Expose Chromium's host resolution API through the Session object.

* Update shell/browser/api/electron_api_session.cc

Co-authored-by: Jeremy Rose <nornagon@nornagon.net>

* address feedback

* fix tests

* address feedback

* Add options

* Update shell/browser/api/electron_api_session.cc

Co-authored-by: Cheng Zhao <github@zcbenz.com>

* Update shell/browser/net/resolve_host_function.cc

Co-authored-by: Cheng Zhao <github@zcbenz.com>

* lint

* return object

* add missing file

* fix crash

* handle scope

* links

---------

Co-authored-by: Fedor Indutny <indutny@signal.org>
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
Co-authored-by: Cheng Zhao <github@zcbenz.com>
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Apr 5, 2023
@indutny
Copy link
Contributor Author

indutny commented Apr 5, 2023

cc @nornagon ?

@trop trop bot mentioned this pull request Apr 5, 2023
5 tasks
@trop trop bot added 24-x-y backport This is a backport PR backport/requested 🗳 semver/minor backwards-compatible functionality labels Apr 5, 2023
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Apr 5, 2023
@VerteDinde
Copy link
Member

@indutny Thanks for the backport! We have a Releases WG meeting this afternoon we review/approve backport requests, will get this reviewed for you 🙇‍♀️

@nornagon
Copy link
Member

nornagon commented Apr 5, 2023

@indutny please copy over the release notes 🙇🏻

@indutny
Copy link
Contributor Author

indutny commented Apr 5, 2023

Really appreciate it. Thanks!

@indutny
Copy link
Contributor Author

indutny commented Apr 5, 2023

please copy over the release notes 🙇🏻

done, sorry! I wasn't sure what the template for the backport PR should look like so I copied it from #37846 😂

@dsanders11
Copy link
Member

@indutny, if you use electron/build-tools, you can do the backport PR with the helpers there, which should do everything for you. 🙂

$ e backport 37690
// Fix conflicts, `git cherry-pick --continue`
$ git push fork
$ e pr --backport 37690

@indutny
Copy link
Contributor Author

indutny commented Apr 5, 2023

@dsanders11 😮

Copy link
Member

@VerteDinde VerteDinde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backport approved on behalf of @electron/wg-releases

@jkleinsc jkleinsc merged commit 14985e2 into electron:24-x-y Apr 6, 2023
14 checks passed
@release-clerk
Copy link

release-clerk bot commented Apr 6, 2023

Release Notes Persisted

Introduced session.resolveHost for resolving hostnames with Chromium's DNS resolver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
24-x-y backport/approved ✅ backport This is a backport PR semver/minor backwards-compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants