Milan Burda
3fa4299939
fix: use acceptLanguages argument in session.setUserAgent() ( #23944 )
2020-06-04 13:05:37 +02:00
Samuel Attard
d3fa5ed1e8
docs: move protocol-ns to protocol.md ( #23883 )
...
* docs: move protocol-ns to protocol.md
* chore: fix up tests and implement missing pieces required for tests
2020-06-02 09:46:18 -07:00
Jeremy Apthorp
de44d28c8e
refactor: ginify Session ( #23569 )
2020-05-19 10:18:12 -07:00
Samuel Attard
0d2e967960
feat: expose electron/{process} typed modules ( #22937 )
...
* feat: expose electron/{process} typed modules
* chore: update imports for common modules
* chore: update typescript generator
* chore: remap electron/* to the internal packages
2020-04-06 17:04:09 -07:00
Jeremy Apthorp
0a78ab4b98
refactor: ginify DownloadItem ( #22924 )
2020-04-02 17:22:46 -07:00
Samuel Attard
1d158399a6
feat: expose the sameSite value for cookies ( #22789 )
...
* feat: expose the sameSite value for cookies
* Apply suggestions from code review
Co-Authored-By: Charles Kerr <ckerr@github.com>
* Apply suggestions from code review
Align with cookie samesite values for the extensions API
https://developer.chrome.com/extensions/cookies#type-SameSiteStatus
* chore: add tests for sameSite cookies get/set
* chore: update docs parser
* chore: update docs for MessageChannel and MessagePort to have correct process information
* chore: remove LOG warning
* chore: throw error if the string->samesite conversion fails
Co-authored-by: Charles Kerr <ckerr@github.com>
2020-04-02 11:28:43 -07:00
Samuel Attard
5d657dece4
build: enable JS semicolons ( #22783 )
2020-03-20 13:28:31 -07:00
Samuel Attard
b87b501161
build: update eslint + eslint plugins ( #22777 )
...
* build: run eslint --fix
* chore: manually fix all hasOwnProperty errors
* chore: manually fix all void 0 vs undefined errors
* chore: manually fix all async-in-promise errors
* chore: manually fix lexical declaration in case block
2020-03-20 11:12:18 -04:00
Erick Zhao
34e004015d
feat: add API to check if session is persistent ( #22622 )
2020-03-11 16:02:22 +09:00
John Kleinschmidt
e0c0875d6f
docs: update session.clearAuthCache ( #22292 )
...
* docs: update session.clearAuthCache
* Update specs to match doc change.
2020-02-21 13:40:45 -05:00
Cheng Zhao
0209302d84
test: use exit event to wait for process exit ( #21865 )
2020-01-27 10:29:50 +09:00
Cheng Zhao
d5192853f9
fix: name and expirationDate should be optional when setting cookie ( #21454 )
...
* fix: correctly set cookie date
* fix: name is not required for setting cookie
* test: clear cookie after each cookie test
* test: should test session property
* chore: style fixes
2019-12-11 16:44:49 +09:00
OJ Kwon
ca61d2fae7
fix: allow reading body from non-2xx responses in net.request ( #21055 )
...
* fix(urlrequest): allow non-2xx repsponse results
- closes #21046
* test(net): add test cases to verify non-2xx body
* test(session): update spec to match clientrequest behavior
* test(net): update test cases to match clientrequest behavior
* spec: clean up async net spec
2019-11-25 14:34:25 -08:00
Jeremy Apthorp
4f1536479e
fix: implement 'login' event for net.ClientRequest ( #21096 )
2019-11-14 10:01:18 -08:00
Jeremy Apthorp
034f4d5734
fix: implement 'login' event for WebContents ( #20954 )
2019-11-11 09:47:01 -08:00
Jeremy Apthorp
ecd9e1f26e
chore: lint spec-main ( #20835 )
2019-11-01 13:37:02 -07:00
Jeremy Apthorp
6781d5e3c8
test: there is only --ci ( #20794 )
2019-10-30 16:38:21 -07:00
Cheng Zhao
5e11be6898
fix: cookies.get should be able to filter domain ( #20471 )
...
* fix: use GetAllCookies when url is empty
* test: get cookie without url
2019-10-09 15:57:40 +09:00
Jeremy Apthorp
593f1774e9
fix: backport Node nested microtask fix ( #20303 )
2019-09-25 17:38:50 -04:00
Electron Bot
913ec1e0d0
chore: bump chromium to 0239d631f03d0111f77b0b98c7765 (master) ( #20285 )
2019-09-21 10:51:28 -04:00
Cheng Zhao
96b42bddb8
fix: implement ses.getBlobData() for NetworkService ( #20041 )
...
* pass data pipe to JS
* implement reading buffer
* re-enable ses.getBlobData test
* remove AtomBlobReader
2019-09-04 07:54:14 +09:00
Jeremy Apthorp
90d62e5b98
fix: nws13n: make ses.setUserAgent work ( #20014 )
...
* refactor tests to better control window creation
* fix: nws13n: make ses.setUserAgent work
2019-08-29 15:50:14 +09:00
Milan Burda
eed72c35d7
feat: add session.downloadURL() ( #19889 )
2019-08-28 20:27:20 -07:00
Jeremy Apthorp
79e936aea8
test: fix clearAuthCache test ( #20015 )
2019-08-28 17:43:12 -07:00
Jeremy Apthorp
bdc84d0bfb
test: tsify session spec ( #19604 )
2019-08-27 14:55:19 -07:00