Tom Tung
ec157c9846
Bug 1683131 - Fix namespace ambiguity issue on ipc::Endpoint after including nsHttpChannel in imgLoader; r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D108002
2021-03-25 12:09:42 +00:00
Tom Tung
f8b719c714
Bug 1695987 - Collect the size of response to be parsed on ORB; r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D106960
2021-03-25 12:09:42 +00:00
Tom Tung
f89e57fe8c
Bug 1683131 - Add telemetry probes to record time and result for checking a opaque response is allowed or not; r=necko-reviewers,annevk,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D103028
2021-03-25 12:09:41 +00:00
Tom Tung
02e26e0a82
Bug 1696111 - Use sniffers in the requested category; r=necko-reviewers,valentin
...
After applying D102448,
uriloader/exthandler/tests/mochitest/test_nullCharFile.xhtml starts to fail.
The reason is that it adds image sniffer into net-content-sniffers which is not
expected.
Such that, this patch
- adds two other sniffers category:
- orb-content-sniffers
- The sniffers that are needed in ORB.
- net-and-orb-content-sniffers
- The sniffers that are in either orb-content-sniffers or net-content-sniffers.
- changes the way to ensure we only use the sniffers in the
requested category.
Differential Revision: https://phabricator.services.mozilla.com/D107207
2021-03-25 12:09:41 +00:00
Tom Tung
04151cd9e2
Bug 1696111 - Sniff and check the initial media request and allow its subsequent requests; r=necko-reviewers,dragana
...
This implements the changes in https://github.com/annevk/orb/pull/16/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
Differential Revision: https://phabricator.services.mozilla.com/D106891
2021-03-25 12:09:40 +00:00
Tom Tung
74f1416df7
Bug 1696111 - Extract the code for parsing range header string out and use it later; r=alwu,necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D106889
2021-03-25 12:09:39 +00:00
Tom Tung
1ff4caafd7
Bug 1696111 - ORB core Implementation; r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D102448
2021-03-25 12:09:39 +00:00
Tom Tung
612d68756f
Bug 1696111 - Add functions to determine opaque-safelisted MIME type, opaque-blocklisted MIME type and opaque-blocklisted-never-sniffed MIME type; r=necko-reviewers,dragana
...
These functions are defined at https://github.com/annevk/orb .
Differential Revision: https://phabricator.services.mozilla.com/D102447
2021-03-25 12:09:38 +00:00
Simon Giesecke
760cc7e936
Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert
...
- Add missing include directives and forward declarations.
- Remove some extra include directives.
- Add missing namespace qualifications.
- Move include directives out of namespace in toolkit/xre/GlobalSemaphore.h
Differential Revision: https://phabricator.services.mozilla.com/D98894
2021-03-25 10:19:44 +00:00
Simon Giesecke
613e20d136
Bug 1184468 - Use nsBaseHashtable::Values. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D108587
2021-03-24 17:56:49 +00:00
Simon Giesecke
15d3d060cf
Bug 1184468 - Use nsTHashtable::Keys where possible in netwerk. r=necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D106950
2021-03-24 17:51:12 +00:00
Csoregi Natalia
f54ee076ae
Backed out 13 changesets (bug 708901, bug 1184468) for causing build bustage on GeckoViewHistory.cpp. CLOSED TREE
...
Backed out changeset b1e4c01e63b8 (bug 708901)
Backed out changeset 37b52cce83c0 (bug 708901)
Backed out changeset eee75f33f060 (bug 708901)
Backed out changeset 479bf64c7986 (bug 708901)
Backed out changeset 15a8fb94d15d (bug 708901)
Backed out changeset be31ccd9a61d (bug 708901)
Backed out changeset fc54f4eaedd5 (bug 708901)
Backed out changeset 03c3a56c3d13 (bug 708901)
Backed out changeset 73f11d3c1298 (bug 708901)
Backed out changeset aed22fd80893 (bug 708901)
Backed out changeset 74d8249fbe7e (bug 708901)
Backed out changeset acb725eb3c1d (bug 1184468)
Backed out changeset 70f3ea6efec4 (bug 1184468)
2021-03-24 19:26:20 +02:00
Simon Giesecke
8aaa3daac8
Bug 1184468 - Use nsTHashtable::Keys where possible in netwerk. r=necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D106950
2021-03-24 16:58:57 +00:00
Kershaw Chang
9e4f5f9c4a
Bug 1700103 - Disallow to use https rr for internal requests r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D109348
2021-03-24 08:11:22 +00:00
Simon Giesecke
705461265d
Bug 708901 - Migrate to nsTHashSet in netwerk. r=necko-reviewers,valentin
...
Depends on D108600
Differential Revision: https://phabricator.services.mozilla.com/D108601
2021-03-23 10:36:35 +00:00
Nihanth Subramanya
4b5d33266e
Bug 1694521 - Part 4: In test_trr_flags, check that the channel actually used TRR if possible. r=valentin,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D106423
2021-03-21 20:20:36 +00:00
smolnar
aec12328ea
Backed out 6 changesets (bug 1608066, bug 1694521) for causing xpc failures in netwerk/test/unit/test_trr.js CLOSED TREE
...
Backed out changeset 8e3d7b19942b (bug 1608066)
Backed out changeset bce9de43b16f (bug 1694521)
Backed out changeset 3ca672212d45 (bug 1694521)
Backed out changeset d583fb117af4 (bug 1694521)
Backed out changeset bac1e7636cea (bug 1694521)
Backed out changeset c8f117ae9339 (bug 1694521)
2021-03-21 03:57:41 +02:00
Nihanth Subramanya
6a52863b27
Bug 1694521 - Part 4: In test_trr_flags, check that the channel actually used TRR if possible. r=valentin,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D106423
2021-03-21 01:17:30 +00:00
Kershaw Chang
dc0c5d4ebc
Bug 1698307
- Make sure the npnToken is cleared if we don't want to use h2 r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D109065
2021-03-19 13:34:39 +00:00
Kershaw Chang
02a4432e92
Bug 1698015 - Add another way to download ODoHConfigs via https r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D108174
2021-03-19 08:29:14 +00:00
Kershaw Chang
0471523b58
Bug 1697480 - P2: Collect the transaction's pending time for HTTPS RR r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D107984
2021-03-18 15:26:36 +00:00
Kershaw Chang
ba8d32bcb3
Bug 1697480 - P1: Collect the time between asyncOpen and requestStart when HTTPS RR is used r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D107983
2021-03-18 15:26:36 +00:00
Dragana Damjanovic
c7bbd65ee5
Bug 1699024 - Initialize mTotalBytesWritten r=necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D108879
2021-03-18 09:24:59 +00:00
Simon Giesecke
b9621d6376
Bug 1695162 - Use range-based for instead of custom hashtable iterators. r=xpcom-reviewers,kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D108585
2021-03-17 15:49:46 +00:00
Dragana Damjanovic
f02319ce3d
Bug 1698742 - Fix CryptoAlert codes in the telemetry r=necko-reviewers,kershaw
...
CryptoAlert codes are map from 0 to 256, the code assumes that codes start at 0x100.
A crypto alert recorded as a transport error starts at 0x100.
Differential Revision: https://phabricator.services.mozilla.com/D108582
2021-03-16 12:10:24 +00:00
Kershaw Chang
11283cf8b1
Bug 1697791 - Add support for draft 31 and 32 r=necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D108402
2021-03-15 14:44:03 +00:00
Sylvestre Ledru
81b14e2ac7
Bug 1519636 - Reformat recent changes to the Google coding style r=andi
...
Updated with clang-format version 11.0.1 (taskcluster-B6bdwSKDRF-luRQWXBuzpA)
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D108334
2021-03-15 08:45:29 +00:00
Tim Huang
bd22838f55
Bug 1687283 - Part 2: Modify the AntiTrackingRedirectHeuristic. r=dimi
...
This patch separetes the original AntiTrackingRedirectHeuristic into two
phases. The first phase will be called when we know the redirect is
about to happen. It will check necessary informance to see if we need to
process the heuristic after the classifier flag is ready for the new
channel. The second phase will be called when the classifier flag is
ready for the new channel to really save the storage access permission
for the redirect.
Differential Revision: https://phabricator.services.mozilla.com/D107048
2021-03-12 08:45:29 +00:00
Christoph Kerschbaumer
39ef03a187
Bug 1691888: Break endless upgrade downgrade loops when using https-only r=necko-reviewers,valentin,JulianWels
...
Differential Revision: https://phabricator.services.mozilla.com/D106475
2021-03-11 18:02:27 +00:00
Julien Wajsberg
1081130547
Bug 1567222 - Add a LOAD_STOP marker when a request goes through a service worker r=asuth,necko-reviewers,valentin,gerald
...
Differential Revision: https://phabricator.services.mozilla.com/D107714
2021-03-11 14:31:11 +00:00
Kershaw Chang
569dbad165
Bug 1693225 - Don't do HTTPS upgrade if a site is redirecting to HTTP r=necko-reviewers,valentin,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D105504
2021-03-10 20:08:21 +00:00
Sebastian Streich
239f9451dc
Bug 1685570 Backed out changeset 92d71744323a r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D107670
2021-03-10 15:15:24 +00:00
Simon Giesecke
ad01a10a3b
Bug 1634281
- Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin
...
Note that this patch only transforms the use of the nsDataHashtable type alias
to a directly equivalent use of nsTHashMap. It does not change the specification
of the hash key type to make use of the key class deduction that nsTHashMap
allows for in some cases. That can be done in a separate step, but requires more
attention.
Differential Revision: https://phabricator.services.mozilla.com/D106008
2021-03-10 10:47:47 +00:00
Bogdan Tara
69d8f06dc7
Backed out changeset 37aae4f2c6cf (bug 1691888) for test_break_endless_upgrade_downgrade_loop.html failures CLOSED TREE
2021-03-10 10:28:49 +02:00
Kershaw Chang
96c74d4fce
Bug 1696037 - Make sure X-Firefox-Http3 is set properly r=necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D107646
2021-03-10 08:02:55 +00:00
Christoph Kerschbaumer
37c822edfd
Bug 1691888: Break endless upgrade downgrade loops when using https-only r=necko-reviewers,valentin,JulianWels
...
Differential Revision: https://phabricator.services.mozilla.com/D106475
2021-03-10 07:30:25 +00:00
Andrew Creskey
a684bcf2c1
Bug 1696945 - Part 2: Add Http Channel completon PerfStats r=necko-reviewers,dragana
...
Record from asyncOpen to channel completion in HttpChannelChild, for both network and cache sources.
This will allow us to capture cross-platform networking timings in pageload and other scenarios.
Differential Revision: https://phabricator.services.mozilla.com/D107507
2021-03-09 15:59:43 +00:00
Simon Giesecke
bc9766c354
Bug 1634281
- Use nsTHashMap for nsBaseHashtable/nsDataHashtable uses with RefPtr data type. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D105963
2021-03-09 11:39:36 +00:00
Kershaw Chang
b23dcf46c1
Bug 1695917 - Optimize the way we get DNS service in DnsAndConnectSocket r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D106918
2021-03-09 07:58:48 +00:00
Kershaw Chang
4ecb14ce44
Bug 1695785 - Record app error code 0x00-0xff and crypto alert code in telemetry r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D107075
2021-03-08 20:30:08 +00:00
Kershaw Chang
31f8078fd1
Bug 1695780 - Make it possible to restart the transaction when having a StatelessReset error r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D107188
2021-03-08 20:03:03 +00:00
Dragana Damjanovic
dc02d58682
Bug 1687392
- Remove unnecessary queuing of QUIC packets r=necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D106425
2021-03-08 16:11:19 +00:00
Valentin Gosu
9211727cf1
Bug 1676331 - Fail request in nsHttpChannel::ContinueDoAuthRetry if rewinding the upload stream fails r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D107068
2021-03-08 10:43:13 +00:00
Kershaw Chang
0fe551068d
Bug 1696429 - Avoid racing on mThroughCaptivePortal r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D107257
2021-03-04 19:54:27 +00:00
Kershaw Chang
591f256df1
Bug 1695665 - Skip upgrading to https with HTTPS RR for internal requests r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D106780
2021-03-04 14:44:02 +00:00
Simon Giesecke
c5bdcb69d1
Bug 1695162 - Make nsBaseHashtable::ConstIter return a real ConstIterator. r=xpcom-reviewers,necko-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D106642
2021-03-03 08:58:53 +00:00
Simon Giesecke
b5855b89fc
Bug 1634281
- Remove unused nsDataHashtable.h includes. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D106007
2021-03-03 08:58:52 +00:00
Dragana Damjanovic
93d7bd18c4
Bug 1695597 - For backup transport dns flag by accident a nsISocketTransport flag was used. r=necko-reviewers,valentin
...
Also allow RFC1918 when a speculative DnsAndConnectSocket is claimed.
Differential Revision: https://phabricator.services.mozilla.com/D106836
2021-03-02 20:14:04 +00:00
Sylvestre Ledru
4edd85cc9b
Bug 1519636 - Reformat recent changes to the Google coding style r=necko-reviewers,valentin
...
Updated with clang-format version 11.0.1 (taskcluster-B6bdwSKDRF-luRQWXBuzpA)
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D106920
2021-03-02 16:14:46 +00:00
Valentin Gosu
0c7fa78a68
Bug 1681683 - Exclude OCSP channels from using TRR in mode3 r=necko-reviewers,kershaw
...
Otherwise the OCSP channel that tries to check the certificate for the DoH
server will also try to use TRR leading to DNS failures.
Differential Revision: https://phabricator.services.mozilla.com/D106884
2021-03-02 10:41:55 +00:00