Граф коммитов

22003 Коммитов

Автор SHA1 Сообщение Дата
Valentin Gosu 8e80fa3f32 Bug 1658278 - Move member initialization to header file r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D107665
2021-03-19 17:51:26 +00:00
Valentin Gosu 0aea403b8a Bug 1658278 - Treat calls to TRRService::CompleteLookup differently based on the purpose of the TRR request r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D107664
2021-03-19 17:51:25 +00:00
Noemi Erli d6c77a2d6e Bug 1698503 - Lint failure fix r=fix CLOSED TREE 2021-03-19 16:47:22 +02:00
Frederik Braun 62c411e5e9 Bug 1698503 - robuster port blocking r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D108451
2021-03-19 14:08:03 +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 f5610eabae Bug 1699463 - Update neqo to v0.4.23 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D108961
2021-03-18 16:18:27 +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
ffxbld 10763f5ccf No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D108949
2021-03-18 14:52:53 +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
Narcis Beleuzu ffb77b2d9a Backed out 9 changesets (bug 1581859) for bustages jsapi.h . CLOSED TREE
Backed out changeset 2a3a77ae1eae (bug 1581859)
Backed out changeset 181c3f29f222 (bug 1581859)
Backed out changeset f7c39feb502e (bug 1581859)
Backed out changeset 9c7d0015c616 (bug 1581859)
Backed out changeset d2b8ee78745d (bug 1581859)
Backed out changeset 92359266d420 (bug 1581859)
Backed out changeset 98ba6b96c900 (bug 1581859)
Backed out changeset 0eb043b5c904 (bug 1581859)
Backed out changeset 55a4c2fc561d (bug 1581859)
2021-03-18 08:26:57 +02:00
Kris Maglione 82fc76ce55 Bug 1581859: Part 3b - Update existing GetPropertyAsInterface callers to use typesafe do_GetProperty instead. r=mccr8,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D103211
2021-03-18 05:51:06 +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
Brindusan Cristian 58b5969968 Backed out 2 changesets (bug 1698438) for windows build bustages. CLOSED TREE
Backed out changeset a27e4101f65f (bug 1698438)
Backed out changeset 257f86638d46 (bug 1698438)
2021-03-17 14:52:27 +02:00
Kershaw Chang d6486313b6 Bug 1698438 - Adapt neqo_glue to v0.4.22 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D108752
2021-03-17 12:15:55 +00:00
Kershaw Chang cb78102ea6 Bug 1698438 - Neqo version 0.4.22 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D108750
2021-03-17 12:15:54 +00:00
Niklas Gögge ed5eaf624b Bug 1647128 - Detect webby navs caused by meta refreshes in IsUserTriggeredForSecFetchSite check r=necko-reviewers,ckerschb,valentin
Differential Revision: https://phabricator.services.mozilla.com/D108035
2021-03-17 11:42:55 +00:00
Alexandru Michis 0f6819e94d Bug 1697970 - Disable test_arraybufferinputstream_large.html on linux asan for permafailing. r=jstutte,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D108220
2021-03-17 05:56:22 +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 f23916698a Bug 1689555 - Turn on the Prefer Address feature r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D108187
2021-03-16 08:27:36 +00:00
owlishDeveloper 6d75d587c0 Bug 1523577 - Make sure we don't initialize tickler on child processes r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D108267
2021-03-15 22:13:15 +00:00
Valentin Gosu ba0966a067 Bug 1675542 - Add stubs for Android and OSX impl of nsINetworkLinkService.resolvers r=necko-reviewers,dragana
Depends on D96084

Differential Revision: https://phabricator.services.mozilla.com/D96085
2021-03-15 17:58:03 +00:00
Valentin Gosu e9ae3a03ea Bug 1675542 - Add API to get the system DNS resolver IPs [windows] r=necko-reviewers,dragana
Depends on D96065

Differential Revision: https://phabricator.services.mozilla.com/D96084
2021-03-15 17:58:02 +00:00
Valentin Gosu 841b804940 Bug 1675542 - Add API to get the system DNS resolver IPs [Linux] r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D96065
2021-03-15 17:58:02 +00:00
Valentin Gosu f606509e70 Bug 1697164 - Make nsStandardURL::gInitialized atomic r=necko-reviewers,kershaw
See bug 1606800 comment 0

Differential Revision: https://phabricator.services.mozilla.com/D107639
2021-03-15 15:22:31 +00:00
ffxbld b6c0f67943 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D108456
2021-03-15 14:52:33 +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
Valentin Gosu 2908546667 Bug 1698388 - Fix static-analysis warnings in NetLinkService.cpp r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D108358
2021-03-15 10:28:32 +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
Tim Huang a39ff4c926 Bug 1687283 - Part 1: Add a flag 'needForCheckingAntiTrackingHeuristic' in loadInfo. r=kershaw,necko-reviewers
This patch adds a flag 'needForCheckingAntiTrackingHeuristic' in
loadInfo. This flag will be used for deciding if we need to check the
AntiTracking heuristic after the channel has been classified.

Differential Revision: https://phabricator.services.mozilla.com/D107047
2021-03-12 08:45:29 +00:00
Byron Campen [:bwc] f05c58546c Bug 1696593: Ensure that the DNS service is initted (on main) before trying to init NrIceCtx. r=mjf,kershaw,necko-reviewers
Also add some NS_WARN_IF that helped find the bug.

Differential Revision: https://phabricator.services.mozilla.com/D107508
2021-03-11 21:03:30 +00:00
Kris Maglione ffd58d6ef1 Bug 1697305: Null check top embedder element after running JS. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D107728
2021-03-11 19:21:00 +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
Anny Gakhokidze aa3895af8c Bug 1597427 - Check for recursive subframe loads in the parent process, r=kmag,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107311
2021-03-11 00:39:37 +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
Olli Pettay a2d036fda6 Bug 1696923 - [SHIP] Update SaveLayoutStateFlag after page load similarly to in-process session history, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D107479
2021-03-09 18:16:58 +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
Nika Layzell af56264610 Bug 1663757 - Part 2: Don't suspend webProgress on process switch, r=annyG,mattwoodrow
Previously, we would need to suspend progress events from the previous
BrowserParent, as otherwise we would receive STATE_STOP progress notifications
from the previous browser when it is destroyed, which would throw off frontend
code. With the new checks added by part 1, we will now catch these cases by
detecting that the current window global has changed, and we can get rid of this
explicit override.

Differential Revision: https://phabricator.services.mozilla.com/D105557
2021-03-09 15:29:40 +00:00
Olli Pettay a46567f045 Bug 1696266, limit the load types which may cause the page to enter bfcache, r=peterv
The change to dom/base/nsFrameLoaderOwner.cpp is to log about the issues but still ensure we don't crash.

I'd prefer to not put error loads to bfcache.

Differential Revision: https://phabricator.services.mozilla.com/D107300
2021-03-09 13:42: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
Simon Giesecke cb6c8aead4 Bug 1695162 - Make nsTHashtable::ConstIter return a real ConstIterator. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D107038
2021-03-09 10:28:16 +00:00
Kershaw Chang 318303d8e8 Bug 1662676 - Add diagnostic assertion at more places r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D106939
2021-03-09 08:35:45 +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
ffxbld 082221c65a No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D107469
2021-03-08 14:53:46 +00:00
Valentin Gosu f1732976d8 Bug 1676331 - Test that submitting a form with a large blob works with authentication r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D107069
2021-03-08 10:43:13 +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
Valentin Gosu 096363c840 Bug 1696417 - Move HTTP logging page to in-tree docs r=necko-reviewers,sylvestre,dragana DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D107208
2021-03-08 10:28:12 +00:00
Valentin Gosu 07f95b4824 Bug 1696393 - Add in-tree HTTP cache docs r=necko-reviewers,sylvestre,dragana DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D107203
2021-03-08 10:28:11 +00:00
Dragana Damjanovic e7bc21634c Bug 1695879 - Removing QUIC from nsSocketTransport was incorrect r=necko-reviewers,valentin
This cause some of the socket options not to be set.

Differential Revision: https://phabricator.services.mozilla.com/D107299
2021-03-08 08:15:56 +00:00
Simon Giesecke 7c6ccbe4a8 Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D97742
2021-03-05 15:29:49 +00:00
Valentin Gosu 3f6eec2f43 Bug 1677521 - Enable test_trr.js::test25e r=necko-reviewers,kershaw
This test was disabled in Bug 1666072 when we set the allowSTS=false for
captive portal requests to prevent a HSTS upgrade redirect.

Bug 1681683 added a different property (isOCSP) to be able to differentiate
OCSP channels from regular ones, so even if captive portal channels have
allowSTS=false, they still use the same TRR mode as was initially set
on the channel. This means the test will now work in mode3 as well.

Differential Revision: https://phabricator.services.mozilla.com/D106892
2021-03-05 14:26:22 +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
ffxbld 53e685af65 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D107218
2021-03-04 15:07:19 +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
Valentin Gosu d83402f7b1 Bug 1513519 - Always hold lock when accessing mResolver r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D106913
2021-03-04 10:14:59 +00:00
Simon Giesecke 57e0c360e3 Bug 1696349 - Remove redundant nullptr checks of return value of infallible new in netwerk. r=necko-reviewers,valentin
Depends on D107180

Differential Revision: https://phabricator.services.mozilla.com/D107181
2021-03-04 09:14:34 +00:00
Jan Varga eeb8cf2781 Bug 1695883 - Add explicit fallible mozStorageTransaction::Start method for starting the transaction; r=dom-storage-reviewers,sg
The new method is mandatory because mozStorageTransaction constructor no longer
starts the transaction. It must be started explicitely.

All consumers have been adjusted, but only dom/quota, dom/indexedDB, dom/cache,
dom/localstorage and dom/storage handle the error. Other components like
netwerk/cache, netwerk/cookie and toolkit/components currently only warn on
failure to start a transaction. Bug 1696129, 1696130 and 1696133 have been
filed for proper handling of transaction start failures in those components.

Differential Revision: https://phabricator.services.mozilla.com/D106893
2021-03-04 04:38:06 +00:00
Valentin Gosu a13ad605e4 Bug 1694949 - Add event telemetry containing failure reasons that lead to TRR confirmation failure r=nhnt11,dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106618
2021-03-03 14:32:24 +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
Sylvestre Ledru dd5945e932 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
Updated with rustfmt 1.4.18-stable (8157a3f 2020-07-15)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D106921
2021-03-02 15:35:36 +00:00
Olli Pettay 9a5e1b83eb Bug 1689601, hide fission.bfcacheInParent pref access behind a function which checks that also SHIP is enabled, r=peterv,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106562
2021-03-02 12:13:21 +00:00
Olli Pettay 0d29b12841 Bug 1689601, Rename RemotenessChangeState to RemotenessChangeOptions, r=peterv
This addresses part of the review comment from https://phabricator.services.mozilla.com/D105229

Differential Revision: https://phabricator.services.mozilla.com/D106561
2021-03-02 12:13:21 +00:00
Olli Pettay 911d46a8b6 Bug 1689601, try to use bfcache for top level pages, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D105238
2021-03-02 12:13:20 +00:00
Olli Pettay bb438452a1 Bug 1689601, Add DocumentChannel ID to DocumentLoadListener, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D105231
2021-03-02 12:13:17 +00:00
Olli Pettay 3df3621351 Bug 1689601, pass various states of remoteness change / browsing context swap using a helper struct, r=peterv
The name RemotenessChangeState uses same the convention as the related methods, even though there might
not be a remoteness change happening, only a browsing context switch. But the naming
inconsistency exists there even without any bfcache work.

RemotenessChangeState will be renamed to RemotenessChangeOptions in a followup.

Differential Revision: https://phabricator.services.mozilla.com/D105229
2021-03-02 12:13:16 +00:00
Mihai Alexandru Michis 87f481bf9a Backed out 16 changesets (bug 1689601) for causing cpp bustages in nsFrameLoader.
CLOSED TREE

Backed out changeset 6e5523a7210d (bug 1689601)
Backed out changeset 745eaa468c74 (bug 1689601)
Backed out changeset a594bd02b8b6 (bug 1689601)
Backed out changeset 0c5fe977ced6 (bug 1689601)
Backed out changeset 2fca23521891 (bug 1689601)
Backed out changeset 334aeb627855 (bug 1689601)
Backed out changeset 2b2081a15d67 (bug 1689601)
Backed out changeset 307bde43cc96 (bug 1689601)
Backed out changeset 04aadec67ce2 (bug 1689601)
Backed out changeset 701eccb34772 (bug 1689601)
Backed out changeset 278db692aa8b (bug 1689601)
Backed out changeset c261c243a64d (bug 1689601)
Backed out changeset 7e8022e5696a (bug 1689601)
Backed out changeset 6138bfc6c08d (bug 1689601)
Backed out changeset 63295b3a62d0 (bug 1689601)
Backed out changeset 6d02e59ddc51 (bug 1689601)
2021-03-02 13:15:10 +02: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
Olli Pettay f09a7f25d5 Bug 1689601, hide fission.bfcacheInParent pref access behind a function which checks that also SHIP is enabled, r=peterv,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106562
2021-03-02 09:44:14 +00:00
Olli Pettay 42a29f41de Bug 1689601, Rename RemotenessChangeState to RemotenessChangeOptions, r=peterv
This addresses part of the review comment from https://phabricator.services.mozilla.com/D105229

Differential Revision: https://phabricator.services.mozilla.com/D106561
2021-03-02 09:44:13 +00:00
Olli Pettay 101955fa30 Bug 1689601, try to use bfcache for top level pages, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D105238
2021-03-02 09:44:12 +00:00
Olli Pettay 9343c38009 Bug 1689601, Add DocumentChannel ID to DocumentLoadListener, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D105231
2021-03-02 09:44:09 +00:00
Olli Pettay 0b5b9fc66a Bug 1689601, pass various states of remoteness change / browsing context swap using a helper struct, r=peterv
The name RemotenessChangeState uses same the convention as the related methods, even though there might
not be a remoteness change happening, only a browsing context switch. But the naming
inconsistency exists there even without any bfcache work.

RemotenessChangeState will be renamed to RemotenessChangeOptions in a followup.

Differential Revision: https://phabricator.services.mozilla.com/D105229
2021-03-02 09:44:09 +00:00
Simon Giesecke d8a9ea3048 Bug 1693541 - Improve uses of nsBaseHashtable and descendants and avoid multiple subsequent lookups in netwerk. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106097
2021-03-01 16:41:20 +00:00
Simon Giesecke 8ecfb38a41 Bug 1691913 - Remove uses of nsDataHashtable::GetValue. r=xpcom-reviewers,necko-reviewers,dragana,nika
GetValue is going to be removed in a subsequent patch. It is no longer needed,
because it can be replaced by functions already provided by nsBaseHashtable,
in particular Lookup and Contains.

Also, its name was confusing, since it specifically returns a pointer that
allows and is intended for modifying the entry within the hashtable, rather
than returning by-value. According to the naming rules to be set on
nsBaseHashtable, it would also needed to be renamed to "Lookup*. Removing
its uses saves this effort.

Differential Revision: https://phabricator.services.mozilla.com/D105476
2021-03-01 09:59:30 +00:00
Simon Giesecke b399a8194c Bug 1691913 - Add some convenience methods to LookupResult and EntryHandle. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D105475
2021-03-01 09:59:29 +00:00
Jens Stutte 1e19379853 Bug 1689953: Harmonize shutdown phase definitions across nsTerminator and AppShutdown r=dthayer,chutten
This patch wants to solve several quirks around the shutdown terminator.

 - Use the same shutdown phase definitions in AppShutdown and nsTerminator. This touches quite a few files.
 - Ensure that the terminator phase shift is handled before any shutdown observer notifications are sent and reduce its heartbeat duration.
 - Add missing phases to the shutdown telemetry.

Please note that this changes the unit of "tick" to 100ms rather than 1s.
As a side effect, we also remove the obsolete "shutdown-persist" context.

While the existing test coverage continues to prove the most important functions, we acknowledge the wish for better test coverage with [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1693966 | bug 1693966 ]].

Differential Revision: https://phabricator.services.mozilla.com/D103626
2021-02-27 14:38:14 +00:00
Butkovits Atila bb3fe218a4 Backed out changeset be43a81b35f9 (bug 1689953) for causing failure at test_terminator_record.js. CLOSED TREE 2021-02-27 05:03:11 +02:00
ffxbld bbc3cab1b3 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D106685
2021-02-27 00:22:47 +00:00
Jens Stutte f6d52040b9 Bug 1689953: Harmonize shutdown phase definitions across nsTerminator and AppShutdown r=dthayer,chutten
This patch wants to solve several quirks around the shutdown terminator.

 - Use the same shutdown phase definitions in AppShutdown and nsTerminator. This touches quite a few files.
 - Ensure that the terminator phase shift is handled before any shutdown observer notifications are sent and reduce its heartbeat duration.
 - Add missing phases to the shutdown telemetry.

Please note that this changes the unit of "tick" to 100ms rather than 1s.
As a side effect, we also remove the obsolete "shutdown-persist" context.

While the existing test coverage continues to prove the most important functions, we acknowledge the wish for better test coverage with [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1693966 | bug 1693966 ]].

Differential Revision: https://phabricator.services.mozilla.com/D103626
2021-02-26 21:33:29 +00:00
Agi Sferro 3b0e7a3659 Bug 1695056 - Don't provide details info about mobile networks. r=valentin,esawin,mixedpuppy
Since Android 11, READ_PHONE_STATE is required to get detailed information
about mobile networks. Since we don't actually use this information anywhere
right now, we just won't provide it isntead of adding a new permission.

Differential Revision: https://phabricator.services.mozilla.com/D106557
2021-02-26 18:43:40 +00:00
smolnar 81bf425def Backed out 5 changesets (bug 1694521) for causing xpc failures in netwerk/test/unit/test_partial_response_entry_size_smart_shrink. CLOSED TREE
Backed out changeset 706062287f0f (bug 1694521)
Backed out changeset 6248905f1783 (bug 1694521)
Backed out changeset b3591788658c (bug 1694521)
Backed out changeset b91e0a2caf42 (bug 1694521)
Backed out changeset 605a5ce59dd7 (bug 1694521)
2021-02-26 19:24:32 +02:00
Nihanth Subramanya c9df4a4d2c Bug 1694521 - Part 5: Clean up test_AAAA_records. r=valentin,necko-reviewers
The wait-for-A-and-AAAA and early-AAAA prefs were removed.

Differential Revision: https://phabricator.services.mozilla.com/D106424
2021-02-26 15:34:58 +00:00
Nihanth Subramanya 40249078c8 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-02-26 15:34:57 +00:00
Nihanth Subramanya f14e245cf2 Bug 1694521 - Part 3: Adapt TRRDNSListener in head_trr.js for use in test_trr.js. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106342
2021-02-26 15:34:57 +00:00
Nihanth Subramanya 98df211b8c Bug 1694521 - Part 2: unify confirmation and cname tests and simplify mode 1 and 4 tests. r=valentin,necko-reviewers
Also clean up some TODOs

Differential Revision: https://phabricator.services.mozilla.com/D106341
2021-02-26 15:34:57 +00:00
Nihanth Subramanya 5c4ef262c4 Bug 1694521 - Part 1: Clean up test_trr.js. r=necko-reviewers,valentin
1. Moved some setup stuff to head.js
2. Removed dumps
3. Changed comments to info()s at the beginning of tests
4. Combined some related tests.
5. Added helper to set TRR mode and uri
6. Some de-duplication when needing to do a test for different modes (more to be done)
7. Added some comments where missing, e.g. linking a bug
8. Gave all test functions good names

Differential Revision: https://phabricator.services.mozilla.com/D106215
2021-02-26 15:34:56 +00:00
smolnar 485d71fd41 Backed out 5 changesets (bug 1694521) for causing xpc failures in test_trr. CLOSED TREE
Backed out changeset 0a83b1b7d78b (bug 1694521)
Backed out changeset 8bdbbb7e590e (bug 1694521)
Backed out changeset e1eb73d967f9 (bug 1694521)
Backed out changeset bb7f09af9a68 (bug 1694521)
Backed out changeset 2cbdf93337fe (bug 1694521)
2021-02-26 17:04:21 +02:00
Nihanth Subramanya d2e0a34c0d Bug 1694521 - Part 5: Clean up test_AAAA_records. r=valentin,necko-reviewers
The wait-for-A-and-AAAA and early-AAAA prefs were removed.

Differential Revision: https://phabricator.services.mozilla.com/D106424
2021-02-26 14:03:32 +00:00
Nihanth Subramanya 426a18751a 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-02-26 14:03:32 +00:00
Nihanth Subramanya 8a3b1e0e15 Bug 1694521 - Part 3: Adapt TRRDNSListener in head_trr.js for use in test_trr.js. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106342
2021-02-26 14:03:32 +00:00
Nihanth Subramanya 149b051aaf Bug 1694521 - Part 2: unify confirmation and cname tests and simplify mode 1 and 4 tests. r=valentin,necko-reviewers
Also clean up some TODOs

Differential Revision: https://phabricator.services.mozilla.com/D106341
2021-02-26 14:03:31 +00:00
Nihanth Subramanya b89b2c89cb Bug 1694521 - Part 1: Clean up test_trr.js. r=necko-reviewers,valentin
1. Moved some setup stuff to head.js
2. Removed dumps
3. Changed comments to info()s at the beginning of tests
4. Combined some related tests.
5. Added helper to set TRR mode and uri
6. Some de-duplication when needing to do a test for different modes (more to be done)
7. Added some comments where missing, e.g. linking a bug
8. Gave all test functions good names

Differential Revision: https://phabricator.services.mozilla.com/D106215
2021-02-26 14:03:31 +00:00
Valentin Gosu 8c97be5391 Bug 1692657 - OSX dns suffix is not detected properly r=kershaw,necko-reviewers
- Uses __res_state.dnsrch to get the DNS suffix domains
- Adds a delay to the DNS suffix check when triggered by a network change
- Implements nsStreamTransportService::DelayedDispatch

Differential Revision: https://phabricator.services.mozilla.com/D106610
2021-02-26 13:56:27 +00:00
Dragana Damjanovic bbe8345c8b Bug 1674759 - Reenable mConnectionIdleStart assertion. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106467
2021-02-26 12:33:41 +00:00
Dragana Damjanovic 1668a22b70 Bug 1689550 - Add a pref to disable 0RTT only for HTTP3 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106560
2021-02-26 10:11:00 +00:00
Simon Giesecke 0b443059fd Bug 1693306 - Simplify some uses of LookupOrInsertWith by GetOrInsertNew. r=xpcom-reviewers,necko-reviewers,dragana,nika
Differential Revision: https://phabricator.services.mozilla.com/D105479
2021-02-26 09:22:54 +00:00
Simon Giesecke be7dc83fa6 Bug 1691913 - Mark nsBaseHashtable (and its subclasses') member functions nodiscard where appropriate. r=xpcom-reviewers,necko-reviewers,dragana,nika
Differential Revision: https://phabricator.services.mozilla.com/D105474
2021-02-26 09:22:53 +00:00
Simon Giesecke 9af107a839 Bug 1691913 - Rename nsBaseHashtable::Put to InsertOrUpdate. r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika
This makes the naming more consistent with other functions called
Insert and/or Update. Also, it removes the ambiguity whether
Put expects that an entry already exists or not, in particular because
it differed from nsTHashtable::PutEntry in that regard.

Differential Revision: https://phabricator.services.mozilla.com/D105473
2021-02-26 09:11:46 +00:00
Simon Giesecke 4f75368dcb Bug 1691913 - Rename nsBaseHashtable::GetOrInsert(With) to LookupOrInsert(With). r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika
The functions should be called "Lookup" rather than "Get" because they return
a DataType& (rather than UserDataType).

Differential Revision: https://phabricator.services.mozilla.com/D105472
2021-02-26 09:11:45 +00:00
Dragana Damjanovic d57c853a60 Bug 1689554 - Ignore NS_BASE_STREAM_WOULD_BLOCK errors from SendTo call. r=necko-reviewers,valentin
We will let QUIC's congestion control deal with this packet loss.

Differential Revision: https://phabricator.services.mozilla.com/D106555
2021-02-26 08:42:50 +00:00
Dragana Damjanovic 909e83ac11 Bug 1689554 - Enable UDPSocket on the socket process and fix a test r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D106506
2021-02-26 08:42:50 +00:00
Dragana Damjanovic 396ce46973 Bug 1689554 - nsHttpChannel and nsHttpTranasction do not get self/peerAddr if HTTP3 is used. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105225
2021-02-26 08:42:49 +00:00
Dragana Damjanovic 6ee3b95ac7 Bug 1689554 - Give the address received with PRRecvFrom to neqo and use the address from neqo to call PRSendTo r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105194
2021-02-26 08:42:49 +00:00
Dragana Damjanovic 9db978c11d Bug 1689554 - Use nsUDPSocket for HTTP3/QUIC r=necko-reviewers,valentin
The patch also removes some unnecessary from HttpConnectionUDP and Http3Session which will make easier to merge them.

Differential Revision: https://phabricator.services.mozilla.com/D105085
2021-02-26 08:42:49 +00:00
Dragana Damjanovic 384813f8f9 Bug 1689554 - Extend nsUDPSocket to accomodate more efficiant receiving of data. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105079
2021-02-26 08:42:48 +00:00
Kershaw Chang 7e60395853 Bug 1694972 - Reset cname_confirm counter after test r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106588
2021-02-26 08:29:57 +00:00
Kershaw Chang c7dc3fd5c1 Bug 1688092 - Make sure mTrrA and mTrrAAAA are set properly before dispatching them r=necko-reviewers,valentin
See [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1694628#c1 | bug 1694628 ]] for details.

Differential Revision: https://phabricator.services.mozilla.com/D106415
2021-02-25 13:07:04 +00:00
Kershaw Chang ef06b68b6c Bug 1688092 - Update ODoHConfigs when the TTL expires r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106075
2021-02-25 13:07:04 +00:00
Kershaw Chang 61d4a64bb0 Bug 1688864 - P2: Add more tests for ODoH r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106074
2021-02-25 13:07:04 +00:00
Valentin Gosu 40eb1379d9 Bug 1694457 - Add pref for reporting confirmation event telemetry r=nhnt11,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D106264
2021-02-25 12:52:28 +00:00
Valentin Gosu 86622ba6a3 Bug 1694604 - Fix static analysis warnings in netwerk/dns r=necko-reviewers,dragana
Depends on D106262

Differential Revision: https://phabricator.services.mozilla.com/D106263
2021-02-24 16:37:04 +00:00
Valentin Gosu ff32c214b6 Bug 1694604 - Move TRRSkippedReason out of nsHostResolver.h r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D106262
2021-02-24 16:37:03 +00:00
Nihanth Subramanya b88988a027 Bug 1460314 - TRR: add telemetry probe for used HTTP version. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D100519
2021-02-22 14:43:15 +00:00
Valentin Gosu a9cce9ac08 Bug 1646452 - Key TRR telemetry by domain of DoH server r=nhnt11,necko-reviewers,dragana
This allows us to separate general TRR performance issues from "this user's
custom DoH server is slow or malfunctioning".
Any DoH servers domains that are not shipped by Firefox are reported as (other).

Differential Revision: https://phabricator.services.mozilla.com/D105602
2021-02-22 13:51:44 +00:00
M. Sirringhaus 6ac7a0e8be Bug 1693493 - Add test for gvfs integration r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D105604
2021-02-22 12:21:58 +00:00
Simon Giesecke 7c931c97c4 Bug 1689218 - Rename nsBaseHashtable::GetAndRemove to Extract. r=necko-reviewers,dragana
First, it should be called "Lookup" rather than "Get" because it returns
DataType (rather than UserDataType), but that would still be confusing,
since as opposed to other Lookup* methods, it does not return a DataType&
(and obviously, it can't). So "Extract" seems to be a better name, cf.
mozilla::Maybe::extract.

Differential Revision: https://phabricator.services.mozilla.com/D105471
2021-02-22 12:07:48 +00:00
Simon Giesecke c5f7800f35 Bug 1691913 - Rename nsClassHashtable::LookupOrAdd to GetOrInsertNew. r=xpcom-reviewers,nika
It should be called "Get" rather than "Lookup" because it returns
UserDataType. "Add" is called "Insert" in the other methods.

Differential Revision: https://phabricator.services.mozilla.com/D105470
2021-02-22 12:07:47 +00:00
Simon Giesecke d2caea36fa Bug 1691894 - Simplify uses of WithEntryHandle that only use OrInsert(With) by using GetOrInsertWith. r=xpcom-reviewers,necko-reviewers,jgilbert,nika
Differential Revision: https://phabricator.services.mozilla.com/D104676
2021-02-22 12:07:46 +00:00
Valentin Gosu 63e49eada8 Bug 1692494 - TRR_NXDOMAIN no longer recorded when 0x03 rcode is set in the TRR response header r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D105311
2021-02-22 09:12:22 +00:00
Henri Sivonen 37e52696cd Bug 1693295 - Cap the Windows version in the User-Agent to 10.0. r=cpeterson
Differential Revision: https://phabricator.services.mozilla.com/D105605
2021-02-22 08:56:40 +00:00
Dragana Damjanovic b529ea9b90 Bug 1692569 - Make sure that we still can write 0RTT data before trying to write them. r=necko-reviewers,valentin
nss and necko may be out of sync about 0RTT state because IsAlive drives the handshake, but nsHttpConnection is not informed about the handshake progress.

Differential Revision: https://phabricator.services.mozilla.com/D105842
2021-02-20 21:04:00 +00:00
Dragana Damjanovic 66692fa536 Bug 1693738 - Extend HTTP3_CONNECTION_CLOSE_CODE telemetry and add more detail codes for the internal errors r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105725
2021-02-19 20:37:24 +00:00
Valentin Gosu c33fe1fe47 Bug 1264117 - Limit length of hostnames to 253 characters r=nhnt11,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D105609
2021-02-19 17:02:34 +00:00
Dragana Damjanovic f06f0b9886 Bug 1687264 - Do not use mChannelChild if CreateBackgroundChannel fails r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105687
2021-02-19 15:04:45 +00:00
Butkovits Atila 67c4ae9c97 Backed out changeset 0b48f6f8e965 (bug 1264117) for causing failures on test_dns_service.js. CLOSED TREE 2021-02-19 16:41:04 +02:00
Valentin Gosu b6c3ecbc99 Bug 1264117 - Limit length of hostnames to 253 characters r=nhnt11,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D105609
2021-02-19 11:45:05 +00:00
ffxbld 782a30533f No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D105627
2021-02-19 10:22:03 +00:00
Butkovits Atila 9fd21f67da Backed out changeset fd00d1b7fd67 (bug 1264117) for causing failures on test_dns_service_wrap.js. 2021-02-19 12:20:49 +02:00
Valentin Gosu b3e6410990 Bug 1264117 - Limit length of hostnames to 253 characters r=nhnt11,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D105609
2021-02-19 09:17:42 +00:00
Dragana Damjanovic dcaa89a55d Bug 1692734 - If FastFallbackToIPv4 is set disable IPv6 on backup connections. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105482
2021-02-18 20:42:03 +00:00
Dragana Damjanovic f51b25f77b Bug 1511151 - Add a flag to allow client certs on CORS preflight connections r=necko-reviewers,keeler,valentin,kershaw
This is only used for CORS preflight requests. It is controlled by a pref.
Connections that server such request will be isolated from other anonymous connections.

Differential Revision: https://phabricator.services.mozilla.com/D96775
2021-02-18 18:58:17 +00:00
Kershaw Chang 27c050e058 Bug 1689987 - Fix build error. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D105648
2021-02-18 16:39:30 +00:00
Alexis Beingessner 1d8964049c Bug 1686616 - make SocketTransport use Components instead of Services. r=kmag,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105534
2021-02-18 13:26:34 +00:00
Alexis Beingessner fc3bf87d11 Bug 1686616 - make StreamTransport use Components instead of Services. r=kmag,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105533
2021-02-18 13:26:33 +00:00
Alexis Beingessner 0df92fdb83 Bug 1686616 - make CacheStorage use Components instead of Services. r=kmag,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105532
2021-02-18 13:26:33 +00:00
Alexis Beingessner 3f1a425606 Bug 1686616 - make IO use Components instead of Services. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D105530
2021-02-18 13:26:32 +00:00
Alexis Beingessner 972f085576 Bug 1686616 - make HttpActivityDistributor use Components instead of Services. r=kmag,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105525
2021-02-18 13:26:30 +00:00
Alexis Beingessner bd14ca539e Bug 1686616 - make ThirdPartyUtil use Components instead of Services. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D105523
2021-02-18 13:26:29 +00:00
Alexis Beingessner 92afde7986 Bug 1686616 - register all Services.py services with components.conf. r=kmag,necko-reviewers,valentin
These services had their name added to components.conf:

* GfxInfo
* ThirdPartyUtil
* History
* HttpActivityDistributor
* UUIDGenerator
* ServiceWorkerManager
* PermissionManager

These services were added to componenets.conf under a different name:

* DirectoryService => Directory
* IOService => IO
* StringBundleService => StringBundle
* CacheStorageService => CacheStorage
* StreamTransportService => StreamTransport
* SocketTransportService => SocketTransport

These services weren't migrated to components.conf because only Rust
code uses them:

* RemoteAgent
* XULRuntime
* PrefService

These services weren't migrated to components.conf because they're unused:

* ToolkitChromeRegistry (used as ChromeRegistry)
* XULChromeRegistry (used as ChromeRegistry)
* Bits (completely unused)

These services were already available in components.conf but are still
used by rust code:

* URIFixup

These services weren't migrated because they will be handled in
subsequent patchsets:

* ObserverService

For the record, the following Services are being used by Rust code
and must remain until a Rust version of Components.h is written:

* RemoteAgent
* XULRuntime
* PrefService
* URIFixup
* ObserverService
* DirectoryService
* ThirdPartyUtil

Also the cocoa GfxInfo service was changed to use components.conf instead
of registering it at runtime, as all the other widgets were already doing
it this way.

Differential Revision: https://phabricator.services.mozilla.com/D105521
2021-02-18 13:26:28 +00:00
Kershaw Chang 3d66c37e76 Bug 1689987 - P5: Add probes to collect DNS lookup time when ODoH is used r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105215
2021-02-18 12:50:04 +00:00
Kershaw Chang 36d1df148d Bug 1689987 - P4: Add a telemetry probe to collect channel success rate when ODoH is used r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105214
2021-02-18 12:50:03 +00:00
Kershaw Chang 9795f890cc Bug 1689987 - P3: Add some ODoH specific skip reasons r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D104831
2021-02-18 12:50:03 +00:00
Kershaw Chang 782c896152 Bug 1689987 - P2: Add DNS_ODOH_LOOKUP_TIME and ODOH_SKIP_REASON_ODOH_FIRST probes r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D104800
2021-02-18 12:50:02 +00:00
Kershaw Chang a2532cb1f3 Bug 1689987 - P1: Don't mess up TRR telemetry when ODoH is used r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D104799
2021-02-18 12:50:02 +00:00
Kershaw Chang 67fbb1e79d Bug 1692120 - Avoid accessing nsSocketTransport::mCondition on main thread r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105596
2021-02-18 10:52:59 +00:00
Kershaw Chang 41aee156c6 Bug 1692886 - Record HTTP_TRANSACTION_RESTART_REASON correctly r=necko-reviewers,dragana
- Make sure we set the restart reason before calling Restart().
- Extend TRANSACTION_RESTART_REASON to also record the case for fast fallback.

Differential Revision: https://phabricator.services.mozilla.com/D105212
2021-02-18 10:42:50 +00:00
Chris Peterson ac4fc500b3 Bug 1679929 - Cap the User-Agent string's reported macOS version at 10.15 like Safari does. r=valentin,necko-reviewers,hsivonen
Fixes webcompat bugs like bug 1680516. Some UA-sniffing sites assume the User-Agent string's macOS version always begin with "10." and they break if the User-Agent string reports version 11.0 on macOS Big Sur (11.0 aka 10.16).

Differential Revision: https://phabricator.services.mozilla.com/D99856
2021-02-17 17:48:32 +00:00
Valentin Gosu efa654d3d5 Bug 1691408 - Record confirmation event telemetry r=nhnt11,dragana,necko-reviewers
- Adds new TRR* argument to CompleteLookup so we can extract the channel
  status from the TRR request.
- Record event whenever the confirmation context changes
- NetworkID is recorded whenever we start a new confirmation attempt
- Captive portal status is updated based on observer notifications
- We keep a buffer of the last 32 confirmation results.

Differential Revision: https://phabricator.services.mozilla.com/D105173
2021-02-17 10:26:41 +00:00
Valentin Gosu e5e0b8d7a7 Bug 1691408 - Move DNS_TRR_NS_VERFIFIED2 accumulation out of conditional block r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D105172
2021-02-17 10:26:40 +00:00
Valentin Gosu 50bee9f5dd Bug 1691933 - Increase timeout for TRR confirmation request r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D104677
2021-02-17 10:26:39 +00:00
Valentin Gosu dbc436b39f Bug 1675540 - Perform URL sanity checks when changing it r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D104541
2021-02-17 08:54:03 +00:00
Valentin Gosu 1eabd8106b Bug 1692862 - Null out mSession pointer when closing Http2Stream r=dragana,necko-reviewers
The Http2Stream holds a raw pointer to the Http2Session which gets initialized in the constructor and is never changed.
We should null out the member so we don't attempt to use it after it has been destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D105188
2021-02-17 08:00:53 +00:00
Markus Stange 5257db6695 Bug 1692391 - Remove the word ABORT from the NS_OBJC_BEGIN/END_TRY_ABORT_BLOCK_RETURN macros, because these macros don't abort. r=haik,necko-reviewers
This patch was generated automatically with the commands below:

```
rg -l 'NS_OBJC_BEGIN_TRY_ABORT_BLOCK_RETURN' . | xargs sed -i '' -e 's/NS_OBJC_BEGIN_TRY_ABORT_BLOCK_RETURN/NS_OBJC_BEGIN_TRY_BLOCK_RETURN/g'
rg -l 'NS_OBJC_END_TRY_ABORT_BLOCK_RETURN' . | xargs sed -i '' -e 's/NS_OBJC_END_TRY_ABORT_BLOCK_RETURN/NS_OBJC_END_TRY_BLOCK_RETURN/g'
```

Differential Revision: https://phabricator.services.mozilla.com/D104955
2021-02-16 22:55:20 +00:00
Paul Zuehlcke 0379f315c7 Bug 1693000 - Updated CookiePartitionedForeign console message to refer to State Partitioning. r=timhuang,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105343
2021-02-16 19:50:18 +00:00
Simon Giesecke 661e25bf09 Bug 1692880 - Make Put accept DataType instead of wrapping UserDataType. r=xpcom-reviewers,necko-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D104850
2021-02-16 15:53:33 +00:00
Gerald Squelart 2416d881e2 Bug 1691589 - Reduce reliance on GeckoProfiler.h when only labels (and maybe markers) are needed - r=necko-reviewers,geckoview-reviewers,sg,agi,florian
There are no code changes, only #include changes.
It was a fairly mechanical process: Search for all "AUTO_PROFILER_LABEL", and in each file, if only labels are used, convert "GeckoProfiler.h" into "ProfilerLabels.h" (or just add that last one where needed).
In some files, there were also some marker calls but no other profiler-related calls, in these cases "GeckoProfiler.h" was replaced with both "ProfilerLabels.h" and "ProfilerMarkers.h", which still helps in reducing the use of the all-encompassing "GeckoProfiler.h".

Differential Revision: https://phabricator.services.mozilla.com/D104588
2021-02-16 04:44:19 +00:00
Simon Giesecke ca94ec101e Bug 1691894 - Simplify uses of GetOrInsert where non-default-constructed entries are eventually inserted. r=xpcom-reviewers,necko-reviewers,nika,valentin
Differential Revision: https://phabricator.services.mozilla.com/D104674
2021-02-15 16:37:52 +00:00
Simon Giesecke 780a1636a9 Bug 1691894 - Replace several suboptimal uses of Put after Get by GetOrInsertWith or WithEntryHandle. r=xpcom-reviewers,necko-reviewers,kmag,valentin,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D104849
2021-02-15 15:12:17 +00:00
ffxbld 0e6befe413 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D105197
2021-02-15 14:55:51 +00:00
smolnar 1afbbe67e1 Backed out 5 changesets (bug 1691894) for causing hazard failures in nsXULPrototypeCache. CLOSED TREE
Backed out changeset 22dc870ee609 (bug 1691894)
Backed out changeset 58c31e9d6ae3 (bug 1691894)
Backed out changeset 7483e84149d8 (bug 1691894)
Backed out changeset f977d6cfa973 (bug 1691894)
Backed out changeset db4503476f34 (bug 1691894)
2021-02-15 16:43:23 +02:00
Simon Giesecke 3c29a68440 Bug 1691894 - Make Put accept DataType instead of wrapping UserDataType. r=xpcom-reviewers,necko-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D104850
2021-02-15 10:04:46 +00:00
Simon Giesecke 8973094ec1 Bug 1691894 - Replace several suboptimal uses of Put after Get by GetOrInsertWith or WithEntryHandle. r=xpcom-reviewers,necko-reviewers,kmag,valentin,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D104849
2021-02-15 10:04:45 +00:00
Sylvestre Ledru b4f9be25d4 Bug 1519636 - Reformat recent changes to the Google coding style r=andi,necko-reviewers
Updated with clang-format version 11.0.1 (taskcluster-B6bdwSKDRF-luRQWXBuzpA)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D105158
2021-02-15 08:49:20 +00:00
Gijs Kruitbosch b0c70ac17d Bug 1685313 - allow window modal dialogs to display inside windows, r=jaws,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D103388
2021-02-12 22:41:53 +00:00
Christoph Kerschbaumer 1bacbe47cc Bug 1692422: NS_NewURI should return an error if the ioService is not available (e.g due to being called during shutdown) r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D105008
2021-02-12 16:57:54 +00:00
Simon Giesecke f701c44a5c Bug 1691894 - Fix EntryHandle to only work with DataType rather than wrapping UserDataType. r=xpcom-reviewers,necko-reviewers,nika,jonco,valentin
Differential Revision: https://phabricator.services.mozilla.com/D104810
2021-02-12 15:25:40 +00:00
Dragana Damjanovic efa5705d23 Bug 1690615 - Move DNS lookup into DnsAndConnectSocket r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D104464
2021-02-12 14:57:09 +00:00
Andreea Pavel c9c6e3158d Backed out 3 changesets (bug 1685313) for failing test_prompt.html on a CLOSED TREE
Backed out changeset 7bdcbdc2d57f (bug 1685313)
Backed out changeset 319bc4d7bc0d (bug 1685313)
Backed out changeset 713de42fe3b4 (bug 1685313)
2021-02-12 06:50:58 +02:00
Gijs Kruitbosch 86da8f87a3 Bug 1685313 - allow window modal dialogs to display inside windows, r=jaws,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D103388
2021-02-11 23:57:57 +00:00
Emilio Cobos Álvarez 083c73b4a1 Bug 1690775 - Fix code to parse the remaining header to actually finish consuming it. r=dragana,necko-reviewers
The code enters that function with a non-empty mLineBuf (mLineBuf =
"BODY"), and we just add a single "\n", so we never really end up
finishing the header section, and fetch code asserts and reads uninit
memory afterwards. Bad!

The intention of that code is to finish parsing the headers section, so
it should make sure to handle it properly if we have a partial line
already read. For that we need two newlines.

Differential Revision: https://phabricator.services.mozilla.com/D104773
2021-02-11 18:16:01 +00:00
ffxbld 2a5a3fe221 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D104827
2021-02-11 16:31:23 +00:00
Dragana Damjanovic 229df1b9b6 Bug 1690615 - Improve DnsAndConnectSocket part 2 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D104006
2021-02-11 16:04:45 +00:00
Dragana Damjanovic d8207168ec Bug 1690615 - Improve DnsAndConnectSocket r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103960
2021-02-11 16:04:45 +00:00
Dragana Damjanovic b36f91fa41 Bug 1690615 - Rename HalfOpen into DnsAndConnectSocket r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103932
2021-02-11 16:04:45 +00:00
Jan de Mooij 4a8640901f Bug 1692006 - Disable test_arraybufferinputstream_large.html for TSan. r=necko-reviewers DONTBUILD
I added this test recently in bug 1674777. It allocates a huge ArrayBuffer and
TSan doesn't like that, we had the same issue with JS shell tests for this.

Differential Revision: https://phabricator.services.mozilla.com/D104726
2021-02-10 17:42:58 +00:00
Mihai Alexandru Michis d5b753448d Backed out changeset 4ffa919d35f9 (bug 1687364) as requested by kershaw.
CLOSED TREE
2021-02-10 16:47:51 +02:00
Jan de Mooij 14360fdec6 Bug 1674777 part 8 - Change nsIArrayBufferInputStream.setData arguments from uint32_t to uint64_t. r=kmag
Similar to the previous patch. Prevent truncation when assigning to mBufferLength.

Differential Revision: https://phabricator.services.mozilla.com/D103760
2021-02-10 08:30:05 +00:00
M. Sirringhaus 9ea20acd3b Bug 1666725 - Make gvfs e10s compatible r=valentin,necko-reviewers
Split channel into parent/child to be able to use dbus in the content sandbox

Differential Revision: https://phabricator.services.mozilla.com/D92206
2021-02-10 07:29:38 +00:00
Simon Giesecke 5ab2e2fc52 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in netwerk. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D104197
2021-02-09 18:19:37 +00:00
Nika Layzell 661b4db5f0 Bug 1689147 - Part 4: Switch nested and prio to extended attributes, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D103369
2021-02-09 16:50:22 +00:00
Nika Layzell 63fd915bfb Bug 1689147 - Part 1: Add extended attribute syntax to IPDL, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D103366
2021-02-09 16:50:21 +00:00
Kershaw Chang fac6f12751 Bug 1691484 - Avoid crashing when we don't have other service mode records to retry r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D104451
2021-02-09 15:33:44 +00:00
Valentin Gosu 33aa2bcb05 Bug 1691721 - Add DNSPacket::GetRCode and remove TRRSkippedReason argument r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D99760
2021-02-09 14:22:56 +00:00
Valentin Gosu ac524e72f8 Bug 1691721 - Remove early partial DNS records prefs r=necko-reviewers,kershaw
These prefs were mostly a perf improvement - return the first address family
first then merge the result with the other family.
However, this turned out to cause intermittent issues on some sites, so it
was turned off by default.
Removing these prefs allows us to have the same functionality across all
our resolvers - one request means one callback after both A and AAAA responses
have been received.

Differential Revision: https://phabricator.services.mozilla.com/D99757
2021-02-09 14:22:56 +00:00
Valentin Gosu e52569a7f9 Bug 1691721 - Hold a strong ref to the nsResolveHostCallback r=necko-reviewers,kershaw
Calling c->remove() will remove the entry from rec->mCallbacks and could
potentially release the object (if this is the last reference).
While unlikely, it's best to avoid this corner case.

Differential Revision: https://phabricator.services.mozilla.com/D99756
2021-02-09 14:22:55 +00:00
Andreea Pavel 74d8a6339f Backed out changeset 29cd566d3c08 (bug 1666725) for build bustages at PNecko.ipdl on a CLOSED TREE 2021-02-09 15:11:47 +02:00
M. Sirringhaus 86e1612919 Bug 1666725 - Make gvfs e10s compatible r=valentin,necko-reviewers
Split channel into parent/child to be able to use dbus in the content sandbox

Differential Revision: https://phabricator.services.mozilla.com/D92206
2021-02-09 12:52:22 +00:00
Kershaw Chang baf2bcca71 Bug 1686421 - Add probes to understand the usage of https rr r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D103784
2021-02-09 11:03:32 +00:00
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
Kershaw Chang 3555325696 Bug 1686421 - Add probes to understand how HTTPS RR is used r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D101631
2021-02-09 09:11:45 +00:00
Kershaw Chang e0a2b0844a Bug 1680688 - Add a delay before we reload PAC url r=necko-reviewers,valentin
Apparently, some VPN software also manipulate PAC url in system settings. In this case, the PAC url may not be available when we detect the network change, so this patch introduce a pref for adding a delay before reloading the PAC.

Differential Revision: https://phabricator.services.mozilla.com/D104449
2021-02-09 09:05:45 +00:00
Dragana Damjanovic d6e65e8711 Bug 1688850 - Telemetry about HTTP3 0RTT usage r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103049
2021-02-09 08:44:18 +00:00
Jan Varga 89ca2a95fb Bug 1690515 - Add missing do_get_profile calls to appropriate tests; r=dom-workers-and-storage-reviewers,necko-reviewers,sg,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103886
2021-02-09 05:30:57 +00:00
Nils Ohlmeier [:drno] 5fd75514a3 Bug 1691306: move libsrtp from /netwerk to /third_party. r=bwc,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D104335
2021-02-09 01:48:39 +00:00
Valentin Gosu 700f171e16 Bug 1691359 - Don't call TRRIsOkay for cancelled TRR channels r=nhnt11
- Pass status code to cancelled TRR channels
- When TRR timer expires, use NS_ERROR_NET_TIMEOUT_EXTERNAL
- When TRR is cancelled by nsHostResolver use NS_ERROR_ABORT
- Only call TRRIsOkay in OnStopRequest (doing so in TRR::Cancel causes us to
  call it twice for the same TRR)
- Use NS_NewRunnableFunction instead of ProxyCancel runnable object
- Introduce TRR_REQ_CANCELLED skip reason

Differential Revision: https://phabricator.services.mozilla.com/D104371
2021-02-08 12:38:39 +00:00
Kershaw Chang 22a60154b9 Bug 1685942 - Only fallback to original conn info when network error happens r=necko-reviewers,valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D102703
2021-02-08 11:46:51 +00:00
Rahul Yedida d6bd5bcfa1 Bug 1671844 - PAC isPlainHostName() matching ipv6 addresses r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D99021
2021-02-08 13:02:45 +00:00
Nihanth Subramanya 48840a82cd Bug 1688228 - Introduce TRR_NXDOMAIN skip reason and record it when an rcode value of 0x03 is received. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D102774
2021-02-06 13:00:36 +00:00
Nika Layzell daf01f9769 Bug 1681529 - Part 10: Set StartedReading after calling SetData, r=baku,necko-reviewers,valentin
SetData will check that `mStartedReading` has not been set yet to ensure the
stream is in a non-partially-read state. This can lead to assertion failures
when sending a stream not seeked to the beginning over IPC.

Differential Revision: https://phabricator.services.mozilla.com/D103226
2021-02-04 18:13:19 +00:00
Nika Layzell 9de178dfae Bug 1681529 - Part 7: Wrap the inner streams in a nsMIMEInputStream to make them seekable, r=baku,necko-reviewers,dragana
nsMIMEInputStream has a requirement that the inner nsIInputStream object
implement nsISeekableStream, which is usually enforced by the SetData method.
This check was bypassed by the Deserialize method, which unfortunately meant
that non-seekable IPC payloads could end up within a nsMIMEInputStream when sent
from another process (e.g. due to large nsStringStreams being serialized as
nsPipes over IPC).

This patch uses the SeekableStreamWrapper introduced in the previous patch to
wrap the inner stream when deserializing nsMIMEInputStream, avoiding the
previously mentioned issue.

Differential Revision: https://phabricator.services.mozilla.com/D101806
2021-02-04 18:13:12 +00:00
Valentin Gosu 62039bd713 Bug 1688205 - Record TRR_NO_ANSWERS when decoding a DoH response works but it contains no answers r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D102744
2021-02-05 12:23:46 +00:00
Kershaw Chang f5f947be77 Bug 1689018 - Convey content disposition information to new redirect channel r=necko-reviewers,Gijs,valentin
Differential Revision: https://phabricator.services.mozilla.com/D104061
2021-02-05 09:52:30 +00:00
Kershaw Chang 660e474854 Bug 1689474 - Make sure sending queries to ODoH proxy is working r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103817
2021-02-04 18:30:45 +00:00
Kershaw Chang a3582caf5e Bug 1689474 - Update ODoH to draft-04 and make CNAME work r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103816
2021-02-04 08:05:45 +00:00
Nihanth Subramanya c206347e88 Bug 1689113 - Don't skip TRR unless confirmation explicitly failed. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103170
2021-02-04 17:34:27 +00:00
Kershaw Chang 8373d6cfc5 Bug 1682555 - Add a probe for echConfig sucessful rate r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D103340
2021-02-04 10:49:35 +00:00
Kershaw Chang d2340e9ce4 Bug 1690220 - Don't query https rr when proxy CONNECT is in use r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D103781
2021-02-03 10:32:34 +00:00
Nils Ohlmeier [:drno] f982032c7c Bug 1690200: pick SCTP init processing fix from upstream. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D103744
2021-02-04 06:53:06 +00:00
Dorel Luca 9604c3539b Backed out changeset ca3e129f7a36 (bug 1682555) for XPCshell failures in netwerk/test/unit/test_http2-proxy.js. CLOSED TREE 2021-02-04 05:56:53 +02:00
Kershaw Chang 9fcee5ebcf Bug 1682555 - Add a probe for echConfig sucessful rate r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D103340
2021-02-03 21:43:30 +00:00
Dragana Damjanovic 9ff2575792 Bug 1689604 - Remove TCPFastOpen part 3 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103517
2021-02-03 17:23:45 +00:00
Dragana Damjanovic 61e4c834b7 Bug 1689604 - Remove TCPFastOpen part 2 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103478
2021-01-29 21:59:55 +00:00
Dragana Damjanovic 7c8dca3ea6 Bug 1689604 - Remove TCPFastOpen part 1 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103470
2021-02-03 17:08:18 +00:00
Kershaw Chang 4e494b48f7 Bug 1687320 - Avoid doing 0RTT again if the transaction will be restarted r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D103479
2021-02-03 10:02:11 +00:00
Kershaw Chang 5c2914628b Bug 1687364 - Authorization header can't be wildcarded for Access-Control-Allow-Headers r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D102932
2021-02-02 18:39:32 +00:00
Bogdan Tara abc7c8eeee Backed out 11 changesets (bug 1681529) for talos crashes CLOSED TREE
Backed out changeset c87d0f32d7a6 (bug 1681529)
Backed out changeset b1269f35d525 (bug 1681529)
Backed out changeset 29df8d4c984a (bug 1681529)
Backed out changeset 4def7578ced0 (bug 1681529)
Backed out changeset ce57c5a26c25 (bug 1681529)
Backed out changeset 78b186ec645a (bug 1681529)
Backed out changeset b1d1550a66ca (bug 1681529)
Backed out changeset e8620622208a (bug 1681529)
Backed out changeset 636b1a7c13e4 (bug 1681529)
Backed out changeset a5a8eac68b87 (bug 1681529)
Backed out changeset 968e17db71df (bug 1681529)
2021-02-03 09:29:38 +02:00
Nika Layzell d42f3a9fc3 Bug 1681529 - Part 10: Set StartedReading after calling SetData, r=baku,necko-reviewers,valentin
SetData will check that `mStartedReading` has not been set yet to ensure the
stream is in a non-partially-read state. This can lead to assertion failures
when sending a stream not seeked to the beginning over IPC.

Differential Revision: https://phabricator.services.mozilla.com/D103226
2021-02-02 23:26:43 +00:00
Nika Layzell f172ee476b Bug 1681529 - Part 7: Wrap the inner streams in a nsMIMEInputStream to make them seekable, r=baku,necko-reviewers,dragana
nsMIMEInputStream has a requirement that the inner nsIInputStream object
implement nsISeekableStream, which is usually enforced by the SetData method.
This check was bypassed by the Deserialize method, which unfortunately meant
that non-seekable IPC payloads could end up within a nsMIMEInputStream when sent
from another process (e.g. due to large nsStringStreams being serialized as
nsPipes over IPC).

This patch uses the SeekableStreamWrapper introduced in the previous patch to
wrap the inner stream when deserializing nsMIMEInputStream, avoiding the
previously mentioned issue.

Differential Revision: https://phabricator.services.mozilla.com/D101806
2021-02-02 23:26:36 +00:00
Brindusan Cristian cbdb020883 Backed out 11 changesets (bug 1681529) for mochitest failures at test_reload_large_postdata.html. CLOSED TREE
Backed out changeset f1f988155c82 (bug 1681529)
Backed out changeset f0ba367de05e (bug 1681529)
Backed out changeset dbea9952ec79 (bug 1681529)
Backed out changeset 6e185ec2c4a4 (bug 1681529)
Backed out changeset d0b11c08666a (bug 1681529)
Backed out changeset f2515096b378 (bug 1681529)
Backed out changeset ecd8c3b8fdb4 (bug 1681529)
Backed out changeset 7ea2e9cc8bad (bug 1681529)
Backed out changeset dbc85d0bffaf (bug 1681529)
Backed out changeset f0893f544219 (bug 1681529)
Backed out changeset 91979e21aa8e (bug 1681529)
2021-02-02 22:02:59 +02:00
Nika Layzell f918e191b0 Bug 1681529 - Part 10: Set StartedReading after calling SetData, r=baku,necko-reviewers,valentin
SetData will check that `mStartedReading` has not been set yet to ensure the
stream is in a non-partially-read state. This can lead to assertion failures
when sending a stream not seeked to the beginning over IPC.

Differential Revision: https://phabricator.services.mozilla.com/D103226
2021-01-29 19:04:03 +00:00
Nika Layzell 55c9ceedc7 Bug 1681529 - Part 7: Wrap the inner streams in a nsMIMEInputStream to make them seekable, r=baku,necko-reviewers,dragana
nsMIMEInputStream has a requirement that the inner nsIInputStream object
implement nsISeekableStream, which is usually enforced by the SetData method.
This check was bypassed by the Deserialize method, which unfortunately meant
that non-seekable IPC payloads could end up within a nsMIMEInputStream when sent
from another process (e.g. due to large nsStringStreams being serialized as
nsPipes over IPC).

This patch uses the SeekableStreamWrapper introduced in the previous patch to
wrap the inner stream when deserializing nsMIMEInputStream, avoiding the
previously mentioned issue.

Differential Revision: https://phabricator.services.mozilla.com/D101806
2021-01-27 21:55:19 +00:00
Kershaw Chang a04bced733 Bug 1690008 - Clear npnToken when we want to create a non-http3 connection info r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D103690
2021-02-01 21:09:45 +00:00
Kershaw Chang 98f3b6821b Bug 1687413 - Iteratively parse cache-control header to avoid stack overflow r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D103635
2021-02-01 20:47:06 +00:00
Dragana Damjanovic 8d28f38460 Bug 1690000 - Always reset ConnInfo if it is using Http3. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D103634
2021-02-01 14:05:31 +00:00
Nika Layzell 29c2d4d113 Bug 1682285 - Part 1: Split internal and external load flags, r=kmag,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103364
2021-01-29 22:06:16 +00:00
Nihanth Subramanya 95c3dc2f49 Bug 1688806 - Reset TRRService confirmation retry interval and cancel an ongoing retry timer when captive-portal-connectivity is observed. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103005
2021-01-29 15:13:49 +00:00
Kershaw Chang 6cc1ec1655 Bug 1688945 - Make sure we don't query HTTPS RR when we already have one r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103348
2021-01-28 19:34:41 +00:00
Valentin Gosu 7086937608 Bug 1689208 - Don't race for LINK_TYPE_UNKNOWN on Android r=necko-reviewers,kershaw
Depends on D103305

Differential Revision: https://phabricator.services.mozilla.com/D103306
2021-01-28 16:59:09 +00:00
Valentin Gosu 1422dc2925 Bug 1689208 - Add LINK_TYPE_5G to nsINetworkLinkService and report it on Android r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D103305
2021-01-28 17:06:51 +00:00
ffxbld 60fb840032 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D103352
2021-01-28 18:16:14 +00:00
Michael Froman 745a57afd2 Bug 1677632 - pt2 - Check for abnormal shutdown when reconnecting socket process after crash. r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D103070
2021-01-28 16:20:04 +00:00
Michael Froman 98cf76a718 Bug 1677632 - pt1 - restart the socket process after a crash. r=kershaw,necko-reviewers
This will restart the socket process with a tab refresh or opening
a new tab.

Differential Revision: https://phabricator.services.mozilla.com/D102481
2021-01-28 16:42:53 +00:00
Alexis Beingessner 316b5113e0 Bug 1633239 - make the bitfields on CacheStorageService atomic. r=valentin,necko-reviewers
this is only a hypothetical fix to the underlying issue since we don't have a clean trace.

Differential Revision: https://phabricator.services.mozilla.com/D103057
2021-01-28 11:05:02 +00:00
Valentin Gosu 7d0af7171d Bug 1689108 - Report telemetry when TRRService is not confirmed because we have no connectivity r=necko-reviewers,dragana
Depends on D103234

Differential Revision: https://phabricator.services.mozilla.com/D103235
2021-01-28 10:51:57 +00:00
Valentin Gosu b89094e018 Bug 1689108 - Report TRR_IS_OFFLINE telemetry if the TRRService is NOT_CONFIRMED and the browser is offline r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D103234
2021-01-28 10:50:35 +00:00
Kershaw Chang 0d82c1d0d8 Bug 1684041 - Add ODoH test r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D102629
2021-01-27 22:04:25 +00:00