Milan Burda
fade3eb679
chore: make "nodeIntegration" and "webviewTag" default to false ( #16235 )
2019-01-07 22:19:27 +03:00
David Baker
cc85946f55
feat: Support response headers in File protocol handler ( #16098 )
...
* feat: Support response headers in File protocol handler
* bugfix: Null check headers value & fix tests
* refactor: Use non-deprecated FindKeyOfType
2018-12-18 23:17:02 -07:00
David Sanders
bae652f46d
docs: http protocol handlers can access headers ( #15431 )
...
* test: check http protocol handlers can access headers
* docs: http protocol handlers can access headers
2018-10-30 11:37:49 -07:00
Islam Sharabash
3b6f0d83e1
fix: allow stream protocols to return headers with multiple values ( #14887 )
...
* fix: allow stream protocols to return headers with multiple values
This allows stream protocols to return headers with multiple values as
an array of values.
Fixes https://github.com/electron/electron/issues/14778
* Prefer ConvertFromV8
* Cleanup header conversion
1. Deduplicate the code by using a lambda
2. Remove duplicate calls to headers->Get(key)
* Fix broken test
Headers with multiple values are now being converted correctly, this
test asserted the wrong behavior.
2018-10-25 11:34:20 +11:00
Milan Burda
3ad3ade828
refactor: add prefer-const to .eslintrc + fix errors ( #14880 )
2018-10-02 11:56:31 +10:00
Milan Burda
c61db523c7
refactor: replace var with const / let ( #14866 )
2018-09-29 09:17:00 +10:00
Samuel Attard
3487bbe356
spec: handle null prototypes in specs
2018-09-14 16:47:54 +10:00
Samuel Attard
558fff69e7
chore: update to standard 12
2018-09-14 14:57:01 +10:00
John Kleinschmidt
0ef8f58090
Remove Travis references
2017-11-30 15:39:32 -05:00
Felix Rieseberg
9f0df695ca
🔧 Spec: Fix style issues
2017-11-23 14:22:58 -08:00
Felix Rieseberg
0278e380de
🔧 Spec: Don’t use deprecated new Buffer()
2017-11-23 14:22:31 -08:00
Aleksei Kuzmin
cf749a8e18
Explicitly skip tests that should be skipped
2017-11-20 14:43:23 +01:00
Thiago de Arruda
639dc2377f
Add tests for URLRequestStreamJob
2017-11-13 16:16:14 -03:00
Shelley Vohr
17f4e53d6b
match earlier tests to ES6 later ones
2017-10-26 16:30:07 -04:00
Kevin Sawicki
f2aabeefd5
Merge pull request #8085 from deepak1556/protocol_http_session_patch
...
protocol: support custom session with interceptHttpProtocol
2016-12-12 13:07:14 -08:00
Paul Frazee
99ea50649a
finish implementation of {secure:true} opt on protocol.registerStandardScehesm, and add working test
2016-12-12 12:49:57 -08:00
deepak1556
2b8b76a527
protocol: support custom session with interceptHttpProtocol
2016-12-07 16:22:34 +05:30
deepak1556
3aab713d24
add failing spec
2016-11-09 11:00:50 +05:30
Kevin Sawicki
4ce2c221c9
Minor doc edits and link to MDN page
2016-08-24 09:03:44 -07:00
deepak1556
ae297760af
add spec and docs
2016-08-24 06:53:14 +05:30
Mark Wylde
c55b1e87ed
Fix spelling mistake from registred to registered
2016-08-20 14:25:13 +01:00
Kevin Sawicki
0ebe142b2f
Close windows instead of destroying them
2016-08-03 16:23:39 -07:00
Cheng Zhao
6c2825c0c4
spec: Ignore cache when testing protocol module
2016-07-04 18:08:41 +09:00
Kevin Sawicki
197ec98800
Remove standard linter warnings
2016-06-29 09:46:16 -07:00
Cheng Zhao
1146b2d5c1
spec: Custom protocol can have "fetch" working in it
2016-06-08 14:44:30 +09:00
Cheng Zhao
49f1278601
Refactor the URLRequestFetchJob code
...
This makes the read end and write end of the pipe have same logic, so it
is more easy to maintain.
2016-05-30 20:31:00 +09:00
deepak1556
9d8af43617
add spec
2016-05-29 13:43:26 +05:30
Cheng Zhao
8e7a5adc60
spec: protocol.registerStandardSchemes does not throw
2016-05-10 09:57:13 +09:00
deepak1556
9c71c9fa6a
fix docs and spec
2016-05-08 01:37:57 +05:30
deepak1556
0f2ae385ed
allow protocol module initialization before app ready.
...
* ensure registerStandardSchemes can only be called before app ready
* ensure other protocol methods can only be used after app ready
2016-05-08 01:36:34 +05:30
deepak1556
1ff33b7c81
protocol: fix registerStandardSchemes api
2016-05-08 01:36:34 +05:30
Zeke Sikelianos
5e4696f4a7
standardize more
2016-03-30 17:00:32 -07:00
Zeke Sikelianos
f35f362272
autoformat more files
2016-03-30 17:00:31 -07:00
Cheng Zhao
8ff30a2abc
Revert "protocol: respect requests from partition"
...
This reverts commit 85800256de
.
2016-02-24 13:25:30 +08:00
Cheng Zhao
bb1e4c2208
Revert "add docs"
...
This reverts commit bdfc19ad20
.
2016-02-24 13:25:22 +08:00
Robo
bdfc19ad20
add docs
2016-02-23 12:54:20 +05:30
Robo
85800256de
protocol: respect requests from partition
2016-02-19 19:39:01 +05:30
Kevin Sawicki
54d7c580bd
Remove unneeded returns
2016-02-17 09:08:34 -08:00
Kevin Sawicki
12adaa0570
Remove unneeded returns
2016-02-17 09:08:34 -08:00
Kevin Sawicki
e63c3c727a
Add newlines between describe/it blocks
2016-02-17 09:08:34 -08:00
Kevin Sawicki
70bcb0ac5a
Clean up no-unused-vars lint errors
2016-01-21 09:32:21 -07:00
Kevin Sawicki
ccce284a5b
Clean up no-empty lint errors
2016-01-21 09:32:21 -07:00
Kevin Sawicki
1f9691ae13
Convert all source files to JavaScript
2016-01-12 16:24:06 -08:00