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

21939 Коммитов

Автор SHA1 Сообщение Дата
jenny 9a2b67ba48 Bug 1703670: Removed expired telemetry probe networking.ftp_opened_channels_files and networking.ftp_opened_channels_listings r=chutten,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D111268
2021-04-10 13:42:04 +00:00
Dorel Luca 7cb4a31900 Backed out changeset ac4b107bf8bb (bug 1704079) for XPCshell failures in netwerk/test/unit/test_trr_https_fallback.js. CLOSED TREE 2021-04-09 22:55:33 +03:00
Rob Wu 22d7d29b4a Bug 1694679 - Skip CORS for moz-extension:-URLs r=ckerschb,mixedpuppy,necko-reviewers,dragana
moz-extension:-URLs cannot be loaded by default, unless an extension
explicitly lists the resource in web_accessible_resources. At that
point, a URL is considered world-readable, and the load should succeed
regardless of the requested CORS mode in the fetch/request.

Differential Revision: https://phabricator.services.mozilla.com/D111016
2021-04-09 17:06:20 +00:00
Cosmin Sabou 52c5a339fb Backed out changeset b6f8e145ef20 (bug 1669892) for causing xpcshell failures on test_trr_https_fallback.js. CLOSED TREE 2021-04-09 19:34:15 +03:00
Nihanth Subramanya 4b7ae52a98 Bug 1704079 - Set negotiated NPN in Http3Session::SetSecInfo. r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D111405
2021-04-09 14:15:12 +00:00
Dragana Damjanovic 38a4ec8511 Bug 1669892 - Enable test_http3.js on MAC r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D110567
2021-04-09 13:35:56 +00:00
Tom Tung a48aba68bc Bug 1703464 - Bypass the CORP check when the loading principal is a system principal; r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D111056
2021-04-09 06:09:56 +00:00
Aaron Klotz 2ffd0ef1a2 Bug 1668952: Part 1 - Remove GeckoView-specific limits on URI length from Necko; r=necko-reviewers,valentin
For webcompat reasons, we have determined that we should only limit the length
of URIs in specific cases. We're going to handle this on the GV side instead.

Differential Revision: https://phabricator.services.mozilla.com/D109426
2021-04-09 06:01:58 +00:00
Nihanth Subramanya 1bafdfc64d Bug 1699523 - Key TRR skip reason histograms by provider, split fallback into success and failure. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D109436
2021-04-08 21:45:07 +00:00
Christoph Kerschbaumer 7544c7f793 Bug 1703520: Remove unused bypassCORSChecks from Loadinfo r=necko-reviewers,robwu,sstreich
Differential Revision: https://phabricator.services.mozilla.com/D111091
2021-04-08 17:51:36 +00:00
Valentin Gosu 946e47321f Bug 1702374 - Make sure FTP URL does not contain special characters r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D111098
2021-04-08 08:11:31 +00:00
Kershaw Chang 19602fcd6c Bug 1698661 - Use the id of top browsing context to dispatch transactions, r=necko-reviewers,kmag,dragana
Differential Revision: https://phabricator.services.mozilla.com/D110219
2021-04-07 07:59:18 +00:00
Valentin Gosu 62135a9632 Bug 1699691 - Only trigger CaptivePortalConnectivity confirmation event when CP was locked r=dragana,necko-reviewers
We only need to react to a completed captive portal check when the captive
portal was previously locked. When not in a captive portal, this notification
only means the check has completed - no network properties have changed.

Differential Revision: https://phabricator.services.mozilla.com/D109723
2021-04-07 07:30:00 +00:00
Valentin Gosu 8cd440e44c Bug 1699691 - Add more confirmation tests r=necko-reviewers,dragana
Also makes sure not to trigger two confirmations when the URI pref changes.

Differential Revision: https://phabricator.services.mozilla.com/D109620
2021-04-07 07:30:00 +00:00
Valentin Gosu da6faa016e Bug 1700076 - Clean up test_http3_fast_fallback.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109601
2021-04-07 07:29:59 +00:00
Valentin Gosu 7c60cd7377 Bug 1700076 - Clean up test_dns_by_type_resolve.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109600
2021-04-07 07:29:59 +00:00
Valentin Gosu 9642559564 Bug 1700076 - Clean up unit_ipc/test_dns_by_type_resolve_wrap.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109599
2021-04-07 07:29:58 +00:00
Valentin Gosu 09138a2f79 Bug 1700076 - Clean up test_trr_httpssvc.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109598
2021-04-07 07:29:58 +00:00
Valentin Gosu 38e8d6e73b Bug 1700076 - Clean up test_trr_https_fallback.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109597
2021-04-07 07:29:58 +00:00
Valentin Gosu 067e18e095 Bug 1700076 - Clean up test_httpssvc_retry_without_ech.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109596
2021-04-07 07:29:57 +00:00
Valentin Gosu f1531312ce Bug 1700076 - Clean up test_httpssvc_retry_with_ech.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109595
2021-04-07 07:29:57 +00:00
Valentin Gosu f7d21a92ac Bug 1700076 - Clean up test_httpssvc_iphint.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109594
2021-04-07 07:29:57 +00:00
Valentin Gosu 2e786781f1 Bug 1700076 - Clean up test_httpssvc_https_upgrade.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109593
2021-04-07 07:29:56 +00:00
Valentin Gosu bdb59cf266 Bug 1700076 - Clean up test_httpssvc_priority.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109592
2021-04-07 07:29:56 +00:00
Valentin Gosu 6fc85e2dea Bug 1700076 - Make TRRDNSListener handle for type records resolves r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D109591
2021-04-07 07:29:55 +00:00
Valentin Gosu 89a7e43734 Bug 1700076 - Add ability to cancel TRR requests before they're dispatched r=necko-reviewers,dragana
A TRR request is created and dispatched to the handling thread.
If we want to cancel it, we may do so before the runnable has been handled
and there's no HTTP channel - so the cancel was a NO-OP.
Here we add mCancelled which is consulted in SendHTTPRequest to check
if the request has already been cancelled.

Differential Revision: https://phabricator.services.mozilla.com/D109590
2021-04-07 07:29:55 +00:00
Valentin Gosu 726f30aa64 Bug 1700076 - Add ability to count number of DoH requests that reach the TRRServer r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D109589
2021-04-07 07:29:54 +00:00
Valentin Gosu 5094c19438 Bug 1700076 - Allow nsHostResolver::FlushCache to clear Type records from the cache r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D109588
2021-04-07 07:29:54 +00:00
Valentin Gosu ca325c9add Bug 1700076 - Fix modernize-use-default-member-init clang-tidy warnings in netwerk/dns/ r=necko-reviewers,dragana
This patch consists of the changes generated by running
`./mach static-analysis check --fix` on `netwerk/dns` after adding the
`modernize-use-default-member-init` clang-tidy lint.
Some additional changes were made by hand to ensure consistent results.
This patch ensures that all member variables are initialized in the header,
so when adding or changing constructors we don't miss one resulting in
uninitialized memory.

Differential Revision: https://phabricator.services.mozilla.com/D109339
2021-04-07 07:29:54 +00:00
Valentin Gosu b3f920ee42 Bug 1700076 - Handle nsHostResolver::CancelAsyncRequest being called for records in the eviction queue r=necko-reviewers,dragana
The reason this worked previously is that we initialized `recPtr = rec;` in
the for loop iterating through callbacks.
Records that were in the evictionQ did not have any callbacks, so we never
entered this block.

Differential Revision: https://phabricator.services.mozilla.com/D109338
2021-04-07 07:29:53 +00:00
Andreas Pehrson c964e08085 Bug 1695580 - Release WebSocketChannel::mTargetThread on main. r=necko-reviewers,dragana
When mTargetThread is WebSocketImpl it must be released on main since it
implements nsISupportsWeakReference, and clearing weak references is not
threadsafe.

Differential Revision: https://phabricator.services.mozilla.com/D109783
2021-04-06 20:15:12 +00:00
Andreas Pehrson 6b51e5919c Bug 1695580 - In necko, cancel pending DelayedRunnable timers on shutdown. r=necko-reviewers,dragana
This adds support for nsIDelayedRunnableObserver to nsStreamTransportService.

This is a bit special because nsStreamTransportService uses an nsThreadPool.
Because of race conditions we cannot dispatch a final cleanup task to cancel any
pending DelayedRunnables.

Because of the inherent raciness of threads in the thread pool we assume that
any pending DelayedRunnables can handle being released on any thread. Thus we
dispatch the cleanup task to the background event target once the thread pool
has been shut down and processed all its events. This ensures no races can occur
between the cleanup task and OnDelayedRunnableScheduled.

Differential Revision: https://phabricator.services.mozilla.com/D109782
2021-04-06 20:15:11 +00:00
Andreas Pehrson a901c0f50a Bug 1695580 - Break out DelayedRunnable into its own files. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D109778
2021-04-06 20:15:09 +00:00
Cosmin Sabou a9dd657e32 Backed out 18 changesets (bug 1700076, bug 1699691) for causing windows xpcshell failures on test_trr_cancel.js. CLOSED TREE
Backed out changeset 5f3eb0797c06 (bug 1699691)
Backed out changeset 768e56ccd244 (bug 1699691)
Backed out changeset d89075d72c83 (bug 1700076)
Backed out changeset fcf92dd5158a (bug 1700076)
Backed out changeset 8094a7ffc6a4 (bug 1700076)
Backed out changeset 9bc2539a1f5d (bug 1700076)
Backed out changeset fcf27f3c7b69 (bug 1700076)
Backed out changeset 753f4df63689 (bug 1700076)
Backed out changeset 1315c00d2137 (bug 1700076)
Backed out changeset 776c44be95f5 (bug 1700076)
Backed out changeset 2b8d8d63cacd (bug 1700076)
Backed out changeset bc92b34e5d71 (bug 1700076)
Backed out changeset 016c856573da (bug 1700076)
Backed out changeset c085324cb20e (bug 1700076)
Backed out changeset 26dc88b74377 (bug 1700076)
Backed out changeset 8dc21acb87f9 (bug 1700076)
Backed out changeset f36e9cb05851 (bug 1700076)
Backed out changeset fb3f2329ca37 (bug 1700076)
2021-04-06 21:49:20 +03:00
Brindusan Cristian f78d18d827 Backed out 8 changesets (bug 1695580) for causing build bustages on DataMutex.h. CLOSED TREE
Backed out changeset ec0b0fcc8d88 (bug 1695580)
Backed out changeset 982a46056fcb (bug 1695580)
Backed out changeset e38e8b90f119 (bug 1695580)
Backed out changeset 6fdd154aa151 (bug 1695580)
Backed out changeset d04f7a7ec375 (bug 1695580)
Backed out changeset 2103cd9e58b7 (bug 1695580)
Backed out changeset de9a7dd7fc79 (bug 1695580)
Backed out changeset ae16f09be41b (bug 1695580)
2021-04-06 17:41:19 +03:00
Valentin Gosu 621339b801 Bug 1433500 - detectportal.firefox.com should return something informative for users r=nhnt11,extension-reviewers,zombie
This change constitutes a way we can redirect users to an actual page that
explains what captive portals are and why we are making these requests.
Normally users should not see this page, as we only compare the contents
of a small html file. The meta redirect only happens when loaded in a
page.

The SUMO URL https://support.mozilla.org/kb/captive-portal will automatically
redirect to the appropriate locale.

Differential Revision: https://phabricator.services.mozilla.com/D99773
2021-04-06 14:12:50 +00:00
Valentin Gosu c87b19c53e Bug 1699691 - Only trigger CaptivePortalConnectivity confirmation event when CP was locked r=dragana,necko-reviewers
We only need to react to a completed captive portal check when the captive
portal was previously locked. When not in a captive portal, this notification
only means the check has completed - no network properties have changed.

Differential Revision: https://phabricator.services.mozilla.com/D109723
2021-04-06 13:18:32 +00:00
Valentin Gosu 0969c40fb8 Bug 1699691 - Add more confirmation tests r=necko-reviewers,dragana
Also makes sure not to trigger two confirmations when the URI pref changes.

Differential Revision: https://phabricator.services.mozilla.com/D109620
2021-04-06 13:18:31 +00:00
Valentin Gosu f1a7cdbbb7 Bug 1700076 - Clean up test_http3_fast_fallback.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109601
2021-04-06 13:18:31 +00:00
Valentin Gosu 48b8bd9fd7 Bug 1700076 - Clean up test_dns_by_type_resolve.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109600
2021-04-06 13:18:30 +00:00
Valentin Gosu b6d9bd4e99 Bug 1700076 - Clean up unit_ipc/test_dns_by_type_resolve_wrap.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109599
2021-04-06 13:18:30 +00:00
Valentin Gosu 1d92d5516e Bug 1700076 - Clean up test_trr_httpssvc.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109598
2021-04-06 13:18:30 +00:00
Valentin Gosu 1741eb2629 Bug 1700076 - Clean up test_trr_https_fallback.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109597
2021-04-06 13:18:29 +00:00
Valentin Gosu 2dd56c47b7 Bug 1700076 - Clean up test_httpssvc_retry_without_ech.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109596
2021-04-06 13:18:29 +00:00
Valentin Gosu 0c38ed0c45 Bug 1700076 - Clean up test_httpssvc_retry_with_ech.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109595
2021-04-06 13:18:28 +00:00
Valentin Gosu abcf0b7129 Bug 1700076 - Clean up test_httpssvc_iphint.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109594
2021-04-06 13:18:28 +00:00
Valentin Gosu 1aaab7f9a1 Bug 1700076 - Clean up test_httpssvc_https_upgrade.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109593
2021-04-06 13:18:27 +00:00
Valentin Gosu 2d17089150 Bug 1700076 - Clean up test_httpssvc_priority.js r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D109592
2021-04-06 13:18:27 +00:00
Valentin Gosu c82e24d35f Bug 1700076 - Make TRRDNSListener handle for type records resolves r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D109591
2021-04-06 13:18:26 +00:00
Valentin Gosu c4b0fc5bb7 Bug 1700076 - Add ability to cancel TRR requests before they're dispatched r=necko-reviewers,dragana
A TRR request is created and dispatched to the handling thread.
If we want to cancel it, we may do so before the runnable has been handled
and there's no HTTP channel - so the cancel was a NO-OP.
Here we add mCancelled which is consulted in SendHTTPRequest to check
if the request has already been cancelled.

Differential Revision: https://phabricator.services.mozilla.com/D109590
2021-04-06 13:18:26 +00:00