Milan Burda
70190ec2b1
chore: update to latest TypeScript, which has built-in WeakRef declarations ( #27425 )
2021-01-22 11:25:47 -08:00
Jeremy Rose
088f2e625f
feat: add frame and webContents to webRequest details ( #27078 )
...
* feat: add frame and webContents to webRequest details
* chore: use frame_converter.h
Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
2021-01-11 12:20:43 +09:00
bigben0123
84a42a050e
fix: incorrect Content-Disposition encoding ( #25961 )
...
* Fixed the filename in content-disposition chaos.
* Fixed lint fail.
* Add test code and some comment.
* Fix lint error.
* fix lint error.
* * test: onHeadersReceived doesn't change the filename in "content-disposition" (#25628 )
* fix lint error.
2020-10-28 16:00:49 +09: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
Cheng Zhao
14051ff945
test: do not trigger unhandled promise rejections ( #22922 )
2020-04-01 09:45:39 -04:00
Cheng Zhao
e6f2605ad0
fix: webRequest module should work with file:// protocol ( #22903 )
...
* fix: override file:// instead of intercepting
* test: webRequest module should work with file://
* fix: service work with file:// url
* fix: original_response_headers can be null
* fix: only register file:// when necessary
2020-04-01 16:38:40 +09: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
Cheng Zhao
4c6150ea3d
fix: make webRequest work for CORS preflight requests ( #22407 )
...
* fix: support CORS preflight
* test: webRequest should work for CORS requests
2020-03-02 10:23:43 +09:00
Cheng Zhao
c608d6d7fb
fix: make webRequest work with WebSocket ( #22040 )
...
* fix: web request support proxying websocket
* fix: make tests work
* chore: do not use api:: code outside api/ folder
* chore: do not create proxy when no listener
* test: use separate session to avoid conflicts
* chore: address review
2020-02-11 14:56:09 +09:00
Cheng Zhao
fbc2f8344f
fix: crash when doing redirect navigation with webRequest listener ( #21838 )
...
* fix: pass navigation_ui_data to proxying factory
* fix: clone response instead of move in redirect
2020-01-22 10:31:10 +09:00
Jeremy Apthorp
768a6ace1b
test: move some fixtures from spec/ to spec-main/ ( #21403 )
2020-01-09 11:50:56 -08:00
Cheng Zhao
b02a20e4dc
fix: webRequest should be able to modify CORS headers ( #21099 )
...
* fix: always use extraHeaders mode
* fix: clear pending callbacks
* fix: do not use "extraHeaders" for net module
* test: webRequest should be able to modify CROS headers
* chore: CROS => CORS
Co-Authored-By: Milan Burda <milan.burda@gmail.com>
* chore: CROS => CORS
Co-Authored-By: Milan Burda <milan.burda@gmail.com>
2019-11-14 14:51:24 +09:00
Jeremy Apthorp
ecd9e1f26e
chore: lint spec-main ( #20835 )
2019-11-01 13:37:02 -07:00
Jeremy Apthorp
af138dab55
test: move webRequest spec to main runner ( #19992 )
2019-08-28 13:56:15 -07:00