electron/spec/fixtures
Devraj Mehta 8c71e2adc9
feat: add net module to utility process (#40017)
* chore: initial prototype of net api from utility process

* chore: update url loader to work on both browser and utility processes

* chore: add net files to utility process bundle

* chore: re-add app ready check but only on main process

* chore: replace browser thread dcheck's with sequence checker

* refactor: move url loader from browser to common

* refactor: move net-client-request.ts from browser to common

* docs: add utility process to net api docs

* refactor: move net module app ready check to browser only

* refactor: switch import from main to common after moving to common

* test: add basic net module test for utility process

* refactor: switch browser pid with utility pid

* refactor: move electron_api_net from browser to common

* chore: add fetch to utility net module

* chore: add isOnline and online to utility net module

* refactor: move net spec helpers into helper file

* refactor: break apart net module tests

Adds two additional net module test files: `api-net-session-spec.ts` for
tests that depend on a session being available (aka depend on running on
the main process) and `api-net-custom-protocols-spec.ts` for custom
protocol tests. This enables running `api-net-spec.ts` in the utility
process.

* test: add utility process mocha runner to run net module tests

* docs: add utility process to net module classes

* refactor: update imports in lib/utility to use electron/utility

* chore: check browser context before using in main process

Since the browser context supplied to the SimpleURLLoaderWrapper can now
be null for use in the UtilityProcess, adding a null check for the main
process before use to get a more sensible error if something goes wrong.

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

* chore: remove test debugging

* chore: remove unnecessary header include

* docs: add utility process net module limitations

* test: run net module tests in utility process individually

* refactor: clean up prior utility process net tests

* chore: add resolveHost to utility process net module

* chore: replace resolve host dcheck with sequence checker

* test: add net module tests for net.resolveHost

* docs: remove utility process limitation for resolveHost

---------

Co-authored-by: deepak1556 <hop2deep@gmail.com>
Co-authored-by: Cheng Zhao <github@zcbenz.com>
2024-01-04 16:20:37 -05:00
..
api feat: add net module to utility process (#40017) 2024-01-04 16:20:37 -05:00
apps fix: make grant_file_protocol_extra_privileges fuse also block CORS fetches (#40801) 2024-01-02 13:06:33 -08:00
assets refactor: createThumbnailFromPath takes size not maxSize (#37362) 2023-03-08 21:48:29 -05:00
auto-update feat: add new ElectronSquirrelPreventDowngrades flag (#38625) 2023-09-11 11:54:51 -07:00
certificates fix spec 2016-04-18 22:57:37 +05:30
chromium chore: cleanup unusued variables + enable linting (#38898) 2023-06-26 02:51:54 -07:00
crash-cases feat: replace BrowserView with WebContentsView (#35658) 2023-12-13 13:01:03 -08:00
devtools-extensions test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
esm feat: I guess it's esm (#37535) 2023-08-30 17:38:07 -07:00
extensions fix: chrome.action API registration (#40500) 2023-11-13 08:27:18 +01:00
module chore: remove deprecated ipcRenderer.sendTo() (#39087) 2023-08-28 10:29:27 -04:00
native-addon test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
pages fix: webview zoom level persistence on navigation (#40650) 2023-12-04 10:39:20 -05:00
release-notes/cache test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
snapshot-items-available ci: cleanup up test app directories (#25145) 2020-08-31 14:07:12 -04:00
sub-frames test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
test.asar refactor: use node scheme imports in spec (#38487) 2023-06-15 10:42:27 -04:00
webview/fullscreen test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
workers test: worker should be able to load asar files (#28858) 2021-04-27 12:07:05 -04:00
blank.html test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
blank.png test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
cat-spin.mp4 fix: don't emit did-fail-load for MediaDocuments (#37824) 2023-04-06 10:23:34 +02:00
cat.pdf test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
dogs-running.txt test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
hello.txt feat: net.fetch() supports custom protocols (#36606) 2023-03-02 15:47:45 -08:00
no-proprietary-codecs.js refactor: use node scheme imports in spec (#38487) 2023-06-15 10:42:27 -04:00
preload-expose-ipc.js test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
testsnap.js chore: cleanup unusued variables + enable linting (#38898) 2023-06-26 02:51:54 -07:00
video-source-image.webp feat: add {stream} opt to custom protocol registry to configure media player (#22955) 2020-06-08 09:49:36 -07:00