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

3537 Коммитов

Автор SHA1 Сообщение Дата
Valentin Gosu 7aa8b3a2e4 Bug 1673364 - fix test_dns_disabled.js r=necko-reviewers,dragana
The test was using network.dns.localDomains to check that we don't
call into the platform DNS resolver when the network.dns.disabled pref
was set - but since the localDomains pref rewrites hostnames to localhost
and we now don't call into GetAddrInfo for local domains, the test
failed.
I changed it so it uses the NativeDNSResolverOverride to register an IP for
foo.bar instead of relying on localDOmains.

Depends on D94726

Differential Revision: https://phabricator.services.mozilla.com/D94727
2020-10-27 13:25:22 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Hubert Boma Manilla 7001145b00 Bug 1666723 - Expose and add a test r=dragana,necko-reviewers
Depends on D93137

Differential Revision: https://phabricator.services.mozilla.com/D93922
2020-10-22 23:23:53 +00:00
Valentin Gosu 6754b3b7a0 Bug 1670675 - Add test for loading brotli encoded files over unsecured HTTP r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D93924
2020-10-21 07:06:39 +00:00
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
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +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
Valentin Gosu 56e20d4de5 Bug 1324247 - Strip whitespace from hash in URL setters r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D93472
2020-10-16 07:11:55 +00:00
Valentin Gosu 1756a71ac0 Bug 1324247 - Strip whitespace from queries in URL setters r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D93471
2020-10-16 07:11:42 +00:00
Dragana Damjanovic ddaca31b0c Bug 1671521 - Update neqo to version 0.4.13 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D93703
2020-10-16 07:13:32 +00:00
Valentin Gosu 1f15b5f8cb Bug 1186737 - nsMultiMixedConv should not hang if it gets no data r=necko-reviewers,dragana
Previously it was possible to not have mBoundarySet so we just bailed in
OnStopRequest - but after Bug 1321612 that is not possible, and we
call OnStopRequest with NS_ERROR_CORRUPTED_CONTENT.

This patch removes the check for the boundary, allowing the code to call
`mFinalListener->OnStopRequest(request, aStatus)` instead of hanging.

Differential Revision: https://phabricator.services.mozilla.com/D93340
2020-10-14 07:56:24 +00:00
Dragana Damjanovic 5ee4d78cb9 Bug 1670089 - Fix transactions WriteSegments issue with http3. r=necko-reviewers,valentin
The problem occurs when a response does not have a body. In this case the transaction will never be closed.  if a transaction only has read headers, WriteSegments will return 0 bytes written(bug 1646701) and WriteSegments will not be called again and the transaction will not pickup the FIN bit.

Some code improvements:
- calling WriteSegments in a loop has been moved to Http3Stream. This is more appropriate place
- remove RECEIVED_RESET, because it is not used
- add test and add head_http3.js for setting up http3 tests (e.g. making sure that an alt-svc mapping is setup)
- fix handling of a response that has more data than its content-length header indicates.

Differential Revision: https://phabricator.services.mozilla.com/D92990
2020-10-13 09:40:24 +00:00
Dragana Damjanovic 2f6b73bd1e Bug 1670085 - Http3 cannot be dispatch using OnMsgReclaimConnection. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D93323
2020-10-13 09:10:05 +00:00
Christoph Kerschbaumer faf05f7d19 Bug 1552168: Remove pref security.data_uri.unique_opaque_origin. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D92087
2020-10-08 16:55:25 +00:00
Dragana Damjanovic 226b522fe0 Bug 1669680 - Read from a neqo stream in a loop until all data re read or thee stream consumer can not handle more data. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D92753
2020-10-07 18:24:31 +00:00
Kershaw Chang d1927c3c05 Bug 1666620 - Close the transaction when Http3Session::Init failed, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91115
2020-10-07 08:48:38 +00:00
Kershaw Chang 347295305d Bug 1652717 - P2: Implement fast fallback when H3 is used r=necko-reviewers,valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D90998
2020-10-07 08:48:25 +00:00
Kershaw Chang c35e553d02 Bug 1652717 - P1: Make sure we can connect to Http3 server according to HTTPS RR r=necko-reviewers,valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D90997
2020-10-07 09:14:59 +00:00
Kershaw Chang e15e30d8c5 Bug 1665878 - Reset exclusion list when all target names are all excluded, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90822
2020-10-06 20:06:53 +00:00
Kershaw Chang beca4c9d74 Bug 1652713 - Implement fallback mechanism when echConfig is enabled, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90673
2020-10-06 20:06:55 +00:00
Dorel Luca 5c6d2146ce Backed out 5 changesets (bug 1652717, bug 1665878, bug 1666620, bug 1652713) for XPCshell failures in components/migration/tests/unit/xpcshell.ini. CLOSED TREE
Backed out changeset 6322b86e1df4 (bug 1666620)
Backed out changeset ab09fd84e0e4 (bug 1652717)
Backed out changeset 018c0eebe944 (bug 1652717)
Backed out changeset 1636234a4768 (bug 1665878)
Backed out changeset 395117cd7b25 (bug 1652713)
2020-10-06 22:39:34 +03:00
Kershaw Chang 6531bf10b8 Bug 1666620 - Close the transaction when Http3Session::Init failed, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91115
2020-10-06 10:53:38 +00:00
Kershaw Chang c8a92b9fee Bug 1652717 - P2: Implement fast fallback when H3 is used r=necko-reviewers,valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D90998
2020-10-06 11:26:57 +00:00
Kershaw Chang 24121cf263 Bug 1652717 - P1: Make sure we can connect to Http3 server according to HTTPS RR r=necko-reviewers,valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D90997
2020-10-06 10:51:58 +00:00
Kershaw Chang 4ab4ff8981 Bug 1665878 - Reset exclusion list when all target names are all excluded, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90822
2020-10-06 09:48:05 +00:00
Kershaw Chang 99208e5b56 Bug 1652713 - Implement fallback mechanism when echConfig is enabled, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90673
2020-10-06 09:47:52 +00:00
Narcis Beleuzu 025ef5008e Backed out changeset 71aa02ea22b6 (bug 1666678) for GTest failures on TestCookieMain 2020-10-05 21:32:24 +03:00
Kershaw Chang 35c03a8910 Bug 1652677 - P1: Prefer to use records with ECH config r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D89454
2020-10-05 15:16:29 +00:00
Valentin Gosu 1d498c5bad Bug 1666678 - [cookie] rejected cookie when domain have ipv6 address r=baku
Differential Revision: https://phabricator.services.mozilla.com/D91246
2020-09-24 13:17:42 +00:00
Valentin Gosu b9501927ed Bug 1616252 - Exclude domains in /etc/hosts from using TRR r=necko-reviewers,dragana
This patch adds a task that is dispatched to the background thread when TRR
is first enabled. This may mean during the TRRService initialization at
startup or later when the pref is flipped.

The task will call into rust_parse_etc_hosts which does the actual file
opening and parsing. We pass the path to the file, that being either
/etc/hosts or the Windows equivalent obtained by calling
SHGetSpecialFolderPathA.

The rust code opens the file and proceeds to read it line by line while
accumulating all the hostnames in an array. Since these files can be
quite large, on the order of several megabytes, we need to make sure we
don't block shutdown doing this - so once more than 100 domains have
accumulated in the array we call back into C++ code to add them to the
exclusion list. The callback will return true if we should continue to
parse the file or false otherwise.

We also change the tests to use "excluded" rather than localhost when
testing the excluded-domains prefs, since localhost is unually present
in /etc/hosts and may interfere with the test.

We also use an atomic sTRRServicePtr to make sure that we don't have
a data race between the TRRService being freed and the callbacks of the
parsing.

Differential Revision: https://phabricator.services.mozilla.com/D90663
2020-10-01 07:01:58 +00:00
Valentin Gosu a3a123bcf3 Bug 1667975 - Don't check rcode before parsing packet r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D92040
2020-10-01 10:05:03 +00:00
Dragana Damjanovic cb3f1acfbd Bug 1668019 - Update neqo to version 0.4.12 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D91873
2020-09-30 10:51:34 +00:00
Sebastian Hengst a34f36ddbd Backed out 2 changesets (bug 1652677) on request from kershaw for causing bug 1667801
Backed out changeset 4a66e4016c18 (bug 1652677)
Backed out changeset df6bdf8157b1 (bug 1652677)
2020-09-30 13:14:00 +02:00
Sebastian Hengst 0cf7e55237 Backed out changeset 0b7c8f6349b1 (bug 1667743) on request from kershaw for causing bug 1667801 2020-09-30 13:12:53 +02:00
Valentin Gosu e05404b825 Bug 1589337 - Use nsIClassInfoImpl in nsJARURI r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D90256
2020-09-29 11:40:58 +00:00
Valentin Gosu 2ba638de33 Bug 1589337 - Use nsIClassInfoImpl in nsIconURI r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D90255
2020-09-29 11:40:43 +00:00
Valentin Gosu 32d406eed2 Bug 1589337 - Use nsIClassInfoImpl in DefaultURI r=necko-reviewers,xpcom-reviewers,kershaw,sg
Differential Revision: https://phabricator.services.mozilla.com/D90254
2020-09-29 11:40:28 +00:00
Kershaw Chang 5eabf77a18 Bug 1667743 - Remove unused esni code r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D91571
2020-09-28 17:21:39 +00:00
Kershaw Chang 0ec383b700 Bug 1652677 - P1: Prefer to use records with ECH config r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D89454
2020-09-24 19:33:15 +00:00
Csoregi Natalia 2d0fac4d45 Backed out changeset f12c895fc5e7 (bug 1605305) for causing bustage on nsHttpChannel.cpp on mc. CLOSED TREE 2020-09-25 09:58:22 +03:00
Razvan Maries e761feff33 Backed out 2 changesets (bug 1652677) for build bustages on nsHttpConnection.cpp. CLOSED TREE
Backed out changeset 7df7bfbfbc6e (bug 1652677)
Backed out changeset 435ff20fa8c6 (bug 1652677)
2020-09-24 22:01:09 +03:00
Kershaw Chang bd99e0b590 Bug 1652677 - P1: Prefer to use records with ECH config r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D89454
2020-09-24 14:29:56 +00:00
Valentin Gosu 490c8f0c88 Bug 1666711 - Improve TRRDNSListener handling r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D90980
2020-09-23 09:30:13 +00:00
Akihiko Odaki 857f18b6f5 Bug 1605305 - Origin header field is not set to HTTP request in cases where it is required, r=ckerschb,necko-reviewers,JuniorHsu
***
trr debugging

Differential Revision: https://phabricator.services.mozilla.com/D80905
2020-09-23 19:00:10 +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 d8fa63f024 Bug 1666249 - Save canonical name when lookup with DNS-over-HTTPS enabled r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D90979
2020-09-23 09:29:50 +00:00