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

789399 Коммитов

Автор SHA1 Сообщение Дата
Barret Rennie 051dfe31ad Bug 1757778 - Expose Nimbus schemas as resource:// URIs r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D138929
2022-03-25 00:01:19 +00:00
Barret Rennie ad78c6e309 Bug 1757809 - Set the base URI for the JSON Schema validator to mozilla.org r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D140758
2022-03-25 00:01:18 +00:00
Barret Rennie 51b6157ed9 Bug 1757809 - Provide a JsonSchema module that supports additional Mozilla-specific formats r=mossop,emcminn
In migrating from Ajv 6 to @cfworker/json-schema, some schemas will no longer
validate due to the `format: uri` annotation only being a suggestion for
strings in Ajv 6. Our URLs that use %PLACEHOLDERS% (e.g., `%LOCALE%`) will not
pass validation as URIs due to being interpreted as invalid URL encoding.

Here we add a facade in front of @cfworker/json-schema which defines a
`moz-url-format` format for strings, which runs them through
Services.urlFormatter.formatURL before attempting to validate them as URIs. We
don't simply find-replace all %PLACEHOLDERS% because the URL formatter service
only supports certain variables and will leave undefined variables as-is,
leading to a validation error (which is what we want).

Differential Revision: https://phabricator.services.mozilla.com/D138926
2022-03-25 00:01:18 +00:00
Barret Rennie a3d490a7c9 Bug 1755599 - Vendor @cfworker/json-schema r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D138924
2022-03-25 00:01:18 +00:00
Barret Rennie 600a757877 Bug 1755599 - Add vendor configuration for @cfworker/json-schema r=mhoye,mossop
Differential Revision: https://phabricator.services.mozilla.com/D138923
2022-03-25 00:01:17 +00:00
Kagami Sascha Rosylight 9fd10f1f1a Bug 1734886 - Part 7: Implement TransformStreamDefaultController::GetDesiredSize r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D141975
2022-03-24 23:57:34 +00:00
Kagami Sascha Rosylight 7db2329705 Bug 1734886 - Part 6: Store FlushCallback in TransformStream r=mgaudet
This itself does not provide any additional feature, since nothing uses the callbacks yet.

Differential Revision: https://phabricator.services.mozilla.com/D141974
2022-03-24 23:57:34 +00:00
Tomislav Jovanovic 0dec35cac7 Bug 1745819 - Require origin permission for content scripts in mv3 r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D141557
2022-03-24 23:41:01 +00:00
Dan Minor 64d31d44db Bug 1761273 - Check for multiple dictionaries when saving site preferences; r=smaug
We only want to save the site preferences when the user's dictionary
preferences do not match the preferred language for the site. This is always
the case when there is more than one dictionary in use, but the current
code does not handle this case.

Differential Revision: https://phabricator.services.mozilla.com/D141981
2022-03-24 22:29:42 +00:00
Csoregi Natalia c4d7e79183 Backed out changeset 62bd03bc3763 (bug 1754864) for causing bustage on WeakMapObject.cpp. CLOSED TREE 2022-03-25 00:07:06 +02:00
Iulian Moraru 6fecac8584 Merge mozilla-central to autoland on a CLOSED TREE 2022-03-24 23:55:20 +02:00
Iulian Moraru 3f782c2587 Merge autoland to mozilla-central. a=merge 2022-03-24 23:53:10 +02:00
Serge Guelton 4f2409fa57 Bug 1754864 - cleanup js/ includes r=andi
Differential Revision: https://phabricator.services.mozilla.com/D141465
2022-03-24 21:36:40 +00:00
Dana Keeler 7cd23429ff Bug 1088140 - support RSA-PSS signatures on certificates in the certificate verifier r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D141780
2022-03-24 21:34:21 +00:00
John Schanck caf282f02b Bug 1758579 - land NSS NSS_3_77_BETA1 UPGRADE_NSS_RELEASE, r=keeler
2022-03-24  John M. Schanck  <jschanck@mozilla.com>

	* lib/ckfw/builtins/certdata.txt:
	Bug 1754890 - Add two D-TRUST 2020 root certificates.
	r=KathleenWilson

	[f63fb86db692] [NSS_3_77_BETA1]

	* lib/ckfw/builtins/certdata.txt:
	Bug 1751298 - Add Telia Root CA v2 root certificate.
	r=KathleenWilson

	[1fcbbd7e4f5f]

	* lib/ckfw/builtins/certdata.txt:
	Bug 1751305 - Remove expired explicitly distrusted certificates from
	certdata.txt. r=KathleenWilson

	[b722e523d662]

2022-03-23  Dana Keeler  <dkeeler@mozilla.com>

	* gtests/mozpkix_gtest/pkixcheck_CheckSignatureAlgorithm_tests.cpp,
	gtests/mozpkix_gtest/pkixder_pki_types_tests.cpp,
	gtests/mozpkix_gtest/pkixgtest.h,
	gtests/mozpkix_gtest/pkixnss_tests.cpp,
	lib/mozpkix/include/pkix/pkixder.h,
	lib/mozpkix/include/pkix/pkixnss.h,
	lib/mozpkix/include/pkix/pkixtypes.h, lib/mozpkix/lib/pkixc.cpp,
	lib/mozpkix/lib/pkixcheck.cpp, lib/mozpkix/lib/pkixder.cpp,
	lib/mozpkix/lib/pkixnss.cpp, lib/mozpkix/lib/pkixverify.cpp,
	lib/mozpkix/test-lib/pkixtestnss.cpp:
	Bug 1005084 - support specific RSA-PSS parameters in mozilla::pkix
	r=jschanck

	This patch adds support to mozilla::pkix for certificates signed
	with RSA-PSS using one of the following parameters permitted by the
	CA/Browser Forum Baseline Requirements 1.8.1:

	* SHA-256, MGF-1 with SHA-256, and a salt length of 32 bytes
	* SHA-384, MGF-1 with SHA-384, and a salt length of 48 bytes
	* SHA-512, MGF-1 with SHA-512, and a salt length of 64 bytes

	[853b64626b19]

2022-03-23  John M. Schanck  <jschanck@mozilla.com>

	* lib/util/secasn1d.c:
	Bug 1753535 - Remove obsolete stateEnd check in
	SEC_ASN1DecoderUpdate. r=rrelyea

	The `stateEnd->parent != state` check was added in Bug 95458 to
	avoid a crash in `sec_asn1d_free_child`. The diagnosis in Bug 95458
	is incorrect---the crash was actually due to a `PORT_Assert(0)` that
	was meant to highlight a memory leak when `SEC_ASN1DecoderStart` was
	called with `their_pool==NULL`. The offending assertion was removed
	in Bug 95311, which makes the `stateEnd` check obsolete. In Bug
	1753535 it was observed that the `stateEnd` check could read from a
	poisoned region of an arena when the decoder was used in a streaming
	mode. This read-after-poison could lead to an arena memory leak,
	although this is mitigated by the fact that the read-after-poison is
	on an error-handling path where the caller typically frees the
	entire arena.

	[800111fa3bf8]

	* lib/dev/dev.h, lib/dev/devslot.c, lib/dev/devt.h,
	lib/dev/devtoken.c, lib/pk11wrap/dev3hack.c:
	Bug 1756271 - Remove token member from NSSSlot struct. r=rrelyea

	[55052f78244c]

	* cmd/mpitests/mpi-test.c, lib/freebl/Makefile, lib/freebl/dh.c,
	lib/freebl/freebl_base.gypi, lib/freebl/manifest.mn,
	lib/freebl/mpi/mpprime.c, lib/freebl/mpi/mpprime.h,
	lib/freebl/pqg.c, lib/freebl/rsa.c, lib/freebl/secmpi.c,
	lib/freebl/secmpi.h:
	Bug 1602379 - Provide secure variants of mpp_pprime and
	mpp_make_prime. r=mt

	[b83ad33acd67]

2022-03-22  John M. Schanck  <jschanck@mozilla.com>

	* cmd/mpitests/mpi-test.c, lib/freebl/Makefile, lib/freebl/dh.c,
	lib/freebl/freebl_base.gypi, lib/freebl/manifest.mn,
	lib/freebl/mpi/mpprime.c, lib/freebl/mpi/mpprime.h,
	lib/freebl/pqg.c, lib/freebl/rsa.c, lib/freebl/secmpi.c,
	lib/freebl/secmpi.h:
	Backed out changeset 6c1092f5203f

	Caused Windows gyp build failures for cmd/mpitests
	[ffa1e4ce758a]

2022-03-22  Masatoshi Kimura  <VYV03354@nifty.ne.jp>

	* gtests/pk11_gtest/pk11_module_unittest.cc, lib/pk11wrap/pk11load.c:
	Bug 1757279 - Support UTF-8 library path in the module spec string.
	r=nss-reviewers,jschanck

	[31bce2dae97b]

	* gtests/base_gtest/Makefile, gtests/base_gtest/base_gtest.gyp,
	gtests/base_gtest/manifest.mn, gtests/base_gtest/utf8_unittest.cc,
	gtests/manifest.mn, lib/base/utf8.c, nss.gyp,
	tests/gtests/gtests.sh:
	Bug 1396616 - Update nssUTF8_Length to RFC 3629 and fix buffer
	overrun. r=nss-reviewers,jschanck

	[2f2c85648edb]

2022-03-22  John M. Schanck  <jschanck@mozilla.com>

	* cmd/mpitests/mpi-test.c, lib/freebl/Makefile, lib/freebl/dh.c,
	lib/freebl/freebl_base.gypi, lib/freebl/manifest.mn,
	lib/freebl/mpi/mpprime.c, lib/freebl/mpi/mpprime.h,
	lib/freebl/pqg.c, lib/freebl/rsa.c, lib/freebl/secmpi.c,
	lib/freebl/secmpi.h:
	Bug 1602379 - Provide secure variants of mpp_pprime and
	mpp_make_prime. r=mt

	[6c1092f5203f]

2022-03-22  Dennis Jackson  <djackson@mozilla.com>

	* automation/taskcluster/docker-builds/Dockerfile,
	automation/taskcluster/graph/src/extend.js:
	Bug 1760827 - Add a CI Target for gcc-11. r=nss-reviewers,nkulatova

	[d4a3bb7731b0]

	* automation/taskcluster/graph/src/extend.js:
	Bug 1760828 - Change to makefiles for gcc-4.8. r=nss-reviewers,mt

	[191e838399a6]

2022-03-22  J08nY  <johny@neuromancer.sk>

	* automation/taskcluster/graph/src/extend.js,
	gtests/google_test/VERSION, gtests/google_test/gtest/CMakeLists.txt,
	gtests/google_test/gtest/CONTRIBUTORS,
	gtests/google_test/gtest/README.md,
	gtests/google_test/gtest/cmake/gtest.pc.in,
	gtests/google_test/gtest/cmake/gtest_main.pc.in,
	gtests/google_test/gtest/cmake/internal_utils.cmake,
	gtests/google_test/gtest/docs/Pkgconfig.md,
	gtests/google_test/gtest/docs/README.md,
	gtests/google_test/gtest/docs/advanced.md,
	gtests/google_test/gtest/docs/faq.md,
	gtests/google_test/gtest/docs/primer.md,
	gtests/google_test/gtest/docs/pump_manual.md,
	gtests/google_test/gtest/docs/samples.md,
	gtests/google_test/gtest/include/gtest/gtest-death-test.h,
	gtests/google_test/gtest/include/gtest/gtest-matchers.h,
	gtests/google_test/gtest/include/gtest/gtest-message.h,
	gtests/google_test/gtest/include/gtest/gtest-param-test.h,
	gtests/google_test/gtest/include/gtest/gtest-printers.h,
	gtests/google_test/gtest/include/gtest/gtest-spi.h,
	gtests/google_test/gtest/include/gtest/gtest-test-part.h,
	gtests/google_test/gtest/include/gtest/gtest-typed-test.h,
	gtests/google_test/gtest/include/gtest/gtest.h,
	gtests/google_test/gtest/include/gtest/gtest_pred_impl.h,
	gtests/google_test/gtest/include/gtest/gtest_prod.h,
	gtests/google_test/gtest/include/gtest/internal/custom/gtest-port.h,
	gtests/google_test/gtest/include/gtest/internal/custom/gtest-
	printers.h,
	gtests/google_test/gtest/include/gtest/internal/custom/gtest.h,
	gtests/google_test/gtest/include/gtest/internal/gtest-death-test-
	internal.h, gtests/google_test/gtest/include/gtest/internal/gtest-
	filepath.h, gtests/google_test/gtest/include/gtest/internal/gtest-
	internal.h, gtests/google_test/gtest/include/gtest/internal/gtest-
	param-util.h, gtests/google_test/gtest/include/gtest/internal/gtest-
	port-arch.h, gtests/google_test/gtest/include/gtest/internal/gtest-
	port.h, gtests/google_test/gtest/include/gtest/internal/gtest-
	string.h, gtests/google_test/gtest/include/gtest/internal/gtest-
	type-util.h, gtests/google_test/gtest/include/gtest/internal/gtest-
	type-util.h.pump, gtests/google_test/gtest/samples/prime_tables.h,
	gtests/google_test/gtest/samples/sample1.cc,
	gtests/google_test/gtest/samples/sample1.h,
	gtests/google_test/gtest/samples/sample10_unittest.cc,
	gtests/google_test/gtest/samples/sample2.cc,
	gtests/google_test/gtest/samples/sample2.h,
	gtests/google_test/gtest/samples/sample2_unittest.cc,
	gtests/google_test/gtest/samples/sample3-inl.h,
	gtests/google_test/gtest/samples/sample3_unittest.cc,
	gtests/google_test/gtest/samples/sample4.h,
	gtests/google_test/gtest/samples/sample5_unittest.cc,
	gtests/google_test/gtest/samples/sample6_unittest.cc,
	gtests/google_test/gtest/samples/sample7_unittest.cc,
	gtests/google_test/gtest/samples/sample8_unittest.cc,
	gtests/google_test/gtest/samples/sample9_unittest.cc,
	gtests/google_test/gtest/scripts/README.md,
	gtests/google_test/gtest/scripts/gen_gtest_pred_impl.py,
	gtests/google_test/gtest/scripts/pump.py,
	gtests/google_test/gtest/scripts/release_docs.py,
	gtests/google_test/gtest/scripts/run_with_path.py,
	gtests/google_test/gtest/scripts/upload.py,
	gtests/google_test/gtest/src/gtest-death-test.cc,
	gtests/google_test/gtest/src/gtest-filepath.cc,
	gtests/google_test/gtest/src/gtest-internal-inl.h,
	gtests/google_test/gtest/src/gtest-matchers.cc,
	gtests/google_test/gtest/src/gtest-port.cc,
	gtests/google_test/gtest/src/gtest-printers.cc,
	gtests/google_test/gtest/src/gtest-test-part.cc,
	gtests/google_test/gtest/src/gtest-typed-test.cc,
	gtests/google_test/gtest/src/gtest.cc,
	gtests/google_test/gtest/src/gtest_main.cc,
	gtests/google_test/gtest/test/BUILD.bazel,
	gtests/google_test/gtest/test/googletest-catch-exceptions-test_.cc,
	gtests/google_test/gtest/test/googletest-death-test-test.cc,
	gtests/google_test/gtest/test/googletest-death-test_ex_test.cc,
	gtests/google_test/gtest/test/googletest-env-var-test.py,
	gtests/google_test/gtest/test/googletest-env-var-test_.cc,
	gtests/google_test/gtest/test/googletest-failfast-unittest.py,
	gtests/google_test/gtest/test/googletest-failfast-unittest_.cc,
	gtests/google_test/gtest/test/googletest-filepath-test.cc,
	gtests/google_test/gtest/test/googletest-filter-unittest_.cc,
	gtests/google_test/gtest/test/googletest-global-environment-
	unittest.py, gtests/google_test/gtest/test/googletest-global-
	environment-unittest_.cc, gtests/google_test/gtest/test/googletest-
	json-output-unittest.py, gtests/google_test/gtest/test/googletest-
	list-tests-unittest_.cc, gtests/google_test/gtest/test/googletest-
	listener-test.cc, gtests/google_test/gtest/test/googletest-message-
	test.cc, gtests/google_test/gtest/test/googletest-options-test.cc,
	gtests/google_test/gtest/test/googletest-output-test-golden-lin.txt,
	gtests/google_test/gtest/test/googletest-output-test.py,
	gtests/google_test/gtest/test/googletest-output-test_.cc,
	gtests/google_test/gtest/test/googletest-param-test-invalid-
	name1-test_.cc, gtests/google_test/gtest/test/googletest-param-test-
	invalid-name2-test_.cc, gtests/google_test/gtest/test/googletest-
	param-test-test.cc, gtests/google_test/gtest/test/googletest-param-
	test-test.h, gtests/google_test/gtest/test/googletest-param-
	test2-test.cc, gtests/google_test/gtest/test/googletest-port-
	test.cc, gtests/google_test/gtest/test/googletest-printers-test.cc,
	gtests/google_test/gtest/test/googletest-setuptestsuite-test.py,
	gtests/google_test/gtest/test/googletest-setuptestsuite-test_.cc,
	gtests/google_test/gtest/test/googletest-shuffle-test_.cc,
	gtests/google_test/gtest/test/googletest-test-part-test.cc,
	gtests/google_test/gtest/test/googletest-test2_test.cc,
	gtests/google_test/gtest/test/googletest-throw-on-failure-test_.cc,
	gtests/google_test/gtest/test/gtest-typed-test2_test.cc,
	gtests/google_test/gtest/test/gtest-typed-test_test.cc,
	gtests/google_test/gtest/test/gtest-typed-test_test.h,
	gtests/google_test/gtest/test/gtest-unittest-api_test.cc,
	gtests/google_test/gtest/test/gtest_assert_by_exception_test.cc,
	gtests/google_test/gtest/test/gtest_environment_test.cc,
	gtests/google_test/gtest/test/gtest_help_test.py,
	gtests/google_test/gtest/test/gtest_list_output_unittest.py,
	gtests/google_test/gtest/test/gtest_list_output_unittest_.cc,
	gtests/google_test/gtest/test/gtest_pred_impl_unittest.cc,
	gtests/google_test/gtest/test/gtest_premature_exit_test.cc,
	gtests/google_test/gtest/test/gtest_repeat_test.cc,
	gtests/google_test/gtest/test/gtest_skip_check_output_test.py,
	gtests/google_test/gtest/test/gtest_skip_test.cc,
	gtests/google_test/gtest/test/gtest_stress_test.cc,
	gtests/google_test/gtest/test/gtest_test_utils.py,
	gtests/google_test/gtest/test/gtest_throw_on_failure_ex_test.cc,
	gtests/google_test/gtest/test/gtest_unittest.cc,
	gtests/google_test/gtest/test/gtest_xml_outfiles_test.py,
	gtests/google_test/gtest/test/gtest_xml_output_unittest.py,
	gtests/google_test/gtest/test/gtest_xml_output_unittest_.cc,
	gtests/google_test/gtest/test/gtest_xml_test_utils.py,
	gtests/google_test/gtest/test/production.h,
	gtests/google_test/update.sh,
	gtests/ssl_gtest/ssl_agent_unittest.cc:
	Bug 1741688 - Update googletest to 1.11.0 r=nss-reviewers,mt

	[88249e154a23]

2022-03-22  Dennis Jackson  <djackson@mozilla.com>

	* gtests/ssl_gtest/tls_ech_unittest.cc, lib/ssl/ssl3con.c,
	lib/ssl/sslexp.h, lib/ssl/sslimpl.h, lib/ssl/sslsock.c,
	lib/ssl/tls13ech.c, lib/ssl/tls13ech.h:
	Bug 1759525 - Add SetTls13GreaseEchSize to experimental API. r=mt

	[c2f93669b92c]

2022-03-22  Leander Schwarz  <lschwarz@mozilla.com>

	* gtests/ssl_gtest/ssl_version_unittest.cc,
	gtests/ssl_gtest/tls_filter.cc, gtests/ssl_gtest/tls_filter.h,
	lib/ssl/tls13con.c:
	Bug 1755264 - TLS 1.3 Illegal legacy_version handling/alerts.
	r=djackson

	[7d931c59d09f]

2022-03-22  Dennis Jackson  <djackson@mozilla.com>

	* lib/ssl/tls13ech.c:
	Bug 1755904 - Fix calculation of ECH HRR Transcript. r=mt

	[33c530e653b3]

2022-03-22  Zi Lin  <lziest@chromium.org>

	* coreconf/Linux.mk:
	Bug 1758741 - Allow ld path to be set as environment variable. r=mt

	Submitted on behalf of Zi Lin, the author of the patch.

	[d9368381598f]

2022-03-22  Dennis Jackson  <djackson@mozilla.com>

	* gtests/ssl_gtest/tls_connect.cc:
	Bug 1760653 - Ensure we don't read uninitialized memory in ssl
	gtests. r=mt,nss-reviewers

	[9a7b3c7f4e70]

	* cpputil/databuffer.h:
	Bug 1758478 - Fix DataBuffer Move Assignment. r=mt

	[f12fd43d69c7]

2022-03-18  Robert Relyea  <rrelyea@redhat.com>

	* automation/abi-check/expected-report-libnss3.so.txt, automation/abi-
	check/expected-report-libssl3.so.txt,
	gtests/ssl_gtest/ssl_auth_unittest.cc, lib/certdb/cert.h,
	lib/certdb/certdb.c, lib/nss/nss.def, lib/pk11wrap/pk11obj.c,
	lib/pk11wrap/pk11pub.h, lib/ssl/authcert.c, lib/ssl/ssl.def,
	lib/ssl/ssl.h, lib/ssl/ssl3con.c, lib/ssl/sslimpl.h,
	lib/ssl/sslsock.c, lib/ssl/tls13con.c, lib/ssl/tls13subcerts.c,
	mach, tests/ssl/ssl.sh, tests/ssl/sslauth.txt:
	Bug 1552254 internal_error alert on Certificate Request with
	sha1+ecdsa in TLS 1.3

	We need to be able to select Client certificates based on the
	schemes sent to us from the server. Rather than changing the
	callback function, this patch adds those schemes to the ssl socket
	info as suggested by Dana. In addition, two helpful functions have
	been added to aid User applications in properly selecting the
	Certificate: PRBool SSL_CertIsUsable(PRFileDesc *fd, CERTCertificate
	*cert) - returns true if the given cert matches the schemes of the
	server, the schemes configured on the socket, capability of the
	token the private key resides on, and the current policy. For future
	SSL protocol, additional restrictions may be parsed.
	SSL_FilterCertListBySocket(PRFileDesc *fd, CERTCertList *certlist) -
	removes the certs from the cert list that doesn't pass the
	SSL_CertIsUsable() call.

	In addition the built in cert selection function
	(NSS_GetClientAuthData) uses the above functions to filter the list.
	In order to support the NSS_GetClientAuthData three new functions
	have been added: SECStatus
	CERT_FilterCertListByNickname(CERTCertList *certList, char
	*nickname, void *pwarg) -- removes the certs that don't match the
	'nickname'. SECStatus CERT_FilterCertListByCertList(CERTCertlist
	*certList, const CERTCertlist *filterList ) -- removes all the certs
	on the first cert list that isn't on the second. PRBool
	CERT_IsInList(CERTCertificate *, const CERTCertList *certList) --
	returns true if cert is on certList.

	In addition
	 * PK11_FindObjectForCert() is exported so the token the cert lives on
	can be accessed.
	 * the ssle ssl_PickClientSignatureScheme() function (along with
	several supporing functions) have been modified so it can be used by
	SSL_CertIsUsable()

	[be6a97823bfe]

Differential Revision: https://phabricator.services.mozilla.com/D141995
2022-03-24 21:34:20 +00:00
Gijs Kruitbosch 6f2c4d3e07 Bug 1692655 - ensure loading reader mode in windows with an opener relationship creates a new BC, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D127172
2022-03-24 21:17:46 +00:00
Alexandre Lissy 4d20495df0 Bug 1761213 - Process bookkeeping needs to cover about:processes r=handyman,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D141946
2022-03-24 21:11:19 +00:00
Dimi dd6323c52b Bug 1655600 - P7. Make `focusUpdateSubmitForm` API easier to use r=sgalich,tgiles
Depends on D141486

Differential Revision: https://phabricator.services.mozilla.com/D141578
2022-03-24 21:09:27 +00:00
Dimi 8d5db2c751 Bug 1655600 - P6. Wait for "add" or "update" storage event if the test will update the storage. r=sgalich,tgiles
If a test will add or update cc records in the storage, but don't wait for the completion of the update action,
the remaining task of the test may run prior to the update is commited, which confuses the testcase.
For example, in many tests we call `removeAllRecords` when the test
ends, but the order might become:
1. First test runs, triggers an async task that updates the storage
2. End of the test we remove all records by calling `removeAllRecords()`
3. Real update of step1 happens
4. The next test runs, which doesn't expect there is any data in the
storage at this point.

This patch fixes this issue by waiting for storage change event for
tests that update the storage.

Depends on D141485

Differential Revision: https://phabricator.services.mozilla.com/D141486
2022-03-24 21:09:26 +00:00
Dimi 55936f20d6 Bug 1655600 - P5. Wait for autofill result r=sgalich,tgiles
We should wait for autofill result before continuing executing the task.

Depends on D141484

Differential Revision: https://phabricator.services.mozilla.com/D141485
2022-03-24 21:09:26 +00:00
Dimi 173c8ab681 Bug 1655600 - P4. Listen to multiple NotifyUsed events if a credit card is used multiple times r=sgalich,tgiles
Depends on D141483

Differential Revision: https://phabricator.services.mozilla.com/D141484
2022-03-24 21:09:26 +00:00
Dimi 84e7d40b0c Bug 1655600 - P3. Wait for doorhanger shown event before checking doorhanger states r=sgalich,tgiles
Depends on D141482

Differential Revision: https://phabricator.services.mozilla.com/D141483
2022-03-24 21:09:25 +00:00
Dimi c54a39694c Bug 1655600 - P2. Listen to FieldsIdentified event before submitting a form r=sgalich,tgiles
This patch adds an `focusUpdateSubmitForm` utility function.
We should use this function when we want to update elements in a form
and then submit the form. The function ensures the form is "identified"
by formautofill code while submitting.

Depends on D141481

Differential Revision: https://phabricator.services.mozilla.com/D141482
2022-03-24 21:09:25 +00:00
Dimi e2fa6999a1 Bug 1655600 - P1. Listen to popup open event before running a task that will open a popup. r=sgalich,tgiles
This patches adds `runAndWaitForAutocompletePopupOpen` utility function.
We should use this function when we expect a task will open an
autocomplete popup.

Differential Revision: https://phabricator.services.mozilla.com/D141481
2022-03-24 21:09:24 +00:00
Alexandre Poirot 799f3778e3 Bug 1719615 - [devtools] Merge existing wasm tests into a unique "features" test. r=bomsy,yury
The sourcemaps one was disabled.
In the new test, I'm now trying to assert the intermediate behavior of the debugger
when we haven't reloaded the page yet.
The test now also assert much more things about the content being displayed.
And also check for breakable lines.

Differential Revision: https://phabricator.services.mozilla.com/D141334
2022-03-24 21:03:42 +00:00
Alexandre Poirot 8072e8c62b Bug 1719615 - [devtools] Enable 'observeWasm' only once the debugger is opened. r=yury,bomsy
Because WASM debugging triggers different machine code with debugging instruction,
the memory usage very significantly increase.
So avoid enabling it until the debugger is opened.

Differential Revision: https://phabricator.services.mozilla.com/D140069
2022-03-24 21:03:41 +00:00
Yury Delendik b8128f1562 Bug 1719615 - Add observeWasm in addition to observeAsmJS. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D123626
2022-03-24 21:03:41 +00:00
dshin c5750e817c Bug 1757110 - Refactor `BCPaintBorderIterator::mBlockDirInfo` to use `mozilla::UniquePtr` r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D141989
2022-03-24 20:49:20 +00:00
Tom Ritter e686113f04 Bug 1760274: Do not crash in RFP mode if GetWrapper is null r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D141505
2022-03-24 20:18:28 +00:00
Iulian Moraru 92b62b9e23 Bug 1449575 - fix file-whitespace lint failures on WebGLContext.cpp. r=fix CLOSED TREE 2022-03-24 22:35:57 +02:00
Kelsey Gilbert 5362a1dd62 Bug 1449575 - Don't attempt ColorMask elision in WebGL. r=gfx-reviewers,aosmond
* Always use DoColorMask(u32?, u8) in webgl code.
* Handle OES_draw_buffers_indexed ColorMaski in GLBlitHelper.

Differential Revision: https://phabricator.services.mozilla.com/D141543
2022-03-24 19:39:06 +00:00
Kelsey Gilbert eac712f538 Bug 1449575 - Update fuzzing build docs. - r=jkratzer
* Remove mention of --enable-address-sanitizer, since it's not at all sufficient on its own. (Leave link to asan docs though)
* Clarify that ./mach gtest dontruntests is only needed for gtests. (I didn't need it for grizzly replays)

Differential Revision: https://phabricator.services.mozilla.com/D141542
2022-03-24 19:39:06 +00:00
Csoregi Natalia e236d42437 Backed out changeset 7b32aee78e60 (bug 1758369) for credit card issues. CLOSED TREE 2022-03-24 22:01:49 +02:00
Brad Werth 5140aa0b1e Bug 1760042: Update Win swgl test expectations for bt709.pc.yuv420p video. r=alwu
These Windows swgl tests no longer need the expanded fuzziness for asan or
beta builds. They can use the same fuzziness levels as other platforms.

Differential Revision: https://phabricator.services.mozilla.com/D141879
2022-03-24 19:24:28 +00:00
Dan Minor 37130e3638 Bug 1761085 - Check for existence of mEngine in mozSpellChecker; r=smaug
With the changes to EditorSpellCheck::SetFallbackDictionary to use a
promise chain to support calling either SetCurrentDictionaryFromList or
SetCurrentDictionaries as required, it is now possible that
RemoteSpellCheckEngineChild is destroyed by the time the second promise
runs. During destruction, RemoteSpellCheckEngineChild calls
mozSpellChecker::DeleteRemoteEngine, which sets mEngine to nullptr.
This patch adds a nullptr check for mEngine in both
SetCurrentDictionaryFromList and SetCurrentDictionaries.

Differential Revision: https://phabricator.services.mozilla.com/D141983
2022-03-24 19:23:56 +00:00
Michelle Goossens 7251e4d3f9 Bug 1760454 - Migrate remaining Android builds except shippable over from AWS to GCP r=jmaher,ahal
Differential Revision: https://phabricator.services.mozilla.com/D141876
2022-03-24 19:17:37 +00:00
Michelle Goossens 845e1a7633 Bug 1757602 - Migrate remaining Linux builds except shippable over from AWS to GCP r=jmaher,ahal
Differential Revision: https://phabricator.services.mozilla.com/D141875
2022-03-24 19:17:37 +00:00
Mozilla Releng Treescript d9779ca563 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
be -> e700f9dd8bc416c12932ff8791ba5d785be59610
de -> 5963870e6b36379854c4530f9c4315ffffca2211
fi -> 3c052ea6297ff6ba16defb8126542ba9caa08a95
fr -> a38702c83393a3faabbc14579eed4e97fb184cb3
fy-NL -> 0b98ef02020e83968b55b41a3bc8a2d2362a7036
hye -> 2766784220e1687682310ffd064320321385b480
id -> 812d5b8beedbff1f253966c8fa77eb84a5e6cf09
it -> fa85a175f1cb879f62b01a6c1a8895e6c9af2cc9
kab -> 136ef7bd57f91b6a1a9d90e913a37e307cc9d670
nl -> 0f6b3370294e0dcb5a15fc3fca7faefbb36c39d1
sk -> 338bb6bcca6d9c78fa45293b7dc60579e1e2ea3f
2022-03-24 19:02:59 +00:00
Jonathan Kew 6bbbf58763 Bug 1756468 - Add locking to gfxFont, to allow worker threads to do text shaping. r=lsalzman
We protect the shaped-word cache in each font with a RWLock, so that multiple threads can
shape in parallel using cached data; only when a new entry needs to be cached will we need
to take a write lock.

(To improve clarity, this patch also constifys a bunch of methods that do not mutate the
font instance.)

Differential Revision: https://phabricator.services.mozilla.com/D141473
2022-03-24 18:58:00 +00:00
alwu 68dd7e07df Bug 1759033 - no longer start or shutdown MediaFoundation explictly, and ensure the media foundation's life cycle long enough. r=bryce
According to [1], `MFShutdown` will shutdown the media foundation for every other call of `MFStartup`, which means it's possible to shutdown the media foundation even if other components are still using that.

Therefore, we should consider make the media foundation alive when the first time any component wants to use it, and shutdown it when the whole process destroys.

We already did similar thing on the RDD process [2] so it makes sense to do it as well on other places. Especially considering we will move the MFT decoder into the RDD process in the future, we definitely don't want an encoder incorrectly shutdown the media foundation the decoder is using.

Also, it saves time to call `MFStartup` if the media foundation is already started.

[1] https://docs.microsoft.com/en-us/windows/win32/api/mfapi/nf-mfapi-mfshutdown
[2] https://searchfox.org/mozilla-central/rev/eeeba8183d3268e0d563c2becf9f4adc21a37368/dom/media/ipc/RDDParent.cpp#111,303,315

Differential Revision: https://phabricator.services.mozilla.com/D140757
2022-03-24 18:56:16 +00:00
Olli Pettay 8b56e95458 Bug 1760007, use less frequent painting during page load only if there is something else to do. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D141923
2022-03-24 18:48:52 +00:00
Ryan VanderMeulen 106476ec17 Backed out changeset f4f7fa5023f3 (bug 1758540) for causing Fenix topcrashes and breaking UI tests. 2022-03-24 14:45:43 -04:00
Mark Banner 4f3bdad9cb Bug 1759452 - When querying snapshot groups, take into account hidden snapshots. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D141374
2022-03-24 18:44:27 +00:00
Mark Banner 4074be98b7 Bug 1759452 - Allow hiding snapshots within snapshot groups. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D141350
2022-03-24 18:44:27 +00:00
Alexis Beingessner 6540686e19 Bug 1758216 - update mozboot minidump-stackwalk to 0.10.2. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D141436
2022-03-24 18:24:32 +00:00
Brad Werth ca24fb4eb2 Bug 1751217 Part 5: Update test expectations. r=emilio
In addition to adding test support for dynamic-range and video-dynamic-range,
this expands tests of pixelDepth and colorDepth to allow 30 as an acceptable
value.

Differential Revision: https://phabricator.services.mozilla.com/D141307
2022-03-24 18:19:50 +00:00
Brad Werth ac55f07b1b Bug 1751217 Part 4: Make macOS declare video-dynamic-range: high with new-enough OS. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D141056
2022-03-24 18:19:50 +00:00
Brad Werth 37d4a36187 Bug 1751217 Part 3: Make HDR-capable macOS screens report 30 pixelDepth. r=mstange
This matches Chrome behavior. Our video-dynamic-range media query also relies
on this value being greater than 24 in order to report "high" level support.

Differential Revision: https://phabricator.services.mozilla.com/D141306
2022-03-24 18:19:50 +00:00
Tim Giles 25e651984e Bug 1758369 - Ensure credit card number has no whitespaces or dashes before trying to match type. r=dimi,sgalich
This fixes the cases where a website modifies the credit card number after it has been filled.

Differential Revision: https://phabricator.services.mozilla.com/D140858
2022-03-24 18:19:49 +00:00
Brad Werth 66f5f1c938 Bug 1751217 Part 2: Change nsDeviceContext::GetDepth to eliminate the outparam. r=emilio
This function always succeeds so there's no reason to maintain an nsresult.

Differential Revision: https://phabricator.services.mozilla.com/D141407
2022-03-24 18:19:49 +00:00