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

718388 Коммитов

Автор SHA1 Сообщение Дата
Severin 692d34c418 Bug 1641413 - show all UNs from domain in the username field of the password manager doorhanger;r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D80674
2020-07-16 22:58:46 +00:00
Severin ecd179eec0 Bug 1652737 - fix misaligned pmgr doorhanger dropmarker on windows;r=bdanforth
Differential Revision: https://phabricator.services.mozilla.com/D83712
2020-07-16 23:41:19 +00:00
Severin e233b6f5aa Bug 1653116 - change pmgr doorhanger dropmarker icon;r=bdanforth
Differential Revision: https://phabricator.services.mozilla.com/D83705
2020-07-16 23:41:01 +00:00
Kevin Jacobs 4e97e34c45 Bug 1649545 - land NSS ca068f5b5c17 UPGRADE_NSS_RELEASE, r=jcj
2020-07-16  Billy Brumley  <bbrumley@gmail.com>

	* lib/freebl/ecl/ecl-priv.h, lib/freebl/ecl/ecl.c,
	lib/freebl/ecl/ecp_secp521r1.c, lib/freebl/freebl_base.gypi,
	lib/freebl/manifest.mn:
	Bug 1631583 - ECC: constant time P-521 r=kjacobs,rrelyea,bbeurdouche

	This portable code contributed by the Network and Information
	Security Group (NISEC) at Tampere University comes from:

	[ECCKiila](https://gitlab.com/nisec/ecckiila) that uses
	[Fiat](https://github.com/mit-plv/fiat-crypto) for the underlying
	field arithmetic.

	Co-authored-by: Luis Rivera-Zamarripa <luis.riverazamarripa@tuni.fi>
	Co-authored-by: Jesús-Javier Chi-Domínguez
	<jesus.chidominguez@tuni.fi>

	[ca068f5b5c17] [tip]

	* lib/freebl/ecl/ecl-priv.h, lib/freebl/ecl/ecl.c,
	lib/freebl/ecl/ecp_secp384r1.c, lib/freebl/freebl_base.gypi,
	lib/freebl/manifest.mn, tests/ec/ectest.sh:
	Bug 1631583 - ECC: constant time P-384 r=bbeurdouche,rrelyea

	This portable code contributed by the Network and Information
	Security Group (NISEC) at Tampere University comes from:

	[ECCKiila](https://gitlab.com/nisec/ecckiila) that uses
	[Fiat](https://github.com/mit-plv/fiat-crypto) for the underlying
	field arithmetic.

	Co-authored-by: Luis Rivera-Zamarripa <luis.riverazamarripa@tuni.fi>
	Co-authored-by: Jesús-Javier Chi-Domínguez
	<jesus.chidominguez@tuni.fi>

	[d19a3cd451bb]

2020-07-13  Robert Relyea  <rrelyea@redhat.com>

	* lib/pk11wrap/pk11pub.h:
	Bug 1643528 Cannot compile code with nss headers and -Werror=strict-
	prototypes r=kjacobs
	[01ffd8fef7fa]

2020-07-10  Daiki Ueno  <dueno@redhat.com>

	* gtests/ssl_gtest/ssl_auth_unittest.cc, lib/ssl/ssl3con.c,
	lib/ssl/ssl3exthandle.c, lib/ssl/sslimpl.h,
	lib/ssl/tls13exthandle.c:
	Bug 1646324, advertise rsa_pkcs1_* schemes in CH and CR for certs,
	r=mt

	Summary: In TLS 1.3, unless "signature_algorithms_cert" is
	advertised, the "signature_algorithms" extension is used as an
	indication of supported algorithms for signatures on certificates.
	While rsa_pkcs1_* signatures schemes cannot be used for signing
	handshake messages, they should be advertised if the peer wants to
	to support certificates signed with RSA PKCS#1.

	This adds a flag to ssl3_EncodeSigAlgs() and ssl3_FilterSigAlgs() to
	preserve rsa_pkcs1_* schemes in the output.

	Reviewers: mt

	Reviewed By: mt

	Bug #: 1646324

	[df1d2695e115]

2020-07-09  Benjamin Beurdouche  <bbeurdouche@mozilla.com>

	* gtests/pk11_gtest/pk11_pbkdf2_unittest.cc, lib/pk11wrap/pk11pbe.c:
	Bug 1649648 - Fix null pointers passed as argument in
	pk11wrap/pk11pbe.c:886 r=kjacobs

	[de661583d467]

Differential Revision: https://phabricator.services.mozilla.com/D83824
2020-07-16 22:37:42 +00:00
Paul Bone 1bbc19607d Bug 1626507 - pt 4. Fix openPreferencesViaOpenPreferencesAPI r=preferences-reviewers,jaws
Due to changes in about:newtab somehow the preferences code is getting
initialised before the call to openPreferencesViaOpenPreferencesAPI().
Update this code to work when preferences is already initialised.

Differential Revision: https://phabricator.services.mozilla.com/D81067
2020-07-16 08:27:24 +00:00
Paul Bone c657b9caa9 Bug 1626507 - pt 3. Rename a test to make it distinct from other tests r=preferences-reviewers,jaws
Two tests in this file had the same name, give this one a more specific name
so that console output is easier to follow.

Differential Revision: https://phabricator.services.mozilla.com/D81066
2020-07-16 05:30:46 +00:00
Paul Bone 80549aeb4c Bug 1626507 - pt 2. Update comment since code has moved r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D80594
2020-07-16 05:30:39 +00:00
Paul Bone 650a260021 Bug 1626507 - pt 1. Remove documentchannel exceptions r=mattwoodrow
This patch removes the excemptions for about:newtab, about:home and
about:blank.

When we switch processes using session restore we sometimes focus the
content area. We mustn't do this if the uri is undefined, this can happen
for some of these pages and we expect the address bar to be focused instead.

Differential Revision: https://phabricator.services.mozilla.com/D80339
2020-07-16 05:30:31 +00:00
Gerald Squelart db28bc0ab0 Bug 1648324 - Add timeout when waiting for child profiles - r=canaltinova
Knowing the time it takes for the parent process to gather its profile, we expect sub-processes not to take longer than twice that time (plus a bit more).
Each time we receive a profile, the timer is restarted* to allow more time for pending processes.
If the most current timer fires, we assume that pending processes may be frozen and unable to ever respond, so we use all profiles gathered so far.
(There is currently no indication to the user that processes are missing, this should be added in the future.)

* Tech detail: We just cancel the current timer and forget about it, then start a new one and keep track of it. When a timer fires, we can compare its address to the address of the last (most current) timer, and only that one can force the end of profile-gathering.

Differential Revision: https://phabricator.services.mozilla.com/D83626
2020-07-16 22:56:57 +00:00
Mark Striemer 2027ee64c6 Bug 1652627 - Setup a pref for tab modal print UI r=Gijs,sfoster
This creates the print.modal_print_preview.enabled pref to manage
whether the tab modal print UI should be used and creates some
files we'll need for the UI to use.

Differential Revision: https://phabricator.services.mozilla.com/D83445
2020-07-16 22:16:22 +00:00
Dzmitry Malyshau 9ebf2f339d Bug 1647918 - Refactor the clip task assignment logic in WR r=gw
There were cases where the clip task generation considered a primitive
to be invisible, while the rest of the code proceeded with an assumption
that the clip task was created.

Differential Revision: https://phabricator.services.mozilla.com/D82121
2020-07-12 20:33:01 +00:00
Logan Smyth 10f4503b38 Bug 1652625 - Drop predecessor/successor Debugger.Script functions. r=arai
These 2 functions were added for WebReply and are thus unused now that it has
been removed from the codebase.

Differential Revision: https://phabricator.services.mozilla.com/D83444
2020-07-16 22:31:29 +00:00
Logan Smyth f09b8d1fb6 Bug 1652624 - Part 2: Avoid direct getPrivate usage on debugger children. r=arai
Calling `getPrivate` directly spreads implementation details of the Debugger
wrapper types across multiple files in a way that is ugly and complicates the
implementation. We can easily avoid that by making the existing referent
functions public.

Differential Revision: https://phabricator.services.mozilla.com/D83443
2020-07-16 22:31:27 +00:00
Logan Smyth d1cbf77927 Bug 1652624 - Part 1: Explicitly access owner slot for debugger child types. r=arai
There's no reason for all of the debugger's wrapper types to share an OWNER
slot definitions. Only a single callsite in the codebase runs on a generic
JSObject*, and that site _already_ immediately refines the object into an
explicit child type right after it gets the owner, so reordering the code
allows us to rely on the wrapper types to define their own functions for
getting the owner value.

Differential Revision: https://phabricator.services.mozilla.com/D83442
2020-07-16 22:31:25 +00:00
Logan Smyth d6638917fa Bug 1652623 - Make onGarbageCollection debuggers an explicit list. r=arai
Currently we iterate over all debuggers to find the ones that have a hook to
call. This is not ideal because we do extra iteration for no reason and also
because it makes the GC hook unlike any other type of hook. The GC hook is
conceptually a runtime-wide hook just like 'onNewGlobal', so this patch
changes the GC hook implementation to use the same approach as that hook.

Differential Revision: https://phabricator.services.mozilla.com/D83440
2020-07-16 22:29:31 +00:00
Dale Harvey 321521cfd5 Bug 1651124 - Enable region cachebusting on release r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D83780
2020-07-16 14:09:00 +00:00
Cameron McCormack c9ce840ad8 Bug 1652120 - Initialize local variable in PresShell::CreateRangePaintInfo. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D83739
2020-07-16 06:37:51 +00:00
Masayuki Nakano f97dcee20c Bug 1651874 - part 10: Move `GetReplaceRangeDataAtEndOfDeletionRange()` and `GetReplaceRangeDataAtStartOfDeletionRange()` to `TextFragmentData` r=m_kato
With this patch, the creation cost of `TextFragmentData` is minimized, but
`MakeSureToKeepVisibleStateOfWhiteSpacesAroundDeletingRange()` can work
with the latest DOM tree information at touching start of the deleting range
even after touching end of the range.

Depends on D83228

Differential Revision: https://phabricator.services.mozilla.com/D83229
2020-07-16 16:41:00 +00:00
Masayuki Nakano 58cf70f8ca Bug 1651874 - part 9: Make `MakeSureToKeepVisibleStateOfWhiteSpacesAroundDeletingRange()` correct delete range when it modifies the DOM tree at end of deleting range r=m_kato
This is what the original method should've done.  Mutation event listeners may
change the DOM tree at the first modification, but it hasn't checked whether
the range to delete or replace around start of deleting range is still valid
or not.

Depends on D83226

Differential Revision: https://phabricator.services.mozilla.com/D83228
2020-07-16 13:40:36 +00:00
Masayuki Nakano 35e5829194 Bug 1651874 - part 8: Make helper methods of `MakeSureToKeepVisibleStateOfWhiteSpacesAroundDeletingRange()` return replace or delete data r=m_kato
For representing delete or replace data which have the range and replace string,
this patch creates `ReplaceRangeDataBase` class which is stack-only, has
`EditorDOMRange` or `EditorDOMRangeInTexts` as the range and has replace string
which can be empty string.

Then, `MakeSureToKeepVisibleStateOfWhiteSpacesAroundDeletingRange()` should
modify the DOM tree by itself.  With the following patch, the behavior is
corrected for multiple DOM tree changes.

Depends on D83224

Differential Revision: https://phabricator.services.mozilla.com/D83226
2020-07-16 12:24:21 +00:00
Masayuki Nakano 5cd974a324 Bug 1651874 - part 7: Rename `ReplaceASCIIWhiteSpacesWithOneNBSP()` to `ReplaceTextAndRemoveEmptyTextNodes()` r=m_kato
Depends on D83223

Differential Revision: https://phabricator.services.mozilla.com/D83224
2020-07-16 05:54:41 +00:00
Masayuki Nakano 2d02a70bfb Bug 1651874 - part 6: Make the last blocks of `MakeSureToKeepVisibleStateOfWhiteSpacesAtEndOfDeletingRange()` and `MakeSureToKeepVisibleStateOfWhiteSpacesAtStartOfDeletingRange()` use early-return style r=m_kato
Depends on D83221

Differential Revision: https://phabricator.services.mozilla.com/D83223
2020-07-16 03:41:00 +00:00
Masayuki Nakano 111b0ccc2e Bug 1651874 - part 5: Make `MakeSureToKeepVisibleStateOfWhiteSpacesAtEndOfDeletingRange()` and `MakeSureToKeepVisibleStateOfWhiteSpacesAtStartOfDeletingRange()` stop collecting all data first r=m_kato
Depends on D83220

Differential Revision: https://phabricator.services.mozilla.com/D83221
2020-07-16 03:40:23 +00:00
Masayuki Nakano b48a53e99f Bug 1651874 - part 4: Get rid of check of out of range in `MakeSureToKeepVisibleStateOfWhiteSpacesAtEndOfDeletingRange()` and `MakeSureToKeepVisibleStateOfWhiteSpacesAtStartOfDeletingRange()` r=m_kato
Depends on D83219

Differential Revision: https://phabricator.services.mozilla.com/D83220
2020-07-16 02:12:26 +00:00
Masayuki Nakano affa364e8c Bug 1651874 - part 3: Remove unnecessary variables in `MakeSureToKeepVisibleStateOfWhiteSpacesAtEndOfDeletingRange()` and `MakeSureToKeepVisibleStateOfWhiteSpacesAtStartOfDeletingRange()` r=m_kato
Depends on D83218

Differential Revision: https://phabricator.services.mozilla.com/D83219
2020-07-15 15:05:37 +00:00
Masayuki Nakano f0994f25cd Bug 1651874 - part 2: Get rid of unnecessary blocks in `MakeSureToKeepVisibleStateOfWhiteSpacesAtEndOfDeletingRange()` and `MakeSureToKeepVisibleStateOfWhiteSpacesAtStartOfDeletingRange()` r=m_kato
Depends on D83217

Differential Revision: https://phabricator.services.mozilla.com/D83218
2020-07-15 15:05:12 +00:00
Masayuki Nakano 743a2e3ea9 Bug 1651874 - part 1: Duplicate the definition of `MakeSureToKeepVisibleStateOfWhiteSpacesAroundDeletingRange()` r=m_kato
This patch is preparation for easier to review.

This patch duplicates the body of
`MakeSureToKeepVisibleStateOfWhiteSpacesAroundDeletingRange()` and calls the
copies from new `MakeSureToKeepVisibleStateOfWhiteSpacesAroundDeletingRange()`.
The one is for handling start of deleting range, and the other is for handling
end of deleting range.

As you see, this patch and the following patches do not work because of the
duplicated code.  Perhaps, part 2 works if there is no mutation event listeners.
Part 9 works even if there is mutation event listeners which touch the DOM
tree in the worst case (when it touches both end of delete range and start of
delete range, and around the start of deleting range is modified by JS).
Finally, part 9 takes back the original performance.

Depends on D82715

Differential Revision: https://phabricator.services.mozilla.com/D83217
2020-07-15 15:04:54 +00:00
Cameron McCormack ec3a51f08d Bug 1620467 - Part 12: Hide range and number-input appearance values from content. r=emilio
Forgot to follow up on these two remaining non-standard values that may have
been being used to reset a <meter> or <input type=number> back to its
original appearance, but which telemetry showed no usage of.

Differential Revision: https://phabricator.services.mozilla.com/D83598
2020-07-16 22:04:38 +00:00
Cameron McCormack dbda1613e6 Bug 1620467 - Part 11: Re-order Appearance values. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83437
2020-07-16 22:04:31 +00:00
Cameron McCormack f2744d489b Bug 1620467 - Part 10: Make remaining appearance values behave like auto. r=emilio
This includes all of the <compat-auto> values, plus menulist-button,
which doesn't behave any differently from menulist currently.

Differential Revision: https://phabricator.services.mozilla.com/D83436
2020-07-16 22:04:28 +00:00
Cameron McCormack 9f7843cb34 Bug 1620467 - Part 9: Make `appearance: textfield` behave like auto except on search and number inputs. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83435
2020-07-16 22:04:26 +00:00
Cameron McCormack 557d0316a9 Bug 1620467 - Part 8: Make `appearance: button` behave like auto on various elements. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83434
2020-07-16 22:04:24 +00:00
Cameron McCormack 4de7c62706 Bug 1620467 - Part 7: Avoid exposing `appearance: range-thumb` to content. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83433
2020-07-16 22:04:21 +00:00
Cameron McCormack 7794182b6d Bug 1620467 - Part 6: Mark appearance values that are only used internally as chrome-only. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83432
2020-07-16 22:04:17 +00:00
Cameron McCormack af3cb9efc8 Bug 1620467 - Part 5: Remove appearance values not used by the browser or Web content. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83431
2020-07-16 22:04:14 +00:00
Cameron McCormack dd61f595eb Bug 1620467 - Part 4: Change internal uses of -moz-appearance to appearance and -moz-default-appearance. r=emilio,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,ntim,agi,miketaylr
Uses of `-moz-appearance: none` are changed to `appearance: none`.

Uses of other values that are simply reverting the appearance back to
its default are changed to `appearance: auto`.

Uses of values in UA sheets that are defining the inherent appearance of
widgets are changed to:

  appearance: auto;
  -moz-default-appearance: <value>;

since those values are either no longer supported on (-moz-)appearance,
or are still supported but only in some limited form.

There are some uses of `-moz-appearance: textfield` on <input
type=number> elements that are renamed to `appearance: textfield`.

Differential Revision: https://phabricator.services.mozilla.com/D83430
2020-07-16 22:04:14 +00:00
Cameron McCormack 1fe732d979 Bug 1620467 - Part 3: Defer to -moz-default-appearance when appearance is auto. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83429
2020-07-16 22:04:12 +00:00
Cameron McCormack 1739610d9a Bug 1620467 - Part 2: Add unprefixed appearance property and make -moz-appearance and -webkit-appearance be aliases. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83428
2020-07-16 22:04:11 +00:00
Cameron McCormack 4e13fec003 Bug 1620467 - Part 1: Remove appearance use counters. r=emilio
They have served their purpose.

Differential Revision: https://phabricator.services.mozilla.com/D83427
2020-07-16 22:03:54 +00:00
Dan Minor 459301b96c Bug 1652552 - Remove remaining application capture code; r=jib
Differential Revision: https://phabricator.services.mozilla.com/D83491
2020-07-16 19:16:20 +00:00
Adam Vandolder 4a7c519a9b Bug 1653280 - Support yield* in self-hosted code. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D83809
2020-07-16 18:06:34 +00:00
Razvan Maries 2af0f9a132 Backed out 4 changesets (bug 1648851) for perma failues on test_2_conformance2__glsl3__matrix-row-major-dynamic-indexing.html and test_2_conformance__state__gl-get-calls.html. CLOSED TREE
Backed out changeset 2d2686a389dc (bug 1648851)
Backed out changeset e05b2f2fdbb2 (bug 1648851)
Backed out changeset b576e680a9fa (bug 1648851)
Backed out changeset 901f16e24a60 (bug 1648851)
2020-07-17 02:19:47 +03:00
Razvan Maries e1a6f1c2ce Backed out 7 changesets (bug 1578042) for perma failures on TimeStamp.h. CLOSED TREE
Backed out changeset ff727e9821be (bug 1578042)
Backed out changeset 94159598ab2a (bug 1578042)
Backed out changeset e26e1db6309b (bug 1578042)
Backed out changeset 0e658297a2ba (bug 1578042)
Backed out changeset 035199ba3d5a (bug 1578042)
Backed out changeset 0306fe17b5aa (bug 1578042)
Backed out changeset b0d63daa5d60 (bug 1578042)
2020-07-17 02:09:40 +03:00
Kris Maglione 5cad4b348e Bug 1652849: Use NotifyWhenScriptSafe for some additional observers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D83845
2020-07-16 20:44:51 +00:00
Gabriele Svelto 607f4a838e Bug 1633052 - Generate minidumps when encountering heap corruption exceptions on Windows r=dmajor
This patch adds a vectored exception handler to catch STATUS_HEAP_CORRUPTION
exceptions on Windows. Previously these crashes would terimnate the affected
process without generating a minidump. For child process crashes the user would
be notified of the crash but could not report them. Main process crashes on the
other hand would close Firefox abruptly without any sort of feedback to the
user.

Note that this type of exceptions are originated from Windows default memory
allocator which we replace with jemalloc. As such they're unlikely to be thrown
from our code, but are frequently encountered when dealing with injected DLLs
and other external components.

Differential Revision: https://phabricator.services.mozilla.com/D83753
2020-07-16 21:48:17 +00:00
Keefer Rourke 871fa78568 Bug 1653177: Fix minGW build failure due to use of missing identifiers r=Yoric,barret
This patch attempts to fix the permanent win mingw build failure caused
by use of the undeclared identifiers 'S_IFLNK' and 'S_IFSOCK' in
dom/system/OSFileConstants.cpp

These identifiers are only ever declared on Unix systems (Linux, macOS,
Android, etc.), so the `ifdef` guard around the use of these constants
has been updated appropriately.

Differential Revision: https://phabricator.services.mozilla.com/D83844
2020-07-16 21:46:38 +00:00
Lee Salzman c50a68e57e Bug 1645123 - avoid trapping instructions on Skia debug asserts. r=jrmuizel
clang may potentially insert trapping instructions when __builtin_unreachable() is used.
We need to ensure we do not use this intrinsic when asserts are disabled. To work around
this, we add a condition that is checked before entering the body of SK_ABORT.

Differential Revision: https://phabricator.services.mozilla.com/D83841
2020-07-16 19:56:29 +00:00
Dana Keeler 0ca7b665de Bug 1653029 - pass a span of bytes to RootCABinNumber instead of NSS types r=rmf,kjacobs
PSM internals are currently tightly-copuled with NSS data types. In many cases
this is unnecessary, because PSM often needs only a sequence of bytes (in the
case of certificates, for example). This tight coupling can also have
performance and architectural impacts. For example, thread contention for NSS
resources has caused performance issues in the past. This patch starts the
process of avoiding using these types as much as possible in PSM.

More specifically, RootCABinNumber can take a Span<uint8_t> instead of a
SECItem. Instead of taking a PK11SlotInfo (which essentially requires having a
CERTCertificate), we can use PK11_FindEncodedCertInSlot to see if the
certificate exists on a small number of specific slots to achieve the same
effect as before. Doing this should eventually allow us to avoid creating a
CERTCertificate, which implicitly involves searching all slots on all modules.

Differential Revision: https://phabricator.services.mozilla.com/D83682
2020-07-16 21:17:53 +00:00
Edgar Chen 86341ec4ef Bug 1653214 - Part 2: Remove nsIBaseWindow::Create; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D83767
2020-07-16 20:42:20 +00:00
Edgar Chen beeae4cb08 Bug 1653214 - Part 1: Merge implementations of nsDocShell::Create into nsDocShell::InitWindow; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D83766
2020-07-16 20:42:02 +00:00