Commit Graph

446 Commits

Author SHA1 Message Date
Dragana Damjanovic
cca5369888 Bug 1688091 - Improve the telemetry for the HTTP3 connection close reasons. r=necko-reviewers,valentin
neqo now exposes a better info about the close reason and should use it.

Differential Revision: https://phabricator.services.mozilla.com/D102653
2021-02-09 09:51:02 +00:00
Dragana Damjanovic
d8f1c7ddc8 Bug 1687787 - Adapt neqo_glue code r=necko-reviewers,valentin
Disable Preferred-address for now. We need to use send_to/recv_from for it to work.

Differential Revision: https://phabricator.services.mozilla.com/D102470
2021-01-26 09:42:11 +00:00
Dragana Damjanovic
deaef5512f Bug 1687787 - Neqo Version 0.4.21 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D102970
2021-01-26 07:27:57 +00:00
smolnar
24d0effbb0 Backed out 2 changesets (bug 1687787) for causing xpcshell failures in netwerk/test/unit/test_http3_large_post. CLOSED TREE
Backed out changeset 5ca2c2f951ce (bug 1687787)
Backed out changeset 48f23619ddb8 (bug 1687787)
2021-01-21 15:33:28 +02:00
Dragana Damjanovic
1984ed86a0 Bug 1687787 - Addapt neqo_glue code r=necko-reviewers,valentin
Disable Preferred-address for now. We need to use send_to/recv_from for it to work.

Differential Revision: https://phabricator.services.mozilla.com/D102470
2021-01-21 11:40:53 +00:00
Dragana Damjanovic
ef14d64551 Bug 1687787 - Neqo version 0.4.20 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D102467
2021-01-21 11:40:52 +00:00
smolnar
f1ab98a02b Backed out changeset d75890964a0b (bug 1687787) for causing build bustages in neqo_transport::RandomConnectionIdGenerator. CLOSED TREE 2021-01-21 11:39:16 +02:00
Dragana Damjanovic
95e4330343 Bug 1687787 - Addapt neqo_glue code r=necko-reviewers,valentin
Disable Preferred-address for now. We need to use send_to/recv_from for it to work.

Differential Revision: https://phabricator.services.mozilla.com/D102470
2021-01-21 08:01:24 +00:00
Dragana Damjanovic
6bdc6718ef Bug 1677951 - Add telemetry about low level HTTP3 performance. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D97422
2021-01-15 09:15:59 +00:00
Dragana Damjanovic
539ededfd5 Bug 1683902 - Update neqo to 0.4.19 r=necko-reviewers,kershaw
Update neqo to 0.4.19

Differential Revision: https://phabricator.services.mozilla.com/D100338
2020-12-22 18:36:22 +00:00
Dragana Damjanovic
96b916ebe1 Bug 1682262 - Update neqo to 0.4.18 and bindgen to 0.56 r=necko-reviewers,emilio,valentin
Differential Revision: https://phabricator.services.mozilla.com/D99665
2020-12-14 18:38:49 +00:00
Kevin Jacobs
c27baf9ddb Bug 1678079 - Add PSM support and xpcshell tests for ECH. r=keeler,kershaw
This patch enables PSM and Firefox to use TLS 1.3 Encrypted Client Hello (draft -08). Specifically:
  - Compile NSS with NSS_ENABLE_DRAFT_HPKE=1
  - Add ECH "public_name" handling in SSLServerCertVerification.cpp (see: https://tools.ietf.org/html/draft-ietf-tls-esni-08#section-6.3.2)
  - Adds `mIsAcceptedEch` to TransportSecurityInfo, and xpcshell tests for ECH use cases
  - Adds EncryptedClientHelloServer to facilitate the xpcshell tests
  - Un-ifdef Set/GetEchConfigs code in nsNSSIOLayer.cpp. Also reverted the Base64 encoding and decoding, as the data returned from DNS is already decoded (wire-format).

Differential Revision: https://phabricator.services.mozilla.com/D92651
2020-12-04 15:26:17 +00:00
Razvan Maries
ae4e418a02 Backed out changeset e7c03faf2880 (bug 1678079) for perma failures on test_encrypted_client_hello.js. CLOSED TREE 2020-12-04 03:46:54 +02:00
Kevin Jacobs
9fa97f5e74 Bug 1678079 - Add PSM support and xpcshell tests for ECH. r=keeler,kershaw
This patch enables PSM and Firefox to use TLS 1.3 Encrypted Client Hello (draft -08). Specifically:
  - Compile NSS with NSS_ENABLE_DRAFT_HPKE=1
  - Add ECH "public_name" handling in SSLServerCertVerification.cpp (see: https://tools.ietf.org/html/draft-ietf-tls-esni-08#section-6.3.2)
  - Adds `mIsAcceptedEch` to TransportSecurityInfo, and xpcshell tests for ECH use cases
  - Adds EncryptedClientHelloServer to facilitate the xpcshell tests
  - Un-ifdef Set/GetEchConfigs code in nsNSSIOLayer.cpp. Also reverted the Base64 encoding and decoding, as the data returned from DNS is already decoded (wire-format).

Differential Revision: https://phabricator.services.mozilla.com/D92651
2020-12-03 21:58:24 +00:00
Dragana Damjanovic
8915c56905 Bug 1677743 - Neqo version 0.4.16 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D97445
2020-11-19 13:06:31 +00:00
Bogdan Tara
7974baccc1 Backed out changeset a6a44286addf (bug 1677743) for test_http3.js failures CLOSED TREE 2020-11-17 21:51:33 +02:00
Dragana Damjanovic
5fba5c88db Bug 1677743 - Update neqo (0.4.15) r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D97328
2020-11-17 16:10:15 +00:00
Dragana Damjanovic
71612de3dc Bug 1676851 - Make sure to return NS_BASE_STREAM_WOULD_BLOCK if number of read/written bytes to neqo stream is 0. r=necko-reviewers,valentin
If NS_OK is return, nsBufferedInputStream::ReadSegments may loop.

Differential Revision: https://phabricator.services.mozilla.com/D96996
2020-11-13 21:26:14 +00:00
Sylvestre Ledru
396275b3c3 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
# ignore-this-changeset

Depends on D96608

Differential Revision: https://phabricator.services.mozilla.com/D96609
2020-11-10 19:10:16 +00:00
Sylvestre Ledru
31599d2440 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,necko-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D95435
2020-11-04 17:03:33 +00:00
Dragana Damjanovic
5dc542764f Bug 1673611 - Improve Http3Stream state machine and add a test for a protocol error r=necko-reviewers,valentin
- We have an assumption that SetResponseHeaders will be called before WriteSegments is called for the first time. I would like to make it more structural add add a new state BEFORE_HEADERS
 - mDataReceived was never set, which is wrong.
 - Almost any error that occurs during ReadResponseData is a connection error and neqo will handle it internally by closing the session. This will be read by necko as ConnectionState change event. Therefore ignore errors received from mHttp3Connection->ReadResponseData and let the ConnectionChange event close the stream.
 - This also adds a test. Because the stream has received some data already the transaction will br closed with the NS_ERROR_NET_PARTIAL_TRANSFER error.

Differential Revision: https://phabricator.services.mozilla.com/D94951
2020-11-01 13:54:02 +00:00
Dragana Damjanovic
f98bbedf40 Bug 1673611 - Rewrite Http3Stream::WriteSegments to be similar to the nsHttpConnection's implementation r=necko-reviewers,valentin
- This will make handling of responses contain only headers in the same way as the responses with
   a response body
 - This will also make sure we pick up an error if neqo_http3conn_read_response_data return one.

Differential Revision: https://phabricator.services.mozilla.com/D94834
2020-11-01 13:54:54 +00:00
Dragana Damjanovic
488391f331 Bug 1674366 - Adapt to the neqo API changes r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D95294
2020-10-31 18:44:41 +00:00
Dragana Damjanovic
a0d95ff222 Bug 1674366 - Neqo version 0.4.14 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D95291
2020-10-31 18:44:21 +00:00
Ricky Stewart
02a7b4ebdf Bug 1654103: Standardize on Black for Python code in mozilla-central.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara
da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart
c0cea3b0fa Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca
1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart
50762dacab Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Dragana Damjanovic
ddaca31b0c Bug 1671521 - Update neqo to version 0.4.13 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D93703
2020-10-16 07:13:32 +00:00
Kershaw Chang
beca4c9d74 Bug 1652713 - Implement fallback mechanism when echConfig is enabled, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90673
2020-10-06 20:06:55 +00:00
Dorel Luca
5c6d2146ce Backed out 5 changesets (bug 1652717, bug 1665878, bug 1666620, bug 1652713) for XPCshell failures in components/migration/tests/unit/xpcshell.ini. CLOSED TREE
Backed out changeset 6322b86e1df4 (bug 1666620)
Backed out changeset ab09fd84e0e4 (bug 1652717)
Backed out changeset 018c0eebe944 (bug 1652717)
Backed out changeset 1636234a4768 (bug 1665878)
Backed out changeset 395117cd7b25 (bug 1652713)
2020-10-06 22:39:34 +03:00
Sylvestre Ledru
0bb0c0e4cf Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,webdriver-reviewers,necko-reviewers,dragana,whimboo
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D92460
2020-10-06 16:12:13 +00:00
Kershaw Chang
99208e5b56 Bug 1652713 - Implement fallback mechanism when echConfig is enabled, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90673
2020-10-06 09:47:52 +00:00
Kershaw Chang
71089ed718 Bug 1652677 - P2: Implement necko part of echconfig r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D89455
2020-10-05 15:16:46 +00:00
Dragana Damjanovic
69a2937932 Bug 1668232 - Add support for draft 30 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D91912
2020-09-30 12:01:27 +00:00
Dragana Damjanovic
ea2de4498b Bug 1668019 - Neqo offers a new event for the resumption tokens instread of get function. Also expiration tim is decoded. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D91874
2020-09-30 22:09:30 +00:00
Dragana Damjanovic
cb3f1acfbd Bug 1668019 - Update neqo to version 0.4.12 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D91873
2020-09-30 10:51:34 +00:00
Sebastian Hengst
a34f36ddbd Backed out 2 changesets (bug 1652677) on request from kershaw for causing bug 1667801
Backed out changeset 4a66e4016c18 (bug 1652677)
Backed out changeset df6bdf8157b1 (bug 1652677)
2020-09-30 13:14:00 +02:00
Dragana Damjanovic
65c57efbc7 Bug 1668021 - Some error types that neqo is returning have changed. We need to adapt the glue code. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D91870
2020-09-30 07:05:27 +00:00
Kershaw Chang
93e628b4ae Bug 1652677 - P2: Implement necko part of echconfig r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D89455
2020-09-25 07:35:04 +00:00
Razvan Maries
e761feff33 Backed out 2 changesets (bug 1652677) for build bustages on nsHttpConnection.cpp. CLOSED TREE
Backed out changeset 7df7bfbfbc6e (bug 1652677)
Backed out changeset 435ff20fa8c6 (bug 1652677)
2020-09-24 22:01:09 +03:00
Kershaw Chang
d12fbcdc43 Bug 1652677 - P2: Implement necko part of echconfig r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D89455
2020-09-24 16:20:04 +00:00
Andy Grover
99792ccf29 Bug 1649495 - Add network.http.http3.enable_qlog pref r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81949
2020-09-22 08:28:44 +00:00
Butkovits Atila
49f424b435 Backed out changeset f82548378b79 (bug 1649495) for xpc failures at test_upgrade.js. CLOSED TREE 2020-09-21 15:45:00 +03:00
Andy Grover
63993e1a49 Bug 1649495 - Add network.http.http3.qlog_enabled pref r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81949
2020-09-21 11:00:26 +00:00
Sylvestre Ledru
fd8b54c40d Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,necko-reviewers,valentin
# ignore-this-changeset

Depends on D90793

Differential Revision: https://phabricator.services.mozilla.com/D90794
2020-09-20 16:09:26 +00:00
Sylvestre Ledru
ec8859e69e Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D90793
2020-09-20 10:14:09 +00:00
Mihai Alexandru Michis
51875c07f4 Backed out changeset 932516ec74bb (bug 1649495) for causing bustages in nsHttpHandler
CLOSED TREE
2020-09-18 15:55:06 +03:00
Andy Grover
96ac4b6334 Bug 1649495 - Add network.http.http3.qlog_enabled pref r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81949
2020-09-18 07:02:15 +00:00