Commit graph

168 commits

Author SHA1 Message Date
Dana Keeler
a0ec38070e Bug 1787321 - convert nsAHttpConnection::GetSecurityInfo into ::GetTLSSocketControl r=kershaw,necko-reviewers
This continues work started in bug 1784098.

Differential Revision: https://phabricator.services.mozilla.com/D155625
2022-08-30 00:38:57 +00:00
Sandor Molnar
f05a07c983 Backed out changeset 1c2af90126ee (bug 1787321) for causing bp-hybrid build bustages in netwerk/base/ARefBase.h CLOSED TREE 2022-08-30 02:01:11 +03:00
Dana Keeler
1dbf416fc2 Bug 1787321 - convert nsAHttpConnection::GetSecurityInfo into ::GetTLSSocketControl r=kershaw,necko-reviewers
This continues work started in bug 1784098.

Differential Revision: https://phabricator.services.mozilla.com/D155625
2022-08-29 22:34:29 +00:00
edguloien
ee944b4098 Bug 1758524 (WIP) - Implement the http priority incremental flag: added lint fixes and test coverage. Differential Revision: https://phabricator.services.mozilla.com/D142694 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D142965
2022-04-29 18:36:16 +00:00
edguloien
16595acde2 Bug 1758524 (WIP) - Implement http priority flag r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D142694
2022-04-29 18:36:16 +00:00
Cristian Tuns
5b228e4c4c Backed out 2 changesets (bug 1758524) for causing xpcshell failures in test_http3_prio_disabled_wrap.js CLOSED TREE
Backed out changeset b0abbd5936af (bug 1758524)
Backed out changeset e65d3214649e (bug 1758524)
2022-04-28 12:42:11 -04:00
edguloien
0c090761b0 Bug 1758524 (WIP) - Implement the http priority incremental flag: added lint fixes and test coverage. Differential Revision: https://phabricator.services.mozilla.com/D142694 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D142965
2022-04-28 15:40:33 +00:00
edguloien
7172c05d39 Bug 1758524 (WIP) - Implement http priority flag r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D142694
2022-04-28 15:40:33 +00:00
Dragana Damjanovic
28ef5588e1 Bug 1752270 - Retry a request that failed with 408 if HTTP/2 is used. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140827
2022-03-22 21:12:21 +00:00
Kershaw Chang
45a4bb9143 Bug 1753703 - P2: Move HttpActivityDistributor to nsHttpHandler, r=necko-reviewers,dragana
Since both DnsAndConnectSocket and nsHttpTransaction use HttpActivityDistributor, let's refactor this a bit by moving some duplicate code to nsHttpHandler.
This patch also makes it possible to test ECH activity for Http3 case.

Differential Revision: https://phabricator.services.mozilla.com/D138893
2022-02-18 09:30:18 +00:00
Cristian Tuns
5b29184ccd Backed out 2 changesets (bug 1753703) for causing Bp-hybrid bustages on Http3Session.cpp CLOSED TREE
Backed out changeset 192cda8fb4dd (bug 1753703)
Backed out changeset 1c1324708e2c (bug 1753703)
2022-02-17 12:13:47 -05:00
Kershaw Chang
411a33e643 Bug 1753703 - P2: Move HttpActivityDistributor to nsHttpHandler, r=necko-reviewers,dragana
Since both DnsAndConnectSocket and nsHttpTransaction use HttpActivityDistributor, let's refactor this a bit by moving some duplicate code to nsHttpHandler.
This patch also makes it possible to test ECH activity for Http3 case.

Depends on D138892

Differential Revision: https://phabricator.services.mozilla.com/D138893
2022-02-17 13:28:18 +00:00
Dragana Damjanovic
6e83386ee0 Bug 1741423 - Propagate 1xx response from HTTP/3 layer. r=nhnt11
The Http3Stream’s received side has one state, i.e. READING_INTERIM_HEADERS. The stream transitions into this state when 1xx response is received and it transitions back to BEFORE_HEADERS  as new headers are expected. As with the final headers the 1xx headers are stored into mFlatResponseHeaders and they are picked up by the HttpTransaction from there.

neqo makes sure that response headers and data are received in the right order, e.g. 1xx cannot be received after a non-1xx response, fin cannot follow 1xx response, etc.

Differential Revision: https://phabricator.services.mozilla.com/D132831
2021-12-15 09:18:17 +00:00
Dragana Damjanovic
06c90cba6d Bug 1743378 - Adapt mozilla-central to the new neqo API r=necko-reviewers,kershaw
Most important changes:
 - Neqo API now only use StreamId instead of u64 for the stream  ids
 - The server side API has send_headers, send_data and stream_close_send  instead of a single set_response. Important change is also that send_data does not accept more data than the flow control allows. Set_response used to accept all data unconditionally. Therefore now we need to listen to DataWritable events.

Differential Revision: https://phabricator.services.mozilla.com/D132594
2021-12-03 13:13:09 +00:00
criss
37ba052114 Backed out 2 changesets (bug 1743378) for causing xpcshell failures on test_http3_direct_proxy.js. CLOSED TREE
Backed out changeset 3661673e2577 (bug 1743378)
Backed out changeset a6eab1b75981 (bug 1743378)
2021-12-02 14:58:40 +02:00
Dragana Damjanovic
e672920cb2 Bug 1743378 - Adapt mozilla-central to the new neqo API r=necko-reviewers,kershaw
Most important changes:
 - Neqo API now only use StreamId instead of u64 for the stream  ids
 - The server side API has send_headers, send_data and stream_close_send  instead of a single set_response. Important change is also that send_data does not accept more data than the flow control allows. Set_response used to accept all data unconditionally. Therefore now we need to listen to DataWritable events.

Differential Revision: https://phabricator.services.mozilla.com/D132594
2021-12-02 08:23:20 +00:00
Manuel Bucher
7056b2cb0c Bug 1734132 - Map necko priorities to http3 priorities r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D127834
2021-11-23 17:22:30 +00:00
Kershaw Chang
14db165b22 Bug 1734609 - Fix the test:testAllRecordsInHttp3ExcludedList, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D130637
2021-11-18 10:22:15 +00:00
Cristian Tuns
acd5a045f9 Backed out 3 changesets (bug 1734132) for causing hybrid/build bustages on Http3Stream.cpp CLOSED TREE
Backed out changeset 51a131c3817b (bug 1734132)
Backed out changeset aee682c3af71 (bug 1734132)
Backed out changeset 51ba73eb5bc2 (bug 1734132)
2021-11-17 11:55:11 -05:00
Manuel Bucher
9dc81abf3e Bug 1734132 - Map necko priorities to http3 priorities r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D127834
2021-11-17 16:26:30 +00:00
Alexandru Michis
d844e2f9a5 Backed out 3 changesets (bug 1734132) for causing bustages in Http3Stream.cpp
CLOSED TREE

Backed out changeset 511af4b42efc (bug 1734132)
Backed out changeset 9516eb1214d8 (bug 1734132)
Backed out changeset 513d740d6477 (bug 1734132)
2021-11-16 20:26:52 +02:00
Manuel Bucher
e1ce16359b Bug 1734132 - Map necko priorities to http3 priorities r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D127834
2021-11-16 17:01:07 +00:00
Valentin Gosu
6b419daeb0 Bug 1702529 - Pass NetAddr pointers to rust instead of a serialization r=necko-reviewers,dragana
It seems that the serialization generated by inet_ntop_internal via
getnameinfo is sometimes wrong, returning `?` instead of serializing the
IP we pass in.
It's also inefficient to keep passing the serialization to and from rust
code - instead it's much easier to just pass a pointer to the NetAddr
union and build a proper SocketAddr instance on the rust side from
from the bytes instead of parsing the serialization

Differential Revision: https://phabricator.services.mozilla.com/D129489
2021-10-27 15:28:41 +00:00
Cristian Tuns
d766fa0f20 Backed out changeset ba94ff2a7696 (bug 1702529) for causing build bustages. CLOSED TREE 2021-10-27 07:07:17 -04:00
Valentin Gosu
609bf1922f Bug 1702529 - Pass NetAddr pointers to rust instead of a serialization r=necko-reviewers,dragana
It seems that the serialization generated by inet_ntop_internal via
getnameinfo is sometimes wrong, returning `?` instead of serializing the
IP we pass in.
It's also inefficient to keep passing the serialization to and from rust
code - instead it's much easier to just pass a pointer to the NetAddr
union and build a proper SocketAddr instance on the rust side from
from the bytes instead of parsing the serialization

Differential Revision: https://phabricator.services.mozilla.com/D129489
2021-10-27 10:44:46 +00:00
Valentin Gosu
4cd661b6a5 Bug 1733356 - Fix non-unified build errors in netwerk/protocol/http/ r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D127407
2021-10-14 12:58:01 +00:00
Dragana Damjanovic
4aff9977b4 Bug 1734198 - Close transactions with NS_ERROR_NET_RESET if a stateless reset is received on a HTTP/3 connection. r=necko-reviewers,valentin
This is an appropriate error to set and it may cause transactions to be restarted if possible (e.g. no data has been received already and the method is safe).

Differential Revision: https://phabricator.services.mozilla.com/D127877
2021-10-14 12:55:35 +00:00
Cosmin Sabou
8d444b25a5 Backed out 10 changesets (bug 1733356, bug 1733922) for causing windows hybrid bustages. CLOSED TREE
Backed out changeset 85b747a60e73 (bug 1733922)
Backed out changeset 4af7a3a697ad (bug 1733356)
Backed out changeset 3b2e02c99090 (bug 1733356)
Backed out changeset b481b801250e (bug 1733356)
Backed out changeset 88c33cdcb8aa (bug 1733356)
Backed out changeset 3d31e8c8e194 (bug 1733356)
Backed out changeset 616f676e8f94 (bug 1733356)
Backed out changeset 3f8e9b14879d (bug 1733356)
Backed out changeset 241c7cdb3f6b (bug 1733356)
Backed out changeset 7f9e266070c6 (bug 1733356)
2021-10-14 01:54:30 +03:00
Valentin Gosu
a549c09e13 Bug 1733356 - Fix non-unified build errors in netwerk/protocol/http/ r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D127407
2021-10-13 19:39:08 +00:00
Kershaw Chang
21d1774ea9 Bug 1726528 - Add a pref to control whether to enable echConfig for http3, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D123125
2021-09-20 14:24:14 +00:00
Manuel Bucher
ecf25dc8fa Bug 1730672 - Update neqo to 0.5.0 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D125528
2021-09-14 13:37:19 +00:00
Dragana Damjanovic
3dafd2ce8f Bug 1723218 - Change flow control limits in HTTP/3 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D121427
2021-08-19 14:34:30 +00:00
Nihanth Subramanya
9b75bb157e Bug 1720079 - Don't advance Http3Session's ProcessEvents loop without getting the next event. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D119719
2021-07-13 20:08:48 +00:00
Kershaw Chang
bba712b93d Bug 1654507 - Part2: Plumbing for echRetry, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D119403
2021-07-13 09:24:26 +00:00
Kershaw Chang
3b354571f5 Bug 1654507 - Part1: Plumbing for setting ech config, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D119402
2021-07-13 09:24:25 +00:00
Dragana Damjanovic
d16580df6e Bug 1717505 - Expose ECH reltated events and error from neqo to necko r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D118575
2021-06-25 10:39:55 +00:00
Valentin Gosu
ce78c5baeb Bug 1714307 - Run modernize-use-default-member-init --fix check on netwerk/protocol/http/ r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D117503
2021-06-16 08:10:12 +00:00
Csoregi Natalia
938a6943c6 Backed out changeset 6e00f8bd2acc (bug 1714307) for causing hazard bustage. CLOSED TREE 2021-06-09 21:50:03 +03:00
Valentin Gosu
d1513f313e Bug 1714307 - Run modernize-use-default-member-init --fix check on netwerk r=necko-reviewers,kershaw
This changeset is the result of adding modernize-use-default-member-init to
tools/clang-tidy/config.yaml then proceeding to run
`./mach static-analysis check netwerk/ --fix`
I then went through the resulting fix and manually updated all of the member
variables which were missed due to them having a non-trivial constructor.

Note that the tool was only run on Linux, so code that only runs on some
platforms may have been missed.

The member variables that are still initialized in the contructor definition
are:
  - bitfields (not all currently supported compilers allow default-member-init
  - variables that are initialized via a parameter
  - variables that use code not visible in the header file

There are a few advantages to landing this change:
- fewer lines of code - now declaration is in the same place as initialization
  this also makes it easier to see when looking at the header.
- it makes it harder to miss initializing a member when adding a new contructor
- variables that depend on an include guard look much nicer now

Additionally I removed some unnecessary reinitialization of NetAddr members
(it has a constructor that does that now), and changed nsWifiScannerDBus to
use the thread-safe strtok_r instead of strtok.

Differential Revision: https://phabricator.services.mozilla.com/D116980
2021-06-09 10:20:04 +00:00
Valentin Gosu
d595491cc7 Bug 1714307 - Autofix static-analysis warnings in netwerk/ r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D116701
2021-06-04 12:35:16 +00:00
Butkovits Atila
692bda1ca1 Backed out changeset c4b44c4ef15b (bug 1714307) for causing build bustages on nsHTTPCompressConv.h. CLOSED TREE 2021-06-04 13:53:37 +03:00
Valentin Gosu
98146ae90b Bug 1714307 - Autofix static-analysis warnings in netwerk/ r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D116701
2021-06-04 10:00:55 +00:00
Valentin Gosu
c46e217683 Bug 1708116 - Use NetAddr::InitFromString instead of PR_StringToNetAddr r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D113752
2021-05-10 09:26:01 +00:00
Brindusan Cristian
31acb9e00c Backed out 2 changesets (bug 1708116) for causing xpcshell failures in test_udpsocket_offline.js and bc failures in browser_cookies_ipv6.js. CLOSED TREE
Backed out changeset 0c9b303226f1 (bug 1708116)
Backed out changeset e3be13d3c045 (bug 1708116)
2021-05-06 16:35:48 +03:00
Dragana Damjanovic
59de1000ae Bug 1708869 - Fix rebuilding certs with HTTP3 and 0RTT r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D114387
2021-05-06 11:54:48 +00:00
Valentin Gosu
301361bdfb Bug 1708116 - Use NetAddr::InitFromString instead of PR_StringToNetAddr r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D113752
2021-05-06 10:06:46 +00:00
Sandor Molnar
f7b8c6b3d1 Backed out 2 changesets (bug 1708116) for causing build bustages. CLOSED TREE
Backed out changeset d1488e9d64a6 (bug 1708116)
Backed out changeset 44ed91f0b7b4 (bug 1708116)
2021-05-04 18:41:36 +03:00
Valentin Gosu
5ae9a468e0 Bug 1708116 - Use NetAddr::InitFromString instead of PR_StringToNetAddr r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D113752
2021-05-04 14:05:59 +00:00
Dragana Damjanovic
93d94e1a32 Bug 1705171 - Reset Http3Session::mTransactionCount after ZeroRtt data have been rejected r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D114017
2021-05-03 08:49:49 +00:00
Nihanth Subramanya
0bad830a0b Bug 1704079 - Set negotiated NPN in Http3Session::SetSecInfo. r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D111405
2021-04-14 19:41:26 +00:00