Frédéric Wang
70d15af587
Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,necko-reviewers,dragana
...
This patch make localhost addresses resolve to a loopback address,
thereby ensuring that we can safely treat http://localhost/ and
http://*.localhost/ as "Potentially Trustworthy". This addresses
various bug reports from developers and aligns with specifications.
See https://groups.google.com/g/mozilla.dev.platform/c/sZdEYTiEBdE
Differential Revision: https://phabricator.services.mozilla.com/D92716
2020-10-22 07:36:15 +00:00
smolnar
b70b9de731
Backed out changeset a5a35a205a44 (bug 1220810) for causing test_dns_offline and fontface-override-descriptor-getter-setter failures. CLOSED TREE
2020-10-21 13:00:01 +03:00
Frédéric Wang
4e6e6c7714
Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,necko-reviewers,dragana
...
This patch make localhost addresses resolve to a loopback address,
thereby ensuring that we can safely treat `http://localhost/ ` and
`http://*.localhost/ ` as "Potentially Trustworthy". This addresses
various bug reports from developers and aligns with specifications.
See https://groups.google.com/g/mozilla.dev.platform/c/sZdEYTiEBdE
Differential Revision: https://phabricator.services.mozilla.com/D92716
2020-10-21 07:42:23 +00:00
Simon Giesecke
de7bab0f06
Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi
...
Differential Revision: https://phabricator.services.mozilla.com/D82325
2020-09-23 15:17:15 +00:00
Valentin Gosu
07362aeaa4
Bug 1663657 - Turn IsIpAddr* functions into NetAddr methods r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D89552
2020-09-15 10:39:56 +00:00
Razvan Maries
c8e604eb78
Backed out 4 changesets (bug 1660970, bug 1525854, bug 1663657, bug 1645108) for perma failures on test_trr_additional_section.js. CLOSED TREE
...
Backed out changeset ad6c2e8af09b (bug 1663657)
Backed out changeset 419e26e3f452 (bug 1525854)
Backed out changeset 55bf856faf33 (bug 1660970)
Backed out changeset c543a3a008fa (bug 1645108)
2020-09-15 02:35:05 +03:00
Valentin Gosu
6d149e6e7a
Bug 1663657 - Turn IsIpAddr* functions into NetAddr methods r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D89552
2020-09-14 12:06:27 +00:00
Valentin Gosu
0cf5f5e5ac
Bug 1659132 - Make AddrInfo immutable r=dragana,necko-reviewers
...
Also adds constructors for NetAddr to avoid it being uninitialized.
Differential Revision: https://phabricator.services.mozilla.com/D87091
2020-09-01 07:22:14 +00:00
Valentin Gosu
934d895d74
Bug 1659132 - Get rid of NetAddrElement. Make mAddresses an array r=dragana,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D87090
2020-09-01 07:38:03 +00:00
Butkovits Atila
cdf1ae5211
Backed out 2 changesets (bug 1659132) for failures at browser_cleanFlow.js. CLOSED TREE
...
Backed out changeset 7952fd59f59b (bug 1659132)
Backed out changeset fa8ce4af10a0 (bug 1659132)
2020-08-25 13:02:33 +03:00
Valentin Gosu
b4b3279a00
Bug 1659132 - Make AddrInfo immutable r=dragana,necko-reviewers
...
Also adds constructors for NetAddr to avoid it being uninitialized.
Differential Revision: https://phabricator.services.mozilla.com/D87091
2020-08-25 08:02:22 +00:00
Valentin Gosu
240eeaae88
Bug 1659132 - Get rid of NetAddrElement. Make mAddresses an array r=dragana,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D87090
2020-08-25 08:01:36 +00:00
Butkovits Atila
73a14f1b36
Backed out 2 changesets (bug 1659132) for build bustage. CLOSED TREE
...
Backed out changeset 1caace74f89e (bug 1659132)
Backed out changeset 58fdbfbe05a1 (bug 1659132)
2020-08-25 09:43:01 +03:00
Valentin Gosu
ec0be3efef
Bug 1659132 - Make AddrInfo immutable r=dragana,necko-reviewers
...
Also adds constructors for NetAddr to avoid it being uninitialized.
Differential Revision: https://phabricator.services.mozilla.com/D87091
2020-08-24 12:23:06 +00:00
Valentin Gosu
125efe18dd
Bug 1659132 - Get rid of NetAddrElement. Make mAddresses an array r=dragana,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D87090
2020-08-24 11:38:01 +00:00
Narcis Beleuzu
d27be427c9
Backed out changeset 83749e9e67bd (bug 1220810) for bc failures on browser_fall_back_to_https.js . CLOSED TREE
2020-07-10 18:42:17 +03:00
Andrea Marchesini
23052342cb
Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D64586
2020-07-10 14:30:58 +00:00
Mihai Alexandru Michis
b62be4d15f
Backed out changeset 1b035d80fb9f (bug 1220810) for causing bustages in netwerk/dns/DNS.cpp
...
CLOSED TREE
2020-07-10 17:17:20 +03:00
Andrea Marchesini
f498accc17
Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D64586
2020-07-10 13:08:14 +00:00
Mihai Alexandru Michis
44cad01e29
Backed out changeset 1b44f13206d0 (bug 1220810) for causing gecko decision task bustages.
...
CLOSED TREE
2020-07-10 15:37:45 +03:00
Andrea Marchesini
2144af13e9
Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D64586
2020-07-10 12:23:46 +00:00
Mihai Alexandru Michis
61006875dd
Backed out changeset 36f368ba214c (bug 1220810) for causing gecko decision task bustages.
...
CLOSED TREE
2020-07-10 15:00:15 +03:00
Andrea Marchesini
f36d351374
Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D64586
2020-07-10 11:34:10 +00:00
Mihai Alexandru Michis
93ec4f0381
Backed out changeset f01596089356 (bug 1220810) for causing crashes in test_performance_attributes_exist_in_object.html
...
CLOSED TREE
2020-03-19 17:12:32 +02:00
Andrea Marchesini
e4db0e4496
Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D64586
--HG--
extra : moz-landing-system : lando
2020-03-19 13:06:48 +00:00
Simon Giesecke
14dbfcaa29
Bug 1613985 - Use default for equivalent-to-default constructors/destructors in netwerk. r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D65496
--HG--
extra : moz-landing-system : lando
2020-03-06 09:22:49 +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
Ehsan Akhgari
625509f19c
Bug 1399803 - Consider all IPv4 loopback addresses as secure context; r=bzbarsky,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D43633
--HG--
extra : moz-landing-system : lando
2019-08-30 07:57:34 +00:00
Henrik Skupin
1803585259
Bug 1570104 - Add shared IPv4 range from RFC 6598 (100.64/10) to allowed list of IP addresses for testing. r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D40167
--HG--
extra : moz-landing-system : lando
2019-08-28 10:58:48 +00:00
Sylvestre Ledru
e226046cb8
Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
...
# ignore-this-changeset
Depends on D28954
Differential Revision: https://phabricator.services.mozilla.com/D28956
--HG--
extra : moz-landing-system : lando
2019-05-01 08:47:10 +00:00
Sylvestre Ledru
ef0bfc3822
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D24168
--HG--
extra : moz-landing-system : lando
2019-03-31 15:12:55 +00:00
Valentin Gosu
a2d6b63946
Bug 1420677 - Make AddrInfo.mAddresses an AutoCleanLinkedList r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D22960
--HG--
extra : moz-landing-system : lando
2019-03-19 12:22:10 +00:00
Bogdan Tara
89414a1df5
Backed out 2 changesets (bug 1420677) for causing bug 1534550 a=backout
...
Backed out changeset cf114035c79f (bug 1420677)
Backed out changeset edff1f39d426 (bug 1420677)
2019-03-12 11:54:19 +02:00
Valentin Gosu
7be123d24c
Bug 1420677 - Make AddrInfo.mAddresses an AutoCleanLinkedList r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D22960
--HG--
extra : moz-landing-system : lando
2019-03-11 13:00:35 +00:00
Ehsan Akhgari
e5e885ae31
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Benjamin Bouvier
a7f1d173a0
Bug 1511383: Update vim modelines after clang-format; r=sylvestre
...
- modify line wrap up to 80 chars; (tw=80)
- modify size of tab to 2 chars everywhere; (sts=2, sw=2)
--HG--
extra : rebase_source : 7eedce0311b340c9a5a1265dc42d3121cc0f32a0
extra : amend_source : 9cb4ffdd5005f5c4c14172390dd00b04b2066cd7
2018-11-30 16:39:55 +01:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Dorel Luca
b53fbe3617
Merge mozilla-central to autoland
2018-06-15 05:43:31 +03:00
Andi-Bogdan Postelnicu
90ac230485
Bug 1453795 - Necko - Initialize member fields in classes/ structures. r=michal
2018-06-14 11:19:07 +03:00
Jeff Hemphill
0d0efc9d92
Bug 1417827: Convert internal char* to nsCString in DNS.h r=bagder
...
MozReview-Commit-ID: Js1mXiKaKnt
--HG--
extra : rebase_source : 55ae6349a65f20a2401aa76711b1e9c871b0c167
2017-11-29 23:30:27 -08:00
Dorel Luca
ff4d587dc8
Backed out 2 changesets (bug 1417827) for windows build bustage. CLOSED TREE
...
Backed out changeset 35655153f9c9 (bug 1417827)
Backed out changeset 9606d0d95b53 (bug 1417827)
--HG--
extra : amend_source : ce9a86c7b5ded39d1b00a7c626ba7a082efaabde
2018-06-14 22:07:18 +03:00
Jeff Hemphill
deb1d4dff1
Bug 1417827: Convert internal char* to nsCString in DNS.h r=bagder
...
MozReview-Commit-ID: Js1mXiKaKnt
--HG--
extra : source : fc388a747aba88d3eb535e6105305bd85914600b
2017-11-29 23:30:27 -08:00
Gurzau Raul
f2d3a45d49
Backed out 2 changesets (bug 1417827) backed out due to gecko decision task failure, tests did not run
...
Backed out changeset 190c4f057ffa (bug 1417827)
Backed out changeset fc388a747aba (bug 1417827)
2018-06-14 19:07:48 +03:00
Jeff Hemphill
85150abc1d
Bug 1417827: Convert internal char* to nsCString in DNS.h r=bagder
...
MozReview-Commit-ID: Js1mXiKaKnt
--HG--
extra : rebase_source : 835ab465653aef0d9d513b8836ba54a27b98e556
2017-11-29 23:30:27 -08:00
Sebastian Hengst
0819f35e51
Backed out 4 changesets (bug 525063) on request from Andi. a=backout
...
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon
a3a77c0312
Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan
2018-04-10 21:11:02 +02:00
Daniel Stenberg
144d65c4d6
bug 1446749 - make resolver keep TRR status when cherry-picking adddresses r=mcmanus
...
... as they otherwise appear in the about:networking list as "false"
while having been resolved by TRR.
MozReview-Commit-ID: 9g9fUExvyjS
--HG--
extra : rebase_source : 3098b7c3f7d01e55f5a8c031fc6a73e53f7edb05
2018-03-18 15:39:56 +01:00
Daniel Stenberg
e5d3226694
bug 1434852 - introducing TRR (DOH); r=mcmanus,valentin
...
Provides an optional resolver mechanism for Firefox that allows running
together with or instead of the native resolver.
TRR offers resolving of host names using a dedicated DNS-over-HTTPS server
(HTTPS is required, HTTP/2 is preferable).
DNS-over-HTTPS (DOH) allows DNS resolves with enhanced privacy, secure
transfers and improved performance.
To keep the failure rate at a minimum, the TRR system manages a dynamic
persistent blacklist for host names that can't be resolved with DOH but works
with the native resolver. Blacklisted entries will not be retried over DOH for
a couple of days. "localhost" and names in the ".local" TLD will not be
resolved via DOH.
TRR is preffed OFF by default and you need to set a URI for an available DOH
server to be able to use it. Since the URI for DOH is set with a name itself,
it may have to use the native resolver for bootstrapping. (Optionally, the
user can set the IP address of the DOH server in a pref to avoid the required
initial native resolve.)
When TRR starts up, it will first verify that it works by checking a
"confirmation" domain name. This confirmation domain is a pref by default set
to "example.com". TRR will also by default await the captive-portal detection
to raise its green flag before getting activated.
All prefs for TRR are under the "network.trr" hierarchy.
The DNS-over-HTTPS spec: https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-03
MozReview-Commit-ID: GuuU6vjTjlm
--HG--
extra : rebase_source : 53fcca757334090ac05fec540ef29d109d5ceed3
2018-02-01 10:20:49 +01:00
Valentin Gosu
1951f81b85
Bug 1422173 - Backed out changeset 34cfc821e335 (Bug 1417827) r=me
...
MozReview-Commit-ID: 5C5YN8zgAgt
2017-12-04 16:02:58 +01:00
Jeff Hemphill
0a383a895e
Bug 1417827: Convert internal char* to nsCString in DNS.h r=valentin
...
MozReview-Commit-ID: Js1mXiKaKnt
--HG--
extra : rebase_source : 0b24a9a75dbb5a404f261e055a5bbc7fae95eff9
2017-11-29 23:30:27 -08:00