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

21735 Коммитов

Автор SHA1 Сообщение Дата
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