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

764107 Коммитов

Автор SHA1 Сообщение Дата
Csoregi Natalia 9747c247ae Backed out changeset 540fd6bb70bd (bug 1693385) for failures on test_ext_webSocket.js. CLOSED TREE 2021-07-25 00:02:44 +03:00
Chris Peterson 5290d09c0f Bug 776669 - Add pinned tabs to the "List all tabs" drop-down list. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D98867
2021-07-24 17:56:52 +00:00
Benjamin Beurdouche a1a5fc3aa9 Bug 1720464 - land NSS e9236397be13 UPGRADE_NSS_RELEASE, r=beurdouche
```
2021-07-24  Benjamin Beurdouche  <bbeurdouche@mozilla.com>

	* doc/rst/build_artifacts.rst, doc/rst/community.rst,
	doc/rst/getting_started.rst, doc/rst/index.rst, doc/rst/more.rst,
	doc/rst/releases/index.rst, doc/rst/releases/nss_3_64.rst,
	doc/rst/releases/nss_3_65.rst, doc/rst/releases/nss_3_66.rst,
	doc/rst/releases/nss_3_67.rst, doc/rst/releases/nss_3_68.rst:
	Documentation: update and release notes for NSS 3.64 to 3.68
	[e9236397be13] [tip]

2021-07-20  Robert Relyea  <rrelyea@redhat.com>

	* gtests/ssl_gtest/nss_policy.h,
	gtests/ssl_gtest/ssl_auth_unittest.cc,
	gtests/ssl_gtest/ssl_extension_unittest.cc,
	gtests/ssl_gtest/tls_agent.cc, gtests/ssl_gtest/tls_agent.h,
	gtests/ssl_gtest/tls_connect.cc, lib/ssl/ssl3con.c,
	lib/ssl/sslimpl.h:
	Bug 1720235 SSL handling of signature algorithms ignores
	environmental invalid algorithms.

	Our QA is quite extensive on handling of alert corner cases. Our
	code that checks if a signature algorithm is supported ignores the
	role of policy. If SHA1 is turned off by policy, for instance, we
	only detect that late in the game. This shows up in our test cases
	as decrypt_alerts rather than illegal_parameter or handshake_error
	alerts. It also shows up in us apparently accepting a client auth
	request which only has invalid alerts.

	We also don't handle filtering out signature algorithms that are
	illegal in tls 13 mode.

	This patch not only fixes these issues, but also issues where we
	proposing signature algorithms in server mode that we don't support
	by policy.

	This patch includes:

	In gtests: 1) adding support for policy in ssl_gtests. Currently
	both the server an client will run with the same policy. The patch
	allows us to set policy on one and keeping the old policy on the
	other.

	2) Update extension tests which failed in tls 1.3 because the patch
	now correctly rejects illegal tls 1.3 auth values. The test was
	updated to use a legal auth value in tls 1.3 (so we are correctly
	testing the format issue.

	3) Update extension tests to handle the case where we try to use an
	illegal value for tls 1.3.

	4) add tests to ssl_auth_unittests.cc to make sure we can properly
	connect even when several auth methods are turned off by policy
	(make sure we don't advertize them on the client side, and that the
	server doesn't select them when the client doesn't advertize them).

	5) add tests to ssl_auth_unittests.cc to make sure we don't send
	empty client auth requests when the requester only sends invalid
	auth requests.

	patch itself: 1) The handling of policy checks for ssl schemes were
	scattered in various locations. I've consolidated them into a single
	function. That function now checks for NSS_ALG_USE_IN_ANY_SIGNATURE
	as if this is off by policy, we will fail if we try to use the
	algorithm in a signature in any case. NSS now supports policy on all
	signature algorithms, not just DSA, so we need to check the policy
	of all the algorithms.

	2) to support the policy check on the signature algorithms, I added
	a new ssl_AuthTypeToOID, which also replaces our switch in checking
	if the SPKI matches our auth type.

	 3) ssl_SignatureSchemeValid now accepts an spkiOid of
	SEC_OID_UNKNOWN. To allow us to filter signature schemes based on
	version and policy restrictions before we try to select a
	certificate. This prevents us from sending empty client auth
	messages when we are presented with only invalid signature schemes.

	4) We filter supported algorithms against policy early, preventing
	us from sending, or even setting invalid algorithms if they are
	turned off by policy.

	5) ssl ConsumeSignatureScheme was handling alerts inconsistently.
	The Consume could send an allert in it's failure case, but the check
	of scheme validity wouldn't sent an alert. The collers were
	inconstent as well. Now ssl_ConsumeSignatureScheme always sends and
	alert on failure, and the callers do not.

	[c71bb1bedf7d]
```

Differential Revision: https://phabricator.services.mozilla.com/D120787
2021-07-24 17:26:14 +00:00
Emilio Cobos Álvarez 9f65d4a846 Bug 1722031 - Tweak accent-color foreground computation and let it ride the trains. r=mstange
The accent-color computation right now chooses between black and white,
which is not ideal.

I tried to make it so that authors could choose the foreground colors in
the linked CSSWG issue from the comment, but that didn't go anywhere.

I think choosing a contrasting color that is in-line and contrasting
enough with the accent-color chosen by the page when darkening is better
than just black or white.

If we want the black-or-white behavior we can just change
layout.css.accent-color.target-contrast-ratio to something large enough.

https://accent-color.glitch.me/ is a nice playground to see this patch
in action.

Differential Revision: https://phabricator.services.mozilla.com/D120723
2021-07-24 13:30:25 +00:00
Emilio Cobos Álvarez 01317e823b Bug 1722031 - Fix RelativeLuminanceUtils::Adjust to not choke on blacks / zero components. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D120722
2021-07-24 13:30:25 +00:00
Emilio Cobos Álvarez 3f0667829d Bug 1722031 - Fix an accent-color test. r=mstange
No other property returns `currentcolor` in the computed style, and
Chrome agrees with us on this test.

Differential Revision: https://phabricator.services.mozilla.com/D120725
2021-07-24 12:55:39 +00:00
Tomislav Jovanovic 11f130af70 Bug 1693385 - Support manifest.host_permissions for MV3 r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D118305
2021-07-24 12:44:03 +00:00
Emilio Cobos Álvarez 38cb903038 Bug 1717873 - Move link color styles to ua.css. r=morgan
We expose these via CSS system colors, so this way we don't need to
rebuild the preference sheet when the link color is different.

Differential Revision: https://phabricator.services.mozilla.com/D120677
2021-07-24 12:05:30 +00:00
Jens Stutte 6c225e7975 Bug 1720568: Be more explicit about the WorkerPrivate self-reference. r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D120630
2021-07-24 10:04:55 +00:00
Jon Coppeard fffc51a40a Bug 1722010 - Filter reporting of allocation sites by the number of allocations r=sfink
When reporting information about pretenuring it's helpful to be able to filter
out allocation sites with few allocations.

Differential Revision: https://phabricator.services.mozilla.com/D120716
2021-07-24 08:10:24 +00:00
Jon Coppeard d147d58853 Bug 1722010 - Report minor GC reason and promotion rate with pretenuring info r=sfink
When reporting information about pretenuring, it's helpful to have the GC
reason and promotion rate.

Differential Revision: https://phabricator.services.mozilla.com/D120715
2021-07-24 08:10:24 +00:00
Randell Jesup ecb0c56479 Bug 1687843: PreallocatedProcessManager will return a launching process if one exists r=nika
Differential Revision: https://phabricator.services.mozilla.com/D118226
2021-07-24 03:25:59 +00:00
Michelle Goossens 9ee976c248 Bug 1722111 - Add win10_2004 to mozinfo to skip tests on new Win10 2004 images r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D120772
2021-07-23 23:24:00 +00:00
Ting-Yu Lin 20b3a83ec4 Bug 1674011 - Add a wpt crashtest for column-span and float. r=emilio
Bug 1671527 fixed the test that used to crash the release build.

Differential Revision: https://phabricator.services.mozilla.com/D120106
2021-07-23 22:52:06 +00:00
Ting-Yu Lin 6abef7f28c Bug 1671527 Part 4 - Add assertion to check a float containing block candidate is handled before processing its children. r=emilio
Call MaybePushFloatContainingBlock() before some of
ConstructFramesFromItemList()'s caller to enforce the invariant that a
float containing block candidate is handled before processing its
children. Most of them handle nsIFrame::eXULBox frame like nsMenuFrame
that forbid float descendants.

The assertion condition only requires us to call
MaybePushFloatContainingBlock() if aParentFrame forbids float
descendants or is a float containing block, because it is a waste if
aParentFrame has nothing to do with floats, e.g. aParentFrame is
nsInlineFrame or nsCanvasFrame.

Note: ProcessChildren() calls ConstructFramesFromItemList() internally,
so adding the assertion in ConstructFramesFromItemList() is sufficient.

Differential Revision: https://phabricator.services.mozilla.com/D120741
2021-07-23 22:52:06 +00:00
Ting-Yu Lin 9dddcd204f Bug 1671527 Part 3 - Reparent floats when creating non-column-span wrapper frames. r=emilio
When we are in CreateColumnSpanSiblings(), there are floats in
nsFrameConstructorState::mFloatedList that are waiting to be added to
aInitialBlock once we leave scope of the float containing block.
However, since we are creating non-column-span continuations, which are
continuations of aInitialBlock, we should reparent the floats to these
continuations if their placeholders are the descendants of the
newly-created continuations.

multicol-span-float-002.html exercises
nsCSSFrameConstructor::ConstructBlock() and multicol-span-float-003.html
exercises nsCSSFrameConstructor::CreateIBSiblings().

Without this patch, multicol-span-float-002.html and
multicol-span-float-003.html still pass, but they trigger

```
ASSERTION: nsBlockFrame::CheckFloats: Explicit float list is out of
sync with float cache
```

1524382.html used to trigger the above assertions. Now it's fixed.

Differential Revision: https://phabricator.services.mozilla.com/D120105
2021-07-23 22:52:05 +00:00
Ting-Yu Lin f842cc4b96 Bug 1671527 Part 2 - Make ProcessChildren()'s callers responsible for calling MaybePushFloatContainingBlock(). r=emilio
Before this patch, a floating containing block (block frame)'s float
descendants are added to its mFloatedList in
~nsFrameConstructorSaveState() after returning from ProcessChildren().

This patch delays that by avoiding calling
MaybePushFloatContainingBlock() in ProcessChildren(), and move the call
one level up to ProcessChildren()'s callers so that the float
descendants are parented to the block frame after leaving the callers.
This is similar to how we handle the scope of abspos containing block.

This surely adds burden to some of the ProcessChildren() callers, but it
also unifies the float containing block scope for those callers
utilizing both ConstructFramesFromItemList() and ProcessChildren().

This doesn't change the behavior for now, but it is required by the next
part to correctly reparent the float descendants to the correct
non-column-span block continuations split by column-span wrappers.

Differential Revision: https://phabricator.services.mozilla.com/D120104
2021-07-23 22:52:05 +00:00
Ting-Yu Lin 98cd412f2a Bug 1671527 Part 1 - Add MaybePushFloatContainingBlock() method. r=emilio
Extract a helper to consolidate the if-else-if logic dealing with float
containing block, and adapt the callers to use it rather than
PushFloatContainingBlock().

This patch shouldn't change the behavior.

Note: In ConstructTableCell(), `!isBlock` is equivalent to
ShouldSuppressFloatingOfDescendants(cellInnerFrame) since
nsMathMLmtdInnerFrame is of eMathML type, so it's OK to just call
MaybePushFloatContainingBlock().

Differential Revision: https://phabricator.services.mozilla.com/D120103
2021-07-23 22:52:04 +00:00
Joel Maher 0750a93f78 Bug 1722028 - fix partial compare to work in python3 when using ESR versions. r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D120737
2021-07-23 21:05:30 +00:00
Gijs Kruitbosch 8a51e12805 Bug 1722076 - stop loading previously-removed GeckoViewPromptChild.js from GeckoViewStartup.jsm, r=agi
Differential Revision: https://phabricator.services.mozilla.com/D120758
2021-07-23 20:07:50 +00:00
Nika Layzell c705251ce8 Bug 1719577 - Part 8: Remove some unused methods from MessageChannel, r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D119356
2021-07-23 19:14:59 +00:00
Nika Layzell 99a0665a8b Bug 1719577 - Part 7: Remove outdated comment, r=handyman
This comment refers to the old ProcessLink implementation, and was missed when
that implementation was removed.

Differential Revision: https://phabricator.services.mozilla.com/D119355
2021-07-23 19:14:58 +00:00
Nika Layzell 639ed70cb4 Bug 1719577 - Part 6: More consistently use the monitor during MessageChannel shutdown, r=handyman
This should make the logic around clearing a MessageChannel more obviously
correct by holding the mutex when accessing fields which are traditionally
guarded by the mutex. These lock calls shouldn't introduce performance issues
as the lock should be uncontended.

Differential Revision: https://phabricator.services.mozilla.com/D119354
2021-07-23 19:14:58 +00:00
Nika Layzell 93f8303221 Bug 1719577 - Part 5: Remove the now-unused `ChannelOpening` state, r=handyman
This state was only used by the ProcessLink MessageLink implementation, and no
longer exists with the new PortLink implementation, so can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D119353
2021-07-23 19:14:58 +00:00
Nika Layzell 30d790aee6 Bug 1719577 - Part 4: Hold the monitor for more of `MessageChannel::Open`, r=handyman
This simplifies some of the reasoning about when to hold locks by holding it
when setting all monitor-guarded fields.

Differential Revision: https://phabricator.services.mozilla.com/D119352
2021-07-23 19:14:57 +00:00
Nika Layzell 64fd825e97 Bug 1719577 - Part 3: Remove dead WaitForIncomingMessage function, r=handyman
This method is never called.

Differential Revision: https://phabricator.services.mozilla.com/D119351
2021-07-23 19:14:57 +00:00
Nika Layzell 0e37500335 Bug 1719577 - Part 2: Create mMonitor eagerly in MessageChannel's constructor, r=handyman
Now that PortLink is the only MessageLink implementation, it is no longer
necessary to support sharing a single `RefCountedMonitor` between multiple
MessageChannels, meaning that we can construct the monitor directly in the
`MessageChannel` constructor. The monitor still needs to be refcounted due to
being used by the PortLink as part of the listener implementation.

Differential Revision: https://phabricator.services.mozilla.com/D119350
2021-07-23 19:14:56 +00:00
Nika Layzell 488fc0d1be Bug 1719577 - Part 1: Use inline initializers for MessageChannel fields, r=handyman
This makes things generally more clear, and avoids a long list of initializers
in the MessageChannel constructor. In addition, some fields which are never
modified are marked as `const`.

Differential Revision: https://phabricator.services.mozilla.com/D119349
2021-07-23 19:14:56 +00:00
Tim Giles 405247cb61 Bug 1720608 - Extend credit card telemetry. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D120403
2021-07-23 18:50:23 +00:00
Mitchell Hentges 667cb6f4e9 Bug 1716613: Fix "'Process' has no attribute '_job'" r=ahal
`self._job` is conditionally set. However, when it's not set, then
`if self._job is None` raises an exception.

Rather than having to check for `hasattr(self, "_job")`, defaulting
`self._job` to `None` seems more elegant and resolves the issue.

Differential Revision: https://phabricator.services.mozilla.com/D120754
2021-07-23 18:45:47 +00:00
Kajal Sah e057cbc049 Bug 1719492 - Migrates screenshot icons into the browser/component/screenshots directory. r=emalysz
Depends on D118573

Differential Revision: https://phabricator.services.mozilla.com/D119540
2021-07-23 18:25:51 +00:00
Emily McDonough 9651a4d2c2 Bug 1720554 Part 1 - Remove the paper size variant of GenericPageSize and add an implied default to the paper size and orientation variant. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D119915
2021-07-23 18:11:16 +00:00
Jon Coppeard a2311ccb80 Bug 1721713 - Clamp next slice threshold to the incremental limit as happened previously r=sfink
In bug 1434542 I accidentally removed the part of
HeapThreshold::setSliceThreshold that clamped the threshold to the incremental
limit, causing these assertions to fail sometimes.

The use of uint64_t is because of potential overflow on 32 bit platforms as
commented in ToClampedSize().

Differential Revision: https://phabricator.services.mozilla.com/D120702
2021-07-23 17:48:51 +00:00
Jon Coppeard 96e702158d Bug 1721549 - Add JS::GCReason::FIRST_RESERVED_REASON r=sfink
Since this would be useful let's add it.

Differential Revision: https://phabricator.services.mozilla.com/D120707
2021-07-23 17:48:16 +00:00
Marian-Vasile Laza c03526cc1d Backed out changeset dc28d43a2814 (bug 1721640) for causing ebay Btime raptor failures. CLOSED TREE 2021-07-23 21:41:10 +03:00
Tom Ritter 561859278c Bug 1720342: Do not run logalloc tests for the CodeQL build r=glandium
The codeql initialization process causes a loop in allocator
initialization that results in the inability to issue open()
calls due to function interception having begun set-up but
not completing it.  (More details in bug.)

Differential Revision: https://phabricator.services.mozilla.com/D120521
2021-07-23 17:00:46 +00:00
Jeff Muizelaar 1194fe927f Bug 1722055 - Rename gfx.webrender.force-disabled. r=aosmond
Change the pref name in anticipation of removing it completely
to see what the fallout will be.

Differential Revision: https://phabricator.services.mozilla.com/D120735
2021-07-23 17:00:29 +00:00
Agi Sferro 9ddb8fe28a Bug 1719088 - Use document.exitFullscreen instead of traversing the tree. r=aklotz
We already have a method to do this in platform, let's use it.

Differential Revision: https://phabricator.services.mozilla.com/D120409
2021-07-23 16:54:15 +00:00
Gavin Lazar Suntop 49d51fcf01 Bug 1717891 - Spoc position pref r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D119435
2021-07-23 16:34:12 +00:00
Henrik Skupin 96a354322c Bug 1721148 - [remote] Report WebSocket handshake failures to the client. r=webdriver-reviewers,jgraham
When a WebSocket upgrade fails we currently do not
send any details of the error. As such it makes
it hard to figure out the real underlying issue.

Further some clients like curl are hanging and do
not immediately exit when the response has been
received. Specifying the Content-Length header
within the response fixes it.

Differential Revision: https://phabricator.services.mozilla.com/D120575
2021-07-23 16:12:32 +00:00
Harry Twyford 2cc0b8af44 Bug 1721452 - Delete keyframes database from Snapshots.jsm. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D120379
2021-07-23 15:51:19 +00:00
Rob Wu f0142800ab Bug 1720360 - Improve correctness of DownloadSource.toSerializable r=mak
Differential Revision: https://phabricator.services.mozilla.com/D120728
2021-07-23 15:42:34 +00:00
Karim Rahal 4d5eecd33f Bug 1669566 - Add cookieStoreId functionality to browser.download.download, browser.download.search, and browser.download.erase; add unit tests. r=robwu,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D119967
2021-07-23 15:13:37 +00:00
Thomas Wisniewski ba8f96b91d Bug 1713703 - Add a SmartBlock shim for MNet; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D120720
2021-07-23 15:06:46 +00:00
Dan Minor 26b1e33737 Bug 1715595 - Use char rather than uint8_t for utf-8 in unified components r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D120508
2021-07-23 14:58:00 +00:00
Sandor Molnar 4b66c66bb3 Backed out changeset f65eac9d5353 (bug 1721718) for causing sm build bustages. CLOSED TREE 2021-07-23 18:11:02 +03:00
Sandor Molnar aabb86e317 Backed out changeset 5b83a8f916aa (bug 1716736) for causing bc failures in NimbusTestUtils. CLOSED TREE 2021-07-23 17:57:04 +03:00
Ryan Hunt ff9151df3c Bug 1721718 - wasm: Add OOM checks on getOrCreatePrototype for wasm objects. r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D120533
2021-07-23 14:33:52 +00:00
Ryan Hunt d105003d3b Bug 1721721 - wasm: Remove duplicate import telemetry. r=jseward
This telemetry is no longer needed due to the CG's resolution
on duplicate imports.

Differential Revision: https://phabricator.services.mozilla.com/D120534
2021-07-23 14:33:28 +00:00
Andrei Oprea a0540e1a3c Bug 1716736 - Add schema validation for experiment enrollments in tests r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D118367
2021-07-23 14:23:10 +00:00