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

21169 Коммитов

Автор SHA1 Сообщение Дата
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
Tim Huang 18853bea78 Bug 1670617 - Part 2: Make the CORS preflight cache partitioned by the originAttributes. r=ckerschb,necko-reviewers
We want to partition the CORS preflight cache by the network state
partitioning. So, we have done two things in the patch. First, we make
the CORS preflight cache to be aware of the OriginAttributes. Second, we
use the originAttributes of the network state partitioning in the CORS
preflight cache. As the result, the CORS preflight cache will be
partitioned by the originAttributes.partitionKey as well as other
originAttributes fields if present.

Differential Revision: https://phabricator.services.mozilla.com/D93683
2020-10-26 13:39:12 +00:00
Mihai Alexandru Michis ed42a59568 Backed out changeset b3557a86d1c3 (bug 1663571) for causing mda failures in webrtc/tests/mochitests/test_peerConnection/*
CLOSED TREE
2020-10-26 16:50:37 +02:00
Valentin Gosu 2da264ce5c Bug 1663571 - Resolve single label DNS queries using DnsQuery_A r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D91117
2020-10-26 11:40:22 +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
Bogdan Tara e7ff82d770 Backed out changeset 3da0a14a9999 (bug 1663571) for making wpt tests unable to load initial page CLOSED TREE 2020-10-24 02:38:12 +03:00
Valentin Gosu 3af312e531 Bug 1663571 - Resolve single label DNS queries using DnsQuery_A r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D91117
2020-10-15 19:31:06 +00: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 118fbc2d87 Bug 1671479 - Hold mutex when calling TransportSecurityInfo::Get/SetSucceededCertChain r=keeler,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D93744
2020-10-21 20:04:46 +00:00
Valentin Gosu 237dbb5237 Bug 1672219 - nsServerSocket fd should not be inheritable by the child process r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D94263
2020-10-23 06:44:33 +00:00
Hubert Boma Manilla d9a8d96616 Bug 1666723 - Track that http3 is advertised / supported r=dragana,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D93137
2020-10-22 23:24:00 +00:00
Michael Kaply c7c4a35de5 Bug 1559181 - Switch about blocking to use new REJECT_POLICY and cleanup tests r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D93390
2020-10-22 19:36:52 +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
Valentin Gosu 351fc0d2ff Bug 1569715 - Don't lookup CORS preflight cache when devtools 'Disable cache' is checked r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D94100
2020-10-22 11:12:30 +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
Kershaw Chang 2c085933ab Bug 1667775 - Add a telemetry probe for the reason why a transaction is restarted r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D91595
2020-10-21 15:19:20 +00:00
Andi-Bogdan Postelnicu bbe7b7b35e Bug 1671641 - Make `nsICacheInfoChannel.idl` syntax correctly. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D94016
2020-10-21 08:00:18 +00:00
Valentin Gosu 68dfec208f Bug 1402014 - Make nsAHttpSegmentReader refcounted r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D93318
2020-10-21 07:06:35 +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
Kershaw Chang 6997ac3184 Bug 1667356 - Show the content of HTTPS RRs in about:networking r=necko-reviewers,fluent-reviewers,flod,dragana,webidl,asuth
Differential Revision: https://phabricator.services.mozilla.com/D91566
2020-10-21 00:52:46 +00:00
Tim Huang 7ada64860a Bug 1670820 - Part 2: Use the StoragePrincipalHelper::GetOriginAttributesForHSTS() to get the OA when checking the HSTS for http channels. r=baku,necko-reviewers,dragana
The partitionKey for HSTS is always set with 'http' scheme. So, we
should also use 'http' when checking the HSTS for http channels.

Differential Revision: https://phabricator.services.mozilla.com/D93393
2020-10-20 20:55:12 +00:00
Mihai Alexandru Michis d762ad6f42 Backed out changeset 989a13996999 (bug 1669355) for causing mochitest failures in test_fetch_event.html
CLOSED TREE
2020-10-20 17:13:25 +03:00
Andrew Sutherland 6ee5f4b5c1 Bug 1669355 - Refactor MIME type warnings into base class. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D93906
2020-10-19 07:00:41 +00:00
Kershaw Chang c21369d346 Bug 1668828 - Don't set cos flag if transaction is already closed r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D94081
2020-10-20 12:59:31 +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
Valentin Gosu b5dcdc80bb Bug 1669780 - Backed out changeset 29d1be2b96f9 (Bug 1569715) for causing us to skip CORS preflight cache for POST requests r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D93746
2020-10-19 07:45:46 +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
ffxbld db1c8d8a34 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D93667
2020-10-15 16:43:04 +00:00
Dan Minor c7c8e3f274 Bug 1669573 - Rename kTimeFormatSeconds and kTimeFormatNoSeconds; r=zbraniecki
This renames kTimeFormatSeconds to kTimeFormatLong and kTimeFormatNoSeconds to
kTimeFormatShort. This is consistent with the naming used for date format
selectors.

Differential Revision: https://phabricator.services.mozilla.com/D93011
2020-10-15 12:20:15 +00:00
Valentin Gosu 99429ed4ed Bug 1671164 - Make sure lock is held when calling AddrHostRecord::Blocklisted r=necko-reviewers,dragana
Depends on D93491

Differential Revision: https://phabricator.services.mozilla.com/D93492
2020-10-15 11:06:09 +00:00
Valentin Gosu 1a306ee2c7 Bug 1671164 - Rename nsHostResolver::Blacklisted to Blocklisted r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D93491
2020-10-15 11:04:29 +00:00
Dimi Lee 7a61308533 Bug 1669731 - P3. Add Allow API to ChannelClassifierService. r=timhuang,nhnt11
UI needs to distinguish the cases when a channel is shimmed and is
unshimmed.
When a channel is unshimmed, we unblock the channel and simply treat the channel as a
non-tracking channel.
When a channel is shimmed, although the channel is unblocked by
URLCLassifier, we still want to show it in the UI. For this case,
URLClassifier will notify a content blocking event when a channel is
unblocked.

This patch adds a new allow API, so the caller can use unblock() or
allow() depending upon the case it requires.

Differential Revision: https://phabricator.services.mozilla.com/D93271
2020-10-14 09:17:04 +00:00
Dimi Lee d56e33dd5e Bug 1669731 - P1. Rename STATE_UNBLOCKED_UNSAFE_CONTENT to STATE_UNBLOCKED_TRACKING_CONTENT r=timhuang
unsafe content is for Safe Browsing(phishing, malware, etc), we should use tracking content instead.

Differential Revision: https://phabricator.services.mozilla.com/D93269
2020-10-14 09:16:39 +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
Olli Pettay 1a587403e7 Bug 1668083 - when redirecting load from post to get, load should become replacing load also in session history, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D93249
2020-10-13 16:36:11 +00:00
Aaron Klotz 865e038207 Bug 1668376: Part 1 - Rename GeckoProcessManager::MarkAsDead to GeckoProcessManager::ShutdownProcess; r=geckoview-reviewers,necko-reviewers,agi,dragana
Since the semantics of `ContentParent::MarkAsDead` are significantly different
from `GeckoProcessManager::MarkAsDead`, let's rename the latter to better
reflect what it actually does.

Differential Revision: https://phabricator.services.mozilla.com/D92649
2020-10-06 20:25:02 +00:00
Christoph Kerschbaumer 88e9eb0d02 Bug 1665062: HTTPS-Only: Upgraded website creating HTTP auth prompt gets interrupted by error-page r=necko-reviewers,dragana,JulianWels
Differential Revision: https://phabricator.services.mozilla.com/D91908
2020-10-13 14:06:28 +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
JulianWels b88cf407ac Bug 1608074 - Set channel ReferrerInfo in privileged code instead of referrer header r=nchevobbe,mixedpuppy,valentin
Differential Revision: https://phabricator.services.mozilla.com/D59856
2020-10-13 12:27:26 +00:00
Mihai Alexandru Michis 55dd1dbe43 Backed out changeset b3fb1b5bbe34 (bug 1608074) for causing bustages in XMLHttpRequestMainThread.cpp
CLOSED TREE
2020-10-13 14:55:06 +03:00
JulianWels 2ae8134434 Bug 1608074 - Set channel ReferrerInfo in privileged code instead of referrer header r=nchevobbe,mixedpuppy,valentin
Differential Revision: https://phabricator.services.mozilla.com/D59856
2020-10-13 10:39:11 +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
Frederik Braun d0107a4b05 Bug 1641190 - allow requests from systemprincipal for AltSvc request r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D93221
2020-10-13 08:50:31 +00:00
ffxbld 4c9d801663 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D93223
2020-10-12 14:35:15 +00:00
Bas Schouten 25a1b0f61f Bug 1669256 - Part 1: Remove AbstractEventQueue and de-templatize ThreadEventQueue. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D92709
2020-10-09 17:56:34 +00:00