electron/spec
Fedor Indutny 6bfef67aae
feat: session.resolveHost (#37690)
* 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>
2023-04-05 10:06:14 -04:00
..
fixtures chore: update line endings on HTML files (#37755) 2023-03-29 15:02:13 -04:00
lib test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
ts-smoke docs: delete synopsis.md (#37580) 2023-03-16 17:05:15 -07:00
.eslintrc refactor: implement ajax() in tests using native fetch instead of jQuery (#32579) 2022-01-24 10:34:23 +01:00
.gitignore test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
ambient.d.ts test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
api-app-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
api-auto-updater-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-autoupdater-darwin-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
api-browser-view-spec.ts fix: handle closing webContents in BrowserViews (#37420) 2023-03-01 11:35:06 +01:00
api-browser-window-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
api-clipboard-spec.ts refactor: move spec helpers to spec/lib (#37010) 2023-01-25 13:01:25 -08:00
api-content-tracing-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-context-bridge-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-crash-reporter-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-debugger-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-desktop-capturer-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-dialog-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-global-shortcut-spec.ts refactor: move spec helpers to spec/lib (#37010) 2023-01-25 13:01:25 -08:00
api-in-app-purchase-spec.ts feat: added username to IAP purchaseProduct method (#35902) 2022-12-12 10:11:48 -08:00
api-ipc-main-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-ipc-renderer-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-ipc-spec.ts fix: crash in MessagePortMain with some postMessage params (#37585) 2023-03-27 13:56:55 -04:00
api-media-handler-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
api-menu-item-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
api-menu-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
api-native-image-spec.ts refactor: createThumbnailFromPath takes size not maxSize (#37362) 2023-03-08 21:48:29 -05:00
api-native-theme-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-net-log-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-net-spec.ts feat: add protocol.handle (#36674) 2023-03-27 10:00:55 -07:00
api-notification-dbus-spec.ts refactor: move spec helpers to spec/lib (#37010) 2023-01-25 13:01:25 -08:00
api-notification-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-power-monitor-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-power-save-blocker-spec.ts test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
api-process-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
api-protocol-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
api-safe-storage-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-screen-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
api-service-workers-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-session-spec.ts feat: session.resolveHost (#37690) 2023-04-05 10:06:14 -04:00
api-shell-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-subframe-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-system-preferences-spec.ts refactor: move spec helpers to spec/lib (#37010) 2023-01-25 13:01:25 -08:00
api-touch-bar-spec.ts refactor: move spec helpers to spec/lib (#37010) 2023-01-25 13:01:25 -08:00
api-tray-spec.ts refactor: move spec helpers to spec/lib (#37010) 2023-01-25 13:01:25 -08:00
api-utility-process-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-view-spec.ts refactor: move spec helpers to spec/lib (#37010) 2023-01-25 13:01:25 -08:00
api-web-contents-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
api-web-contents-view-spec.ts refactor: move spec helpers to spec/lib (#37010) 2023-01-25 13:01:25 -08:00
api-web-frame-main-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
api-web-frame-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
api-web-request-spec.ts feat: add protocol.handle (#36674) 2023-03-27 10:00:55 -07:00
asar-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
autofill-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
chromium-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
crash-spec.ts test: fix "crash cases" tests not failing properly (#37304) 2023-02-17 10:14:00 +01:00
deprecate-spec.ts test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
disabled-tests.json test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
extensions-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
get-files.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
guest-window-manager-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
index.js feat: session.resolveHost (#37690) 2023-04-05 10:06:14 -04:00
logging-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
modules-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
node-spec.ts fix: don't double-log unhandled rejections (#37464) 2023-03-06 11:04:43 +01:00
package.json build: remove request dependency (#37747) 2023-03-31 12:20:25 +02:00
parse-features-string-spec.ts test: rename & split internal module tests (#37318) 2023-02-17 10:14:40 +01:00
pipe-transport.ts test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
process-binding-spec.ts test: rename & split internal module tests (#37318) 2023-02-17 10:14:40 +01:00
release-notes-spec.ts test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
security-warnings-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
spellchecker-spec.ts test: use node helpers for events.once and setTimeout promise (#37374) 2023-02-23 15:53:53 -08:00
types-spec.ts chore: update node types version (#36924) 2023-01-18 14:46:27 +01:00
version-bump-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
visibility-state-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
webview-spec.ts test: migrate to helpers & disabled tests list (#37513) 2023-04-04 09:48:51 -04:00
yarn.lock build: remove request dependency (#37747) 2023-03-31 12:20:25 +02:00