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

735598 Коммитов

Автор SHA1 Сообщение Дата
Narcis Beleuzu 01e345ebbb Backed out changeset 867bffcbc35a (bug 1605134) for causing bustages on backout. CLOSED TREE 2020-11-19 22:33:31 +02:00
Gijs Kruitbosch e12fbd0d7d Bug 1676326 - wait for about:newtab to actually load in browser_aboutNewTab_bookmarksToolbarEmpty.js, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D97560
2020-11-19 20:16:36 +00:00
Lars T Hansen e5731b6725 Bug 1678043 - Place nop-alignment for loop before the label. r=nbp
The nopAlign needs to come before the loop header is bound in Ion code.
I don't know if this bug has been there all along or was the result of
a later merge problem, but anyway it seems straightforward enough.

Differential Revision: https://phabricator.services.mozilla.com/D97543
2020-11-19 19:55:30 +00:00
Lars T Hansen d88cb098d2 Bug 1678049 - Fuse test and branch for testIAndBranch on ARM64. r=nbp
ARM64 is able to do a test-for-zero-and-branch in one instruction, and
branchTest32 will emit good code for that.  The code generation for
testIAndBranch should therefore use branchTest32, not separate test
and branch operations.

Differential Revision: https://phabricator.services.mozilla.com/D97542
2020-11-19 19:55:31 +00:00
Lars T Hansen da463afc21 Bug 1678049 - Use CBZ/CBNZ on ARM64 also for branchTest. r=nbp
The branchTest primitives can use CBZ/CBNZ just as easily as the branch primitives can.

Differential Revision: https://phabricator.services.mozilla.com/D97477
2020-11-19 19:55:29 +00:00
Lars T Hansen 1df6e0e75f Bug 1678049 - Use CBZ/CBNZ on ARM64 when we can. r=nbp
Arm64 has special instructions for compare-with-zero for equality/nonequality,
so use them when we can.  This makes code more compact, and may be a very small
speed win.

Differential Revision: https://phabricator.services.mozilla.com/D97454
2020-11-19 19:55:21 +00:00
Kris Wright 97e68c3664 Bug 1664916 - Add rosetta status for about:support r=fluent-reviewers,haik,Gijs
This commit adds a rosetta status to three different places:
- `nsSystemInfo`, to check for rosetta status per apple specifications. We also use the same check in `nsCocoaFeatures` in D89961.
- `Troubleshoot.jsm`, to add rosetta status data (should it exist) to use in about:support
- `About:Support` itself, if the device is running MacOS

Differential Revision: https://phabricator.services.mozilla.com/D94930
2020-11-19 18:22:15 +00:00
Michael Kaply b64bee299d Bug 1465847 - If a website is blocked via policy, block view source. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D94366
2020-11-19 19:42:14 +00:00
Jeff Muizelaar 80315bfb0a Bug 1678408 - Rename IntelHD3000 to IntelSandyBridge. r=aosmond
By default, anything we do for one Sandy Bridge gpu
we should do for all of them. See bug 1678388 for an
example of how we screwed this up.

Differential Revision: https://phabricator.services.mozilla.com/D97649
2020-11-19 19:30:46 +00:00
Ryan VanderMeulen 1e6e2573cf Bug 1678395 - Update libjpeg-turbo to 2.0.6. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D97641
2020-11-19 19:09:09 +00:00
Narcis Beleuzu 61193c6032 Backed out 16 changesets (bug 1666116, bug 1605134) for GTest failures on TestAudioTrackGraph . CLOSED TREE
Backed out changeset dba15089f5d3 (bug 1666116)
Backed out changeset c529b6732b08 (bug 1666116)
Backed out changeset 3225cdc96f82 (bug 1666116)
Backed out changeset 06ced7ee7c2c (bug 1666116)
Backed out changeset f65dbe0c4c64 (bug 1605134)
Backed out changeset dda7d98d3da7 (bug 1605134)
Backed out changeset 6fed7e4730c5 (bug 1605134)
Backed out changeset 9859d35abce6 (bug 1605134)
Backed out changeset e5fb448bbadf (bug 1605134)
Backed out changeset 3ef7199a547a (bug 1605134)
Backed out changeset c24bff49f331 (bug 1605134)
Backed out changeset f8612b562aa7 (bug 1605134)
Backed out changeset 0ba16e1f73ae (bug 1605134)
Backed out changeset 0736167ed294 (bug 1605134)
Backed out changeset 56ead9091c47 (bug 1605134)
Backed out changeset 841eedd33424 (bug 1605134)
2020-11-19 22:09:39 +02:00
Narcis Beleuzu 8551a905ba Backed out changeset 044d17174437 (bug 1649617) for xpcshell failure on test_TelemetrySend.js 2020-11-19 22:08:20 +02:00
Liz Krane e65db138f1 Bug 1650956 - browser.tabs.remove() now calls removeTabs(). r=robwu,Gijs
Removing multiple tabs via extensions now calls `gBrowser.removeTabs()`
once for each window that has tabs being removed. Also adds automated
browser tests for removing one tab or multiple tabs.

Differential Revision: https://phabricator.services.mozilla.com/D93438
2020-11-19 19:01:40 +00:00
Ricky Stewart 6d5379a8a7 Bug 1678048 - Fix type error in `desktop_unittest.py` r=ahal
In context the `dir` referenced here was the builtin `dir()` function, which is not appropriate to pass into `os.path.join()`. I've replaced it with what I think was intended.

Differential Revision: https://phabricator.services.mozilla.com/D97456
2020-11-19 15:38:35 +00:00
Kris Maglione e01b754b29 Bug 1672263: Use ThrowInvalidStateError with useful messages in JSWindowActorChild. r=nika
Currently, when JS callers try to access certain JSWindowActors before an
actor is initialized, or after it's destroyed, we throw a generic
`NS_ERROR_INVALID_STATE_ERROR` exception without any useful information about
the failure.

This patch changes that to use `ThrowInvalidStateError`, with a message
including the property name, the actor name, and details about whether the
error occurred because the actor has not been initialized or because it has
already been destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D96628
2020-11-10 22:04:49 +00:00
Kevin Jacobs 54a13dccf2 Bug 1677548 - land NSS 3eacb92e9adf UPGRADE_NSS_RELEASE, r=jcj
2020-11-18  Kevin Jacobs  <kjacobs@mozilla.com>

	* lib/ssl/ssl3con.c, lib/ssl/tls13con.c, lib/ssl/tls13ech.c:
	Bug 1654332 - Fixup a10493dcfcc9: copy ECHConfig.config_id with
	socket r=jcj

	A late review change for ECH was for the server to compute each
	ECHConfig `config_id` when set to the socket, rather than on each
	connection. This works, but now we also need to copy that config_id
	when copying a socket, else the server won't find a matching
	ECHConfig to use for decryption.

	[3eacb92e9adf] [tip]

2020-11-17  Kevin Jacobs  <kjacobs@mozilla.com>

	* automation/abi-check/expected-report-libssl3.so.txt,
	cmd/tstclnt/tstclnt.c, cpputil/tls_parser.h,
	gtests/ssl_gtest/libssl_internals.c,
	gtests/ssl_gtest/libssl_internals.h, gtests/ssl_gtest/manifest.mn,
	gtests/ssl_gtest/ssl_auth_unittest.cc,
	gtests/ssl_gtest/ssl_custext_unittest.cc,
	gtests/ssl_gtest/ssl_extension_unittest.cc,
	gtests/ssl_gtest/ssl_gtest.gyp,
	gtests/ssl_gtest/ssl_tls13compat_unittest.cc,
	gtests/ssl_gtest/tls_agent.cc, gtests/ssl_gtest/tls_agent.h,
	gtests/ssl_gtest/tls_connect.cc, gtests/ssl_gtest/tls_connect.h,
	gtests/ssl_gtest/tls_ech_unittest.cc,
	gtests/ssl_gtest/tls_esni_unittest.cc,
	gtests/ssl_gtest/tls_filter.cc, gtests/ssl_gtest/tls_filter.h,
	lib/ssl/SSLerrs.h, lib/ssl/manifest.mn, lib/ssl/ssl.gyp,
	lib/ssl/ssl3con.c, lib/ssl/ssl3ext.c, lib/ssl/ssl3ext.h,
	lib/ssl/ssl3exthandle.c, lib/ssl/ssl3exthandle.h,
	lib/ssl/ssl3prot.h, lib/ssl/sslencode.c, lib/ssl/sslencode.h,
	lib/ssl/sslerr.h, lib/ssl/sslexp.h, lib/ssl/sslimpl.h,
	lib/ssl/sslinfo.c, lib/ssl/sslsecur.c, lib/ssl/sslsock.c,
	lib/ssl/sslt.h, lib/ssl/tls13con.c, lib/ssl/tls13con.h,
	lib/ssl/tls13ech.c, lib/ssl/tls13ech.h, lib/ssl/tls13esni.c,
	lib/ssl/tls13esni.h, lib/ssl/tls13exthandle.c,
	lib/ssl/tls13exthandle.h, lib/ssl/tls13hashstate.c,
	lib/ssl/tls13hashstate.h:
	Bug 1654332 - Update ESNI to draft-08 (ECH). r=mt

	This patch adds support for Encrypted Client Hello (draft-ietf-tls-
	esni-08), replacing the existing ESNI (draft -02) support.

	There are five new experimental functions to enable this:

	 - SSL_EncodeEchConfig: Generates an encoded (not BASE64) ECHConfig
	given a set of parameters.
	  - SSL_SetClientEchConfigs: Configures the provided ECHConfig to the
	given socket. When configured, an ephemeral HPKE keypair will be
	generated for the CH encryption.
	  - SSL_SetServerEchConfigs: Configures the provided ECHConfig and
	keypair to the socket. The keypair specified will be used for HPKE
	operations in order to decrypt encrypted Client Hellos as they are
	received.
	  - SSL_GetEchRetryConfigs: If ECH is rejected by the server and
	compatible retry_configs are provided, this API allows the
	application to extract those retry_configs for use in a new
	connection.
	  - SSL_EnableTls13GreaseEch: When enabled, non-ECH Client Hellos will
	have a "GREASE ECH" (i.e. fake) extension appended. GREASE ECH is
	disabled by default, as there are known compatibility issues that
	will be addressed in a subsequent draft.

	The following ESNI experimental functions are deprecated by this
	update:

	 - SSL_EncodeESNIKeys
	  - SSL_EnableESNI
	  - SSL_SetESNIKeyPair

	 In order to be used, NSS must be compiled with
	`NSS_ENABLE_DRAFT_HPKE` defined.

	[a10493dcfcc9]

	* lib/ssl/ssl3con.c, lib/ssl/sslencode.c, lib/ssl/sslencode.h,
	lib/ssl/tls13con.c, lib/ssl/tls13con.h:
	Bug 1654332 - Buffered ClientHello construction. r=mt

	This patch refactors construction of Client Hello messages. Instead
	of each component of the message being written separately into
	`ss->sec.ci.sendBuf`, we now construct the message in its own
	sslBuffer. Once complete, the entire message is added to the sendBuf
	via `ssl3_AppendHandshake`.

	`ssl3_SendServerHello` already uses this approach and it becomes
	necessary for ECH, where we use the constructed ClientHello to
	create an inner ClientHello.

	[d40121ba59ba]

2020-11-13  J.C. Jones  <jjones@mozilla.com>

	* automation/abi-check/expected-report-libnss3.so.txt, automation/abi-
	check/expected-report-libnssutil3.so.txt, automation/abi-check
	/previous-nss-release, lib/nss/nss.h, lib/softoken/softkver.h,
	lib/util/nssutil.h:
	Set version numbers to 3.60 Beta
	[5e7b37609f22]

Differential Revision: https://phabricator.services.mozilla.com/D97492
2020-11-19 18:28:18 +00:00
Emma Malysz ef2eb4ce25 Bug 1649617, remove OS.File usages from ClientID.jsm r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D96753
2020-11-19 18:22:07 +00:00
Dão Gottwald e59d320d44 Bug 1676759 - Prevent long email address from making the Firefox Account pane overflow horizontally. r=eoger
Differential Revision: https://phabricator.services.mozilla.com/D97601
2020-11-19 18:08:39 +00:00
Dana Keeler eca2ce5152 Bug 1677399 - avoid re-downloading and re-processing CRLite filters/stashes that are already in cert_storage r=bbeurdouche
This patch uses nsICertStorage.hasPriorData() and a new local field on the
CRLite filter Remote Settings collection to avoid re-downloading and
re-processing CRLite filters and stashes that have already been put into
cert_storage.

Differential Revision: https://phabricator.services.mozilla.com/D97381
2020-11-19 18:04:22 +00:00
Gavin Lazar Suntop 219e358233 Bug 1678237 - compressing variants for LOS images r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D97633
2020-11-19 17:48:01 +00:00
Emilio Cobos Álvarez c839b29aa8 Bug 1676996 - Don't try to process-switch a remote frame to local. r=nika
The guess in comment 3 is basically right, here's the relevant bits that
happen in that trace in order:

[content] nsFrameLoaderOwner::ChangeRemotenessCommon:
  frame becomes remote for the content process.
[parent] WindowGlobalParent::SendMakeFrameLocal (mIsDocumentLoad=true)
[content] ContentChild::SendCloneDocumentTreeInto
[parent] ContentParent::RecvCloneDocumentTreeInto
[content] WindowGlobalChild::RecvMakeFrameLocal

So basically the source frame we're cloning is mid-switch-to-local:
local already from the parent process POV, but still remote for the
child.

I think ignoring the clone in this case is fine (which will make the
print iframe just about:blank).

I've decided it to handle it in ChangeRemoteness but I could also handle
it in RecvCloneDocumentTreeInto with a check like

    if (cp->GetRemoteType() == GetRemoteType())

or such I think. Let me know if you'd prefer that.

Differential Revision: https://phabricator.services.mozilla.com/D97144
2020-11-19 17:44:30 +00:00
Jamie Nicol 2bdda4c2d6 Bug 1677757 - Use GL_NEAREST filter when copying texture data with glBlitFramebuffer. r=kvark
Using GL_LINEAR was causing incorrect filtering to occur when copying
the RGBAF32 GPU cache texture on Mali, causing rendering
errors. Switching to GL_NEAREST fixes it.

This is the same bug as bug 1669960, which was believed at the time to
only affect Mali-Gxx. On further testing the bug affects Mali-Txxx
too. Bug 1669960 was worked around at the time by using
glCopyImageSubData instead of glBlitFramebuffer. However, we want to
avoid using glCopyImageSubData on Mali: on Mali-T due to performance
reasons, and on Mali-G due to indefinite hangs. Fixing this filtering
bug allows us to switch both sets of devices to always use
glBlitFramebuffer.

Differential Revision: https://phabricator.services.mozilla.com/D97558
2020-11-19 17:44:10 +00:00
alwu 2cb6478936 Bug 1674829 - part2 : add test. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D97506
2020-11-19 17:40:11 +00:00
alwu 20a5d55af7 Bug 1674829 - part1 : dispatch 'MozNoControlsBlockedVideo' to video control. r=Gijs
When autoplay media gets blocked, dispatch `MozNoControlsBlockedVideo` event to video control in order to show `click-to-play` icon.

Differential Revision: https://phabricator.services.mozilla.com/D97505
2020-11-19 17:31:13 +00:00
Lee Salzman 083abb7b12 Bug 1678192 - don't quantize UVs in planar texture lookups. r=jrmuizel
The SWGL fast-paths operate in terms of UVs that have already been quantized.
The quantized ivec2s were getting silently converted back to vec2s which were
then re-quantized inside the planar texture lookups. The quantization has been
moved as such to only now happen in the normal vec4 result paths as it should
have been in the first place, and the conversion constructor has been made
explicit to avoid this oversight in the future.

Differential Revision: https://phabricator.services.mozilla.com/D97539
2020-11-19 17:33:37 +00:00
Michael Goossens 85a266bedb Bug 1649590 - Convert XPIProvider.jsm to use IOUtils r=emalysz,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D97354
2020-11-19 17:37:18 +00:00
Andrew Osmond 4afdd0de9f Bug 1678061 - Properly detect OSX 11.0 / 10.16 for blocklist purposes. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D97561
2020-11-19 17:34:25 +00:00
ISHIKAWA, Chiaki c892462ee7 Bug 1677194 - Avoid accessing invalidated frame. r=emilio
MANUAL PUSH: Author doesn't use Phabricator.
2020-11-19 18:28:56 +01:00
Brad Werth d99446355a Bug 1625590 Part 4: Add a test of native font cache behavior on macOS. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D97237
2020-11-19 16:59:31 +00:00
Brad Werth d25cb8d593 Bug 1625590 Part 3: Make UnscaledFontGDI::GetFontDescriptor unilaterally return false. r=jrmuizel
Depends on D96478

Differential Revision: https://phabricator.services.mozilla.com/D97619
2020-11-19 17:01:54 +00:00
Brad Werth 7bd4cba91e Bug 1625590 Part 2: Make ScaledFontDWrite::GetFontFileName include the null terminator in the returned file name. r=jrmuizel
This ensures that CreateFromFontDescriptor gets the null-terminated WCHAR
that it expects.

Differential Revision: https://phabricator.services.mozilla.com/D96478
2020-11-19 16:59:31 +00:00
Brad Werth 295b2ec8d4 Bug 1625590 Part 1: Make DrawTargetRecording::FillGlyphs prefer sending font description over font data. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D96274
2020-11-19 00:45:46 +00:00
Robert Helmer 0feacd7e75 Bug 1678157 - collapse informational sections on about:ion on enrollment r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D97499
2020-11-19 09:31:59 +00:00
Csoregi Natalia baf3102105 Backed out changeset 88f6cae1d63f (bug 1674770) for causing build bustages. CLOSED TREE 2020-11-19 19:06:26 +02:00
Alexis Beingessner fa2a407bd0 Bug 1674770 - Update parking_lot to get RwLock fix. r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D97608
2020-11-19 16:47:35 +00:00
Jan Varga a19671cf78 Bug 1619592 - Remove unused EnsureStorageAndOriginIsInitialized method; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D65939
2020-11-19 15:42:19 +00:00
Jan Varga a6e62c857a Bug 1619592 - Replace EnsureStorageAndOriginIsInitialized with EnsureTemporaryOriginIsInitialized in dom/localstorage; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D97260
2020-11-19 15:42:11 +00:00
Jan Varga 113846d47d Bug 1619592 - Replace EnsureStorageAndOriginIsInitialized with EnsurePersistentOriginIsInitialized and EnsureTemporaryOriginIsInitialized in dom/simpledb; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D97259
2020-11-19 15:42:03 +00:00
Jan Varga f9fdb2de2a Bug 1619592 - Replace EnsureStorageAndOriginIsInitialized with EnsureTemporaryOriginIsInitialized in dom/cache; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D97258
2020-11-19 15:41:55 +00:00
Jan Varga fc8f82ce8a Bug 1619592 - Replace EnsureStorageAndOriginIsInitialized with EnsurePersistentOriginIsInitialized and EnsureTemporaryOriginIsInitialized in dom/indexedDB; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D97257
2020-11-19 15:41:47 +00:00
Jan Varga a959e7ff80 Bug 1619592 - Replace EnsureStorageAndOriginIsInitialized with EnsurePersistentOriginIsInitialized and EnsureTemporaryOriginIsInitialized in dom/quota; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D97256
2020-11-19 15:41:38 +00:00
Andreas Pehrson 9a68ee057c Bug 1605134 - Fix bustage.
D97403 got overtaken the gtest for AudioInputTrackDisabling. This fixes the
bustage that combination resulted in.

Differential Revision: https://phabricator.services.mozilla.com/D97606
2020-11-19 16:30:45 +00:00
Sylvestre Ledru a6033eb204 Bug 1678070 - mozlint/license: remove .hg from the exclude list r#linter-reviewers, hsivonen r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D97484
2020-11-19 15:57:15 +00:00
Andreas Pehrson ab4cd74058 Bug 1666116 - Pre-create the fake audio thread for timing sensitive tests. r=padenot
It has been observed on try to take a long time to start the fake audio thread.
On Mac it would regularly take around half a second. This patch mitigates that
start-up time being long by making sure the thread is already started.

Differential Revision: https://phabricator.services.mozilla.com/D97416
2020-11-19 15:50:34 +00:00
Andreas Pehrson c1e8d58aa8 Bug 1666116 - Avoid switching audio driver twice in audio-input gtests, for determinism. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D97415
2020-11-19 15:50:32 +00:00
Andreas Pehrson 09a151e7dd Bug 1666116 - Work around a static-analysis error causing bustages. r=padenot
It stems from Result<RefPtr<MockCubeb::AudioThreadAutoUnforcer>, nsresult> being a must-use type.
It boils down to:
/builds/worker/workspace/obj-build/dist/include/mozilla/Maybe.h:259:15: note:
  'union Union' is a must-use type because member 'val' is a must-use type
  'detail::MaybeStorage<Result<RefPtr<MockCubeb::AudioThreadAutoUnforcer>, nsresult>, false>::NonConstT'
  (aka 'Result<RefPtr<MockCubeb::AudioThreadAutoUnforcer>, nsresult>')
    NonConstT val;
              ^

Differential Revision: https://phabricator.services.mozilla.com/D97414
2020-11-19 15:50:09 +00:00
Andreas Pehrson ea27597884 Bug 1666116 - Account for fallback in NotifyWhenGraphStarted. r=padenot
Unittests using GoFaster mode may start iterating the audio driver faster before
its fallback has completed handover to the audio callback. This causes the
preSilenceSamples check to spike and the test fails.

Waiting for the fallback to finish handing over fixes this.

To accomodate this, this patch also constifies some methods as needed to check
InIteration() when const. It also waits for audio drivers to start per the above
in TestCrossGraphTrack as that test may otherwise exhibit this bug with bug
1605314 applied.

Differential Revision: https://phabricator.services.mozilla.com/D97413
2020-11-19 15:50:24 +00:00
Andreas Pehrson f5294190b5 Bug 1605134 - Fix review comments. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D97412
2020-11-19 15:49:54 +00:00
Alex Chronopoulos ece0dd7865 Bug 1605134 - Stop Fallback driver after the first audio callback. r=pehrsons
On an AudioCallback driver switch, a Fallback driver operates to run the graph
during the switch. The fallback driver is stopped when the
`AudioCallbackDriver::StateCallback` reports the started state. A device is
supposed to start right after the start callback but in OSX, bluetooth devices
can take several hundred milliseconds until the first audio callback arrives.

With this change, the fallback driver is kept alive until the first audio
callback. On first audio callback the Fallback driver is being requested to stop
and silence is returned. Fallback driver, in the next iteration, will run the
graph for last time and stop itself.

Differential Revision: https://phabricator.services.mozilla.com/D61616
2020-11-19 15:56:20 +00:00
Andreas Pehrson 6d1dba94e1 Bug 1605134 - Add gtest for slow starting devices. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D97411
2020-11-19 15:56:08 +00:00