Commit Graph

1419 Commits

Author SHA1 Message Date
Simon Giesecke
b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
shindli
91aa0518dd Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE 2020-02-12 20:13:29 +02:00
Simon Giesecke
f604a47fa5 Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-12 17:24:41 +00:00
Eric Rahm
2c08316c5d Bug 1610070 - Part 3: Convert the rest of netwerk/ to use UniquePtr. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D60341

--HG--
extra : moz-landing-system : lando
2020-02-11 16:20:08 +00:00
ffxbld
064dc02d0e No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D62251

--HG--
extra : moz-landing-system : lando
2020-02-10 13:33:58 +00:00
Valentin Gosu
2cb41f29d9 Bug 1613631 - Remember the effective TRR mode for each request r=dragana
- This is needed when reporting telemetry

Differential Revision: https://phabricator.services.mozilla.com/D61807

--HG--
extra : moz-landing-system : lando
2020-02-07 09:42:00 +00:00
Dragana Damjanovic
ceda99bbf7 Bug 1613864 - Update TRR timing when record in the cache has been refreshed. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D61990

--HG--
extra : moz-landing-system : lando
2020-02-07 10:46:58 +00:00
Dragana Damjanovic
3db443c976 Bug 1613423 - Make sure AsyncResoleWithTrrServer does not depend on confirmationNS of the default server. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D61793

--HG--
extra : moz-landing-system : lando
2020-02-06 18:09:38 +00:00
Dragana Damjanovic
2f3c76f02c Bug 1612816 - Implement AsyncResoleWithTrrServer. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D61445

--HG--
extra : moz-landing-system : lando
2020-02-04 19:35:34 +00:00
Dragana Damjanovic
31caeebb2e Bug 1610253 - Expose network timing to trr DNS records. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D60544

--HG--
extra : moz-landing-system : lando
2020-02-04 11:09:11 +00:00
ffxbld
8715672a5b No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D61462

--HG--
extra : moz-landing-system : lando
2020-02-03 15:34:55 +00:00
Valentin Gosu
3cf093181f Bug 1610836 - Don't fail TRR_FIRST requests if the TRR service is not ready r=mayhemer
When it's first starting up, when mConfirmationState != CONFIRM_OK
the TRR service is not ready to use.
For TRR_FIRST requests we need to fallback to DNS while the service starts up.

Differential Revision: https://phabricator.services.mozilla.com/D61218

--HG--
extra : moz-landing-system : lando
2020-02-01 04:43:14 +00:00
Arthur Iakab
57110a989d Backed out changeset e051d75e66f7 (bug 1610836) for causing connectivity mass test failures.
CLOSED TREE
2020-02-01 02:09:30 +02:00
Valentin Gosu
8ce544c4ce Bug 1610836 - Don't fail TRR_FIRST requests if the TRR service is not ready r=mayhemer
When it's first starting up, when mConfirmationState != CONFIRM_OK
the TRR service is not ready to use.
For TRR_FIRST requests we need to fallback to DNS while the service starts up.

Differential Revision: https://phabricator.services.mozilla.com/D61218

--HG--
extra : moz-landing-system : lando
2020-01-31 15:09:18 +00:00
Razvan Maries
f783276fb9 Backed out changeset fe27999955a4 (bug 1610836) for multiple perma failures. CLOSED TREE
--HG--
extra : amend_source : 7f648c73ebfbd227abf477d975f033e507cb151b
2020-01-31 17:04:10 +02:00
Valentin Gosu
773c572e19 Bug 1610836 - Don't fail TRR_FIRST requests if the TRR service is not ready r=mayhemer
When it's first starting up, when mConfirmationState != CONFIRM_OK
the TRR service is not ready to use.
For TRR_FIRST requests we need to fallback to DNS while the service starts up.

Differential Revision: https://phabricator.services.mozilla.com/D61218

--HG--
extra : moz-landing-system : lando
2020-01-31 14:03:10 +00:00
Sylvestre Ledru
cc2040bf21 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

Differential Revision: https://phabricator.services.mozilla.com/D58217

--HG--
extra : moz-landing-system : lando
2020-01-18 13:48:34 +00:00
Dorel Luca
506e65bcab Backed out changeset bbb39655cf71 (bug 1605934) for build bustage in widget/gtk/mozwayland/mozwayland.c 2020-01-18 15:39:55 +02:00
Sylvestre Ledru
6689a37527 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

Differential Revision: https://phabricator.services.mozilla.com/D58217

--HG--
extra : moz-landing-system : lando
2020-01-18 13:16:39 +00:00
Valentin Gosu
885e829202 Bug 1608114 - Diagnose ~20ms delay processing a DoH response r=dragana
* Enables timing for TRR channels and records telemetry with time elapsed
  between the responseEnd and when the listener is notified with the
  nsHostRecord object

Differential Revision: https://phabricator.services.mozilla.com/D59739

--HG--
extra : moz-landing-system : lando
2020-01-14 12:11:46 +00:00
Valentin Gosu
07bb31d4d8 Bug 1608207 - Make sure TRR requests don't use the HTTP cache r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D59769

--HG--
extra : moz-landing-system : lando
2020-01-14 08:50:07 +00:00
ffxbld
47f9f24123 No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D59324

--HG--
extra : moz-landing-system : lando
2020-01-09 15:43:49 +00:00
Valentin Gosu
cbc2554d2d Bug 1552176 - Captive portal domain should not be automatically excluded from TRR r=mayhemer
Previously we had no way from excluding just one channel from TRR mode3.
The solution was to add the captive portal domain to the exclusion list.
Now the captive portal channel is marked with nsIRequest.DISABLE_TRR_MODE so
the exclusion is not necessary anymore.

Differential Revision: https://phabricator.services.mozilla.com/D48820

--HG--
extra : moz-landing-system : lando
2020-01-07 19:32:32 +00:00
Valentin Gosu
c7d9b630cb Bug 1552176 - Add nsIRequest.set/getTRRMode r=dragana
* Makes it possible to selectively enable TRR for pbmode/container/window/etc

Differential Revision: https://phabricator.services.mozilla.com/D48363

--HG--
extra : moz-landing-system : lando
2020-01-07 20:20:38 +00:00
ffxbld
cbe062ca0b No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D58244

--HG--
extra : moz-landing-system : lando
2019-12-26 21:30:40 +00:00
Valentin Gosu
2808b0a1c5 Bug 1580740 - Don't use TRR when calling nsDNSService::DeprecatedSyncResolve on the main thread r=dragana
`nsAuthSSPI` makes a call to `DeprecatedSyncResolve` that normally issues a DNS
request and blocks until that completes. Apart from being a problem in general
this is an issue when using TRR, because the HTTPS channel to the DoH server
uses the main thread. When `DeprecatedSyncResolve` gets called on the main
thread it then blocks the thread, and since the TRR request never has the
chance to complete (even the TRR cancellation when the timer expires is
processed on the main thread) the result is a deadlock.

This structural problem should be fixed, but until that happens we should
set the `RESOLVE_DISABLE_TRR` flag when calling `ResolveHost` from
`nsDNSService::DeprecatedSyncResolve`

Differential Revision: https://phabricator.services.mozilla.com/D57214

--HG--
extra : moz-landing-system : lando
2019-12-16 12:33:57 +00:00
ffxbld
7f9eb46978 No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D56907

--HG--
extra : moz-landing-system : lando
2019-12-12 15:32:17 +00:00
Valentin Gosu
e16765733b Bug 1599816 - TRR: Make sure we recheck for VPNs on all relevant observer topics r=kershaw
This bug is caused by bug 1598676 (Adds NS_DNS_SUFFIX_LIST_UPDATED_TOPIC), and
bug 1598676 (makes CheckAdaptersAddresses be called at startup)

While at startup it's sometimes the case that the NS_NETWORK_LINK_TOPIC and
NS_DNS_SUFFIX_LIST_UPDATED_TOPIC are both called, due to coalescing and
other link service quirks (or bugs) that doesn't happen for every network
change.

This means that we end up calling RebuildSuffixList after every
CheckAdaptersAddresses call, but we don't do that for CheckPlatformDNSStatus.

This patch makes it so that we always call both methods regardless which of
the two observer notifications was received.

Differential Revision: https://phabricator.services.mozilla.com/D56435

--HG--
extra : moz-landing-system : lando
2019-12-10 09:37:05 +00:00
ffxbld
ddfb9c0ff8 No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D56358

--HG--
extra : moz-landing-system : lando
2019-12-09 18:02:19 +00:00
Gabriele Svelto
5dc21d568c Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

Differential Revision: https://phabricator.services.mozilla.com/D55444

--HG--
extra : moz-landing-system : lando
2019-12-06 09:17:57 +00:00
Valentin Gosu
7f4d9c85c8 Bug 1543201 - DoH Privacy Enhancement: Do not set the User-Agent header for DoH requests r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D55934

--HG--
extra : moz-landing-system : lando
2019-12-05 19:17:28 +00:00
ffxbld
029fc78ac3 No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D55956

--HG--
extra : moz-landing-system : lando
2019-12-05 15:40:18 +00:00
Kershaw Chang
a1a7f14884 Bug 1600678 - Use IPDL refcounted for DNSRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D55475

--HG--
extra : moz-landing-system : lando
2019-12-02 18:28:49 +00:00
Valentin Gosu
7996f8211b Bug 1582647 - Pref off the "public-suffix-list-updated" event r=Gijs
Updating the PSL while Firefox is running could cause principals to have
a different base domain before/after the update.
See bug 1582647 comment 30

Differential Revision: https://phabricator.services.mozilla.com/D55014

--HG--
extra : moz-landing-system : lando
2019-11-28 12:16:19 +00:00
Kershaw Chang
4c90c150c6 Bug 1598676 - P1: Send dns suffix list updated event (MacOS) r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D54782

--HG--
extra : moz-landing-system : lando
2019-11-27 11:14:44 +00:00
Jean-Yves Avenard
cc5f1886ed Bug 1596665 - P2. Add ability to copy all property bag contents to another. r=mattwoodrow
Add static CopyFrom method which is to be used in a follow-up patch. The static method takes a nsIWritablePropertyBag so that we don't need to cast to the concrete class.

Differential Revision: https://phabricator.services.mozilla.com/D53923

--HG--
extra : moz-landing-system : lando
2019-11-26 01:49:28 +00:00
Valentin Gosu
43afef29e7 Bug 1565022 - TRR: Check for NRPT on Windows to use platform DNS r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D54093

--HG--
extra : moz-landing-system : lando
2019-11-24 14:33:26 +00:00
Valentin Gosu
0e928af6c3 Bug 1565008 - TRR: Check for Proxy on Windows to use platform DNS r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D54092

--HG--
extra : moz-landing-system : lando
2019-11-24 14:54:02 +00:00
Mathieu Leplatre
280083669e Bug 1597337 - Report download errors in uptake telemetry r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D53783

--HG--
extra : moz-landing-system : lando
2019-11-22 08:35:30 +00:00
ffxbld
533132c23d No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D54125

--HG--
extra : moz-landing-system : lando
2019-11-21 15:29:52 +00:00
Valentin Gosu
50ab46ba6c Bug 1565004 - Make sure we skip TRR when there's an active VPN r=mayhemer
- Adds the `network.trr.enable_when_vpn_detected` defaulting to false. This means detecting a PPP adapter will make IsExcludedFromTRR always return true - it does not affect the `network.trr.mode` pref.
- Adds a test that when nsINetworkLinkService.vpnDetected is true we skip all TRR requests
- Makes it so we update the excludedDomains list and VPN detected status for TRR on any network:link-status-changed observer notification that is received.

Differential Revision: https://phabricator.services.mozilla.com/D53356

--HG--
extra : moz-landing-system : lando
2019-11-21 10:02:48 +00:00
Valentin Gosu
8cbd335488 Bug 1597137 - Make sure that variables touched from IsExcludedFromTRR are locked r=dragana
- Since IsExcludedFromTRR may be called from multiple threads we should make sure that the member variables it uses are either atomic or locked.
- Makes IsTRRBlacklisted call IsExcludedFromTRR instead of querying variables again.
- Removes hardcoded checks for localhost and .local, since these are included in network.trr.builtin-excluded-domains

Differential Revision: https://phabricator.services.mozilla.com/D53984

--HG--
extra : moz-landing-system : lando
2019-11-21 10:43:02 +00:00
Valentin Gosu
8750aabfa9 Bug 1597137 - Don't load TRR entries from the cache if they are part of the excluded list. r=dragana
This patch fixes two issues where we may mistakenly load a TRR record even though the host is part of the excluded-domains list:
1. If a.com is part of the excluded domains, but b.com is not, then when we first resolve b.com using TRR, the server may also push the record for a.com; Previously we didn't check if the pushed record is also excluded, which could lead us to load it from the TRR cache.
2. If b.com is resolved using TRR, but later b.com is added to the excluded-domains list, we may mistakenly load b.com from the TRR cache, even though we should use platform DNS for it.

Differential Revision: https://phabricator.services.mozilla.com/D53354

--HG--
extra : moz-landing-system : lando
2019-11-21 10:02:33 +00:00
Cosmin Sabou
4e76fd5665 Backed out 2 changesets (bug 1565004) for xpc failures on netwerk/test/unit/test_trr.js.
Backed out changeset 3d6d67621349 (bug 1565004)
Backed out changeset ef016d00ec9b (bug 1565004)
2019-11-20 18:40:16 +02:00
Valentin Gosu
2bdc8b2de9 Bug 1565004 - Make sure we skip TRR when there's an active VPN r=mayhemer
- Adds the `network.trr.enable_when_vpn_detected` defaulting to false. This means detecting a PPP adapter will make IsExcludedFromTRR always return true - it does not affect the `network.trr.mode` pref.
- Adds a test that when nsINetworkLinkService.vpnDetected is true we skip all TRR requests
- Makes it so we update the excludedDomains list and VPN detected status for TRR on any network:link-status-changed observer notification that is received.

Differential Revision: https://phabricator.services.mozilla.com/D53356

--HG--
extra : moz-landing-system : lando
2019-11-20 14:33:33 +00:00
ffxbld
a55a956277 No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D53414

--HG--
extra : moz-landing-system : lando
2019-11-18 13:25:41 +00:00
ffxbld
6e44b2aa1e No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D53009

--HG--
extra : moz-landing-system : lando
2019-11-14 23:48:44 +00:00
Valentin Gosu
d1ae9bf1e6 Bug 1567346 - Prevent stack overflow in TRRService::IsTRRBlacklisted r=JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D50248

--HG--
extra : moz-landing-system : lando
2019-11-11 21:11:18 +00:00
ffxbld
46cd67e91a No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D52533

--HG--
extra : moz-landing-system : lando
2019-11-11 14:21:48 +00:00
Bogdan Tara
80377e90ee Backed out 6 changesets (bug 1552176) for causing Hazard bustages CLOSED TREE
Backed out changeset c79b90bae420 (bug 1552176)
Backed out changeset 4b970cc771ca (bug 1552176)
Backed out changeset de7aa0eaf4c8 (bug 1552176)
Backed out changeset c8e692a40cd3 (bug 1552176)
Backed out changeset 68882d1eccac (bug 1552176)
Backed out changeset 692e5e51e19e (bug 1552176)
2019-11-11 12:11:36 +02:00