Commit Graph

8540 Commits

Author SHA1 Message Date
Razvan Maries
2e98c304f8 Backed out 2 changesets (bug 1663192) for build bustages on nsHttpChannel.cpp. CLOSED TREE
Backed out changeset a12d9ab2562c (bug 1663192)
Backed out changeset b47fca4272fd (bug 1663192)
2020-09-25 02:34:05 +03: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
Kershaw Chang
bd99e0b590 Bug 1652677 - P1: Prefer to use records with ECH config r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D89454
2020-09-24 14:29:56 +00:00
Tim Huang
a5c949a08a Bug 1663192 - Part 2: Set the IsThirdPartyToTopWindow in the nsBaseChannel. r=dimi,kershaw,necko-reviewers
We should also set IsThirdPartyToTopWindow flag and HasStoragePermission
in loadInfo for channels loading `file:` uri. So, we set this flag in the
nsBaseChannel::AsyncOpen(). This change would affect about: and data:
channels.

Differential Revision: https://phabricator.services.mozilla.com/D91002
2020-09-24 09:10:17 +00:00
Akihiko Odaki
857f18b6f5 Bug 1605305 - Origin header field is not set to HTTP request in cases where it is required, r=ckerschb,necko-reviewers,JuniorHsu
***
trr debugging

Differential Revision: https://phabricator.services.mozilla.com/D80905
2020-09-23 19:00:10 +00:00
Simon Giesecke
de7bab0f06 Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82325
2020-09-23 15:17:15 +00:00
Andrea Marchesini
60b6161a74 Bug 1635828 - Isolate HSTS per first-party when privacy.partition.network_state is set to true - part 3 - partition key, r=xeonchen
Differential Revision: https://phabricator.services.mozilla.com/D83316
2020-09-20 20:51:12 +00:00
Andrea Marchesini
7c4292e435 Bug 1635828 - Isolate HSTS per first-party when privacy.partition.network_state is set to true - part 1 - implementation, r=timhuang,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D74077
2020-09-20 20:51:11 +00:00
Christoph Kerschbaumer
c9b352a0f3 Bug 1666751: Use simple and never failing LoadInfo() getter because all channels should have a loadinfo r=freddyb,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91119
2020-09-23 12:49:40 +00:00
Kagami Sascha Rosylight
bcf37d1286 Bug 1658563 - Support .lnk files in file: protocol r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D90283
2020-09-22 07:26:33 +00:00
Kershaw Chang
1f856b7a5c Bug 1665623 - Remove the unnessary lock r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D90672
2020-09-18 09:11:22 +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
Dragana Damjanovic
2560f18994 Bug 1666338 - Do not reset the Http3Stream state if 0RTT was accepted. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D90911
2020-09-22 07:46:02 +00:00
Simon Giesecke
2e065c64d6 Bug 1665614 - Make mozilla::Result work with non-copyable/non-param error types. r=emilio,jandem
Among other things, there were some misuses of std::forward, and
GenericErrorResult was (presumably accidentally) instatiated with
references as the template argument type, e.g. const nsresult&,
which circumvented the check for not calling it with NS_OK in
ResultExtensions.h

Differential Revision: https://phabricator.services.mozilla.com/D90561
2020-09-21 13:12:48 +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
Butkovits Atila
270e7e2200 Backed out 5 changesets (bug 1665927, bug 1665614, bug 1665850) for causing bustage on Result.h. CLOSED TREE
Backed out changeset 1467e76399e8 (bug 1665927)
Backed out changeset ebd4dfbc0a88 (bug 1665850)
Backed out changeset 5e23340e3b39 (bug 1665850)
Backed out changeset 5bc547e7a773 (bug 1665850)
Backed out changeset 8d88afb85a78 (bug 1665614)
2020-09-21 15:25:16 +03:00
Simon Giesecke
3b0420646e Bug 1665614 - Make mozilla::Result work with non-copyable/non-param error types. r=emilio,jandem
Among other things, there were some misuses of std::forward, and
GenericErrorResult was (presumably accidentally) instatiated with
references as the template argument type, e.g. const nsresult&,
which circumvented the check for not calling it with NS_OK in
ResultExtensions.h

Differential Revision: https://phabricator.services.mozilla.com/D90561
2020-09-21 10:38:19 +00: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
Narcis Beleuzu
4a31045523 Backed out 4 changesets (bug 1635828) for causing Bug 1666083
Backed out changeset 1f93614c3fde (bug 1635828)
Backed out changeset 04a8f6581dde (bug 1635828)
Backed out changeset 1bfeca8427e6 (bug 1635828)
Backed out changeset 8ec4db600c1f (bug 1635828)
2020-09-20 20:00:45 +03: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
Matt Woodrow
9638778ace Bug 1604447 - Remove channel diversion code. r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90193
2020-09-18 20:56:54 +00:00
Bogdan Tara
8dede7a88d Backed out changeset 3cb12ccee75a (bug 1604447) for causing build bustage CLOSED TREE 2020-09-18 23:43:46 +03:00
Matt Woodrow
d990dadcc7 Bug 1604447 - Remove channel diversion code. r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90193
2020-09-18 06:56:38 +00:00
Andrea Marchesini
487589caae Bug 1635828 - Isolate HSTS per first-party when privacy.partition.network_state is set to true - part 3 - partition key, r=xeonchen
Differential Revision: https://phabricator.services.mozilla.com/D83316
2020-09-16 14:33:31 +00:00
Andrea Marchesini
60e30534dc Bug 1635828 - Isolate HSTS per first-party when privacy.partition.network_state is set to true - part 1 - implementation, r=timhuang,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D74077
2020-08-04 10:39:45 +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
Kershaw Chang
37bd97f6a1 Bug 1656697, r=valentin,necko-reviewers
The root cause in this bug is that the connection info used by `SpdyConnectTransaction` is the same instance as the connection info in `nsHttpTransaction`, so we should clone it and let `SpdyConnectTransaction` use the cloned one.

Differential Revision: https://phabricator.services.mozilla.com/D89801
2020-09-16 08:19:17 +00:00
Kershaw Chang
97bba57b62 Bug 1529759 - Don't inline nsHttpChannel::DoConnect r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D89706
2020-09-16 07:34:02 +00:00
Matt Woodrow
69ea94aefc Bug 1664948 - Remove content process interception from HttpChannelChild. r=asuth,dragana,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D90192
2020-09-15 23:44:58 +00:00
Narcis Beleuzu
c7f4f12791 Backed out changeset fa3e94e7c584 (bug 1664948) for bustages on HttpChannelParent.cpp . CLOSED TREE 2020-09-16 02:10:13 +03:00
Matt Woodrow
b75c1b3b01 Bug 1664948 - Remove content process interception from HttpChannelChild. r=asuth,dragana,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D90192
2020-09-15 20:47:06 +00:00
Valentin Gosu
07362aeaa4 Bug 1663657 - Turn IsIpAddr* functions into NetAddr methods r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D89552
2020-09-15 10:39:56 +00:00
Junior Hsu
ec6be89428 Bug 1655895 - do not set a timer for neqo passed a UINT64::MAX, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D85234
2020-08-24 17:23:00 +00:00
Razvan Maries
c8e604eb78 Backed out 4 changesets (bug 1660970, bug 1525854, bug 1663657, bug 1645108) for perma failures on test_trr_additional_section.js. CLOSED TREE
Backed out changeset ad6c2e8af09b (bug 1663657)
Backed out changeset 419e26e3f452 (bug 1525854)
Backed out changeset 55bf856faf33 (bug 1660970)
Backed out changeset c543a3a008fa (bug 1645108)
2020-09-15 02:35:05 +03:00
Dragana Damjanovic
3459cf7d68 Bug 1655636 - avoid reinitializing the timers for ProcessOutputAndEvents, r=dragana,necko-reviewers
We initialize the same timer with different delays.
Therefore, `SetDelay` is enough for this case.

Differential Revision: https://phabricator.services.mozilla.com/D85233
2020-09-14 23:09:58 +00:00
Valentin Gosu
6d149e6e7a Bug 1663657 - Turn IsIpAddr* functions into NetAddr methods r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D89552
2020-09-14 12:06:27 +00:00
Kagami Sascha Rosylight
f949ec8d28 Bug 1664514 - Proper null checks in CORS/fetch r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D89960
2020-09-14 18:36:25 +00:00
Kershaw Chang
361fe2d82b Bug 1652670 - P2: Make nsSocketTransport use IP hint address to connect r=valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D88988
2020-09-14 14:47:36 +00:00
Cristina Coroiu
ca591bd0d6 Backed out changeset 633d2aa345a3 (bug 1664514) fro crashtest failures at dom/fetch/tests/crashtests/1664514.html on a CLOSED TREE 2020-09-14 18:18:10 +03:00
Kagami Sascha Rosylight
be6889463a Bug 1664514 - Proper null checks in CORS/fetch r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D89960
2020-09-14 09:50:46 +00:00
Emilio Cobos Álvarez
f9ac84ac67 Bug 1664405 - Properly copy mHasCacheControl in nsHttpResponseHead::operator=. r=dragana,necko-reviewers
Oof, I sometimes really hate C++ :/

The new assert makes our tests go boom without the fix.

Differential Revision: https://phabricator.services.mozilla.com/D89940
2020-09-11 17:17:07 +00:00
Kershaw Chang
40ec8af428 Bug 1663718 - Don't put too much data in buffer when the data can't be written to socket r=dragana
The main reason we used too much memory is that we ignore the `NS_BASE_STREAM_WOULD_BLOCK` returned from socket output stream.
When the output stream is blocked, all the data is stored in the output queue and make the memory usage high.

Differential Revision: https://phabricator.services.mozilla.com/D89563
2020-09-11 08:44:07 +00:00
Dragana Damjanovic
05c4dcd62f Bug 1650388 - Send 0RTT data. r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D87231
2020-09-10 20:48:56 +00:00
Dragana Damjanovic
368bae162a Bug 1650388 - Cache and use resumption tokens. r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D87230
2020-09-10 20:48:56 +00:00
Narcis Beleuzu
57fd870466 Backed out 3 changesets (bug 1308104) for bustages on nsHttp.cpp . CLOSED TREE
Backed out changeset e78791b93526 (bug 1308104)
Backed out changeset b5c1875c11c7 (bug 1308104)
Backed out changeset 9c8433be706e (bug 1308104)
2020-09-10 22:43:25 +03:00
Nicklas Boman
eb33e0f63f Bug 1308104 - Replace PL_strchr with a safer Gecko string class or function netwerk/ r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D89326
2020-09-10 17:38:42 +00:00
Dragana Damjanovic
7433c1b34d Bug 1618849 - Add separate AltSvc for http2 and http3 and prefer http3 if allowed. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D86934
2020-09-09 10:32:22 +00:00
Bogdan Tara
d5746a62fe Backed out changeset 7813723422bf (bug 1618849) for browser_staticPartition_network.js failures CLOSED TREE 2020-09-09 04:58:46 +03:00