803126 Commits

Author SHA1 Message Date
Jan de Mooij
0930ca4c5c Bug 1781242 part 4 - Remove AutoJitContextAlloc.h and some references. r=iain
The `initWithAllocator` methods aren't doing much these days, so this
patch removes them too.

Differential Revision: https://phabricator.services.mozilla.com/D152766
2022-07-28 07:00:54 +00:00
Jan de Mooij
5415f259cc Bug 1781242 part 3 - Ensure JitContext always has an allocator. r=iain
With this patch we always pass a non-null allocator to the `JitContext` constructor,
and then never change it. Use references instead of pointers to make this clearer.

This lets us clean up more code: `AutoJitContextAlloc` can be removed and the
`MacroAssembler` no longer needs the constructor to optionally instantiate that
class.

Differential Revision: https://phabricator.services.mozilla.com/D152765
2022-07-28 07:00:54 +00:00
Jan de Mooij
36620a0954 Bug 1781242 part 2 - Remove MacroAssembler::jitContext. r=iain
One of the `MacroAssembler` constructors instantiates a `JitContext` lazily, but
it's simpler to require the callers to create a `JitContext`.

Differential Revision: https://phabricator.services.mozilla.com/D152763
2022-07-28 07:00:53 +00:00
Jan de Mooij
57a93481e8 Bug 1781242 part 1 - Remove support for nested JitContexts. r=iain
A long time ago, `JitContext` was also used for entering JIT code, but now we only
use it for the compiler backend where we don't need to support nesting.

This requires some minor changes to avoid having multiple active contexts on the
stack, but makes it easier to reason about.

Differential Revision: https://phabricator.services.mozilla.com/D152762
2022-07-28 07:00:53 +00:00
Mozilla Releng Treescript
643d099ff4 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
es-AR -> 1a049569b5cffdbd47059ec19515622b70c61579
hsb -> a6cfae37d942aba3b74a5a3cb10dc0dd61948126
ko -> 2ab5c2c1d4c85ca37ce1672ed66fdbe051b89da7
sv-SE -> af29d2163676f239012c131bcbf886112d66bf0d
tg -> 98a14627bd72b5d01bddae7c9ebd3570673eb835
zh-CN -> 027cde7bec47da164615407985a6820808d0e4fb
2022-07-28 06:59:04 +00:00
Sergey Galich
53fd3c2c76 Bug 1781162 - Upgrade toolkit/components/satchel/test/test_submit_on_keydown_enter.html r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D152927
2022-07-28 04:43:23 +00:00
Sergey Galich
70e90f6a98 Bug 1780898 - Upgrade toolkit/components/satchel/test/test_popup_direction.html r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D152584
2022-07-28 04:43:22 +00:00
Sergey Galich
bdc392f422 Bug 1780843 - Upgrade toolkit/components/satchel/test/test_popup_enter_event.html r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D152546
2022-07-28 04:43:22 +00:00
Sergey Galich
fcd9411d41 Bug 1642570 - capture only user input for Form History r=dimi
We can skip checks for `input.value != input.defaultValue` by using `lastInteractiveValue` which tells us what user typed in the field.

Differential Revision: https://phabricator.services.mozilla.com/D150990
2022-07-28 04:43:21 +00:00
az
2ffc814fca Bug 1781259 - 344.55 - 1.54% compiler_metrics num_static_constructors / compiler_metrics num_static_constructors + 6 more (Linux, Windows) regression on Sat July 23 2022 r=alwu
Remove XPCOM shutdown listener in MCSInfo, add asserts.

Smart pointers should handle deallocating hash table memory,

Differential Revision: https://phabricator.services.mozilla.com/D152954
2022-07-28 03:25:05 +00:00
Iulian Moraru
04f48d5fb6 Backed out changeset 9ced13a92244 (bug 1757054) for causing crashtest failures on 1757054.html. CLOSED TREE 2022-07-28 04:38:39 +03:00
Tooru Fujisawa
de340512f3 Bug 1779988 - Part 2: Add ESLint rule that rejects multiple ChromeUtils.defineESModuleGetters call on the same object. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152880
2022-07-28 00:54:20 +00:00
Tooru Fujisawa
bf159ca171 Bug 1779988 - Part 1: Merge multiple ChromeUtils.defineESModuleGetters calls into one. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152879
2022-07-28 00:54:20 +00:00
Ryan VanderMeulen
7458cb1257 Bug 1773103 - Remove the unused findhelper.autozoom pref. r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D152925
2022-07-28 00:32:55 +00:00
Ryan VanderMeulen
d22a40b4fd Bug 1773062 - Remove the unused direct-texture.force.disabled and direct-texture.force.enabled prefs. r=geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D152924
2022-07-28 00:32:55 +00:00
Steve Fink
8ed65b842f Bug 1772638 - make nsJSContext::MaybePokeGC trigger EAGER_ALLOC_TRIGGER major GCs
Differential Revision: https://phabricator.services.mozilla.com/D152950
2022-07-27 23:03:28 +00:00
Steve Fink
07e0016fe5 Bug 1774733 - Allow AllocPolicy to determine Vector growth policy, and be aggressive about StringBuilder allocation strategy to reduce memcpy'ing. r=jandem
Condition computeGrowth behavior on existence of AP::computeGrowth<S> method

Differential Revision: https://phabricator.services.mozilla.com/D151674
2022-07-27 22:59:51 +00:00
Hiroyuki Ikezoe
25fb45fac2 Bug 1334575 - Treat active duration larger than INT64_MAX as infinite. r=boris
We store active duration as int64_t, multiplying a finite duration by a finite
iteration count would result over INT64_MAX, it will be represented as a
negative integer value. Both animation duration and interation count should
never be negative, thus multiplying them also should be positive so that
treating such kind of overflowed values as infinite would be more reasonable
than treating it as negative.

Differential Revision: https://phabricator.services.mozilla.com/D152721
2022-07-27 22:57:34 +00:00
Masayuki Nakano
bf2ccc8872 Bug 1780140 - Make HTMLEditor::ClearStyleAt clean up new empty inline elements which are not contain new text r=m_kato
Currently, `HTMLEditor` assumes that padding `<br>` element for empty last line
is outside of inline elements, but it may happen because of both:
* starting from bug 1778091, `HTMLEditor` move `<br>` element into new empty
inline elements at inserting new paragraph.
* web apps can put it into inline elements.

After splitting inline elements and which do not have meaningful content, users
cannot put caret into the empty inline elements so that the elements stay unless
delete around there.

For avoiding the leak due to meaningless elements, we should delete them at
splitting inline elements at inserting new text.

Note that Chrome does not pass the new tests of resetting ancestor bold style
because Chrome wraps the `<b>` with `<i>`, however, the `<i>` has odd
`style=""`.  Perhaps, the test framework should ignore it because it's not
important for the web-compatibility.

On the other hand, Chrome completely fails only the last testcase since it
unwraps the `<b>` from the last `<br>`, so the bold style which was applied by
the web app to the last `<br>` is lost.  This is not reasonable.

Differential Revision: https://phabricator.services.mozilla.com/D152616
2022-07-27 22:51:18 +00:00
Yury Delendik
eccaaac4fa Bug 1780814 - Add fast path for same-instance call_ref. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D152821
2022-07-27 22:45:40 +00:00
Ryan Hunt
5b07c7d827 Bug 1781425 - wasm: Remove baldrdash. r=jseward,supply-chain-reviewers
The baldrdash integration of Cranelift is agreed between SM and CL
to be the wrong shape. Our import of the code base is also old and
causes difficulties for us when upgrading some crates (see bug
1774829). We should remove it for now to unblock bug 1774829.

Differential Revision: https://phabricator.services.mozilla.com/D152806
2022-07-27 22:30:17 +00:00
Ting-Yu Lin
f101e2077d Bug 1464761 Part 4 - Remove nsReflowStatus::mTruncated bit. r=dholbert
In the description of the mTruncated bit, its purpose is the same as calling
SetInlineLineBreakBeforeAndReset(). We've removed all its usages in previous
patches, so the bit is no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D151461
2022-07-27 21:55:18 +00:00
Ting-Yu Lin
0a6b4c7ebb Bug 1464761 Part 3 - Remove IsTruncated() in nsColumnSetFrame::ReflowChildren(). r=dholbert
In nsReflowStatus::UpdateTruncated(), mTruncated can be true only when
mIsTopOfPage is false. However, when we reflow -moz-column-content, we always
set mIsTopOfPage to true. Therefore, IsTruncated() always returns false, i.e.
`!IsTruncated()` is always true.

Differential Revision: https://phabricator.services.mozilla.com/D151460
2022-07-27 21:55:17 +00:00
Ting-Yu Lin
50b0c4bcfd Bug 1464761 Part 2 - Remove IsTruncated() in nsTableRowFrame::ReflowCellFrame(). r=dholbert
We call NS_FRAME_SET_TRUNCATION (via nsReflowStatus::UpdateTruncated) in the end
of every frame's Reflow() to update nsReflowStatus::mTruncated bit. In the
following patches, I'm going to rewrite all the callers of IsTruncated(), and
ultimately remove the mTruncated bit.

In this patch, I rewrite the callsite in ReflowCellFrame() by moving
nsReflowStatus::UpdateTruncated logic [1] into it. Note that we use an assertion
in ReflowCellFrame to make sure nsTableRowFrame and nsTableCellFrame have the
same writing-mode.

The only test covering the code path is `layout/reftests/bugs/409084-1a.html`.

[1] https://searchfox.org/mozilla-central/rev/2946e9b450cb35afaf8dad927a8d187975dcd74d/layout/generic/nsIFrame.cpp#256-258

Differential Revision: https://phabricator.services.mozilla.com/D151459
2022-07-27 21:55:17 +00:00
Ting-Yu Lin
31f785b94b Bug 1464761 Part 1 - Remove IsTruncated() in FlowAndPlaceFloat(). r=dholbert
Add a wpt print test that catches an accidental behavior change for a previous
version of this patch.

Differential Revision: https://phabricator.services.mozilla.com/D151458
2022-07-27 21:55:17 +00:00
Iulian Moraru
5d58f81a68 Merge mozilla-central to autoland on a CLOSED TREE 2022-07-28 00:46:05 +03:00
Iulian Moraru
2bbb0c0a90 Merge autoland to mozilla-central. a=merge 2022-07-28 00:43:09 +03:00
James Teh
9287821f55 Bug 1780713: Fix a11y exposure of checkable XUL buttons/toolbarbuttons. r=eeejay
1. Expose role TOGGLE_BUTTON without the CHECKABLE state.
2. Fire a state change event when the button is toggled.

Differential Revision: https://phabricator.services.mozilla.com/D152486
2022-07-27 21:35:17 +00:00
Jesse Schwartzentruber
b0933cde7b Bug 1769798 - Return nullptr on ASan allocator commitment error. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D152934
2022-07-27 21:28:52 +00:00
Joel Maher
17107a0b65 Bug 1779985 - adjust mouse position before each mochitest bc manifest. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D152933
2022-07-27 21:20:20 +00:00
Sean Feng
779174ab03 Bug 1778492 - Move origin-trial mochitests to its own directory r=Standard8
This avoids adding the .eslintrc.js file to bypass
`no-undef` rule.

Differential Revision: https://phabricator.services.mozilla.com/D152563
2022-07-27 20:33:20 +00:00
Sean Feng
288cbe9f46 Bug 1778492 - Add an origin trial for coep: credentialless r=emilio,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D151381
2022-07-27 20:33:19 +00:00
Glenn Watson
bda035b7f5 Bug 1757054 - Ensure line decoration cache tasks are at least 1x1 r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D152829
2022-07-27 20:13:44 +00:00
William Durand
e10c07e3fe Bug 1780771 - Do not allow panel to be shown in customization mode. r=rpl
Depends on D152401

Differential Revision: https://phabricator.services.mozilla.com/D152508
2022-07-27 20:12:38 +00:00
William Durand
ca4e603ef2 Bug 1777484 - Allow to close unified extensions panel programmatically. r=rpl,Gijs
I also tried to defer the loading of the panel when it is about to be
open for the first time.

Differential Revision: https://phabricator.services.mozilla.com/D152401
2022-07-27 20:12:38 +00:00
Tim Huang
a856348150 Bug 1773703 - Part 2: Adding a test for ensuring the email tracking event is recorded properly. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D152681
2022-07-27 20:07:53 +00:00
Tim Huang
5af3ff36e4 Bug 1773703 - Part 1: Record email tracking events to ContentBlockingLog. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D152680
2022-07-27 20:07:53 +00:00
Tim Huang
daef272528 Bug 1773702 - Adding Content Blocking Event flags for email tracking protection. r=dimi
This patch adds a new Content Blocking Eveent flag and modifies the
current email tracking event flag. This would allow us to log the
loading of email tracker in two levels. The level 1 email tracker
contains the base list of the email trackers, The level 2 email tracker
contains both base and content email trackers.

Differential Revision: https://phabricator.services.mozilla.com/D152679
2022-07-27 20:07:53 +00:00
Ray Kraesig
a63e2430bf Bug 1716727 - [3/3] make stalling behavior conditional on process type r=glandium
For now, make Set_XREProcessType set a flag in mozjemalloc to avoid
stalling repeatedly in auxiliary processes.

Differential Revision: https://phabricator.services.mozilla.com/D151332
2022-07-27 19:54:36 +00:00
Ray Kraesig
44a45dc8a5 Bug 1716727 - [2/3] OOM handling: stall and retry r=glandium,gsvelto
Implement a drop-in-replacement wrapper for `VirtualAlloc` which, rather
than returning immediately on failure, instead `::Sleep()`s and retries.

This will cause performance regressions in some (presumed-uncommon)
circumstances; this wrapper is therefore only enabled in Nightly, to
collect data on its efficacy and on the severity of those regressions.

Differential Revision: https://phabricator.services.mozilla.com/D150619
2022-07-27 19:54:36 +00:00
Ray Kraesig
ca8b982e11 Bug 1716727 - [1/3] Drive-by cleanup: clang-tidy nitpicks r=glandium
Some trivially-resolvable nitpicks pointed out by clang-tidy.

Differential Revision: https://phabricator.services.mozilla.com/D150618
2022-07-27 19:54:35 +00:00
Jed Davis
4552fc73a3 Bug 1779312 - Replace uses of strerror in Linux sandbox code. r=glandium
`strerror` is async signal unsafe, and we're using it in contexts where
that's a problem: in particular in the child process after `clone()`ing,
where it can deadlock if it takes locks the parents' other threads had
held (or cause other undefined behavior), but also in the SIGSYS handler
if it's nested inside an async signal.  It's also thread-unsafe.

This is mostly a mechanical replacement with the new `SANDBOX_LOG_ERRNO`
or `SANDBOX_LOG_WITH_ERROR`; two messages had the error string in the
middle and have been adjusted.

Differential Revision: https://phabricator.services.mozilla.com/D152099
2022-07-27 19:41:05 +00:00
Jed Davis
05621d57dc Bug 1779312 - Add macros for Linux sandbox logging with an error code. r=glandium
This adds two new logging macros, which are intended to be async signal
safe:

* `SANDBOX_LOG_ERRNO`, which appends the error similarly to `perror` but
   uses the error identifier (e.g., `EINVAL` instead of `Invalid argument`).
   Unlike `perror`, formatting directives are available as for `SANDBOX_LOG`.

* `SANDBOX_LOG_WITH_ERROR` is the same thing but the error number is the
  first argument instead of using `errno`; this is useful for newer POSIX
  APIs which return an error number.

This will be used in the next patch to replace the existing use of
`strerror`, which is not async signal safe (or thread-safe).

Differential Revision: https://phabricator.services.mozilla.com/D152098
2022-07-27 19:41:05 +00:00
Jed Davis
fd918ffb96 Bug 1779312 - Rename SANDBOX_LOG_ERROR to just SANDBOX_LOG. r=glandium
Originally this was written for B2G and used the Android logging
facility, which (like syslog) includes a severity level.  However, all
current usage is on desktop where we just write to stderr, and there was
never much demand to add support for any log levels besides "error".

More importantly for the current situation, renaming the macro to
`SANDBOX_LOG` avoids confusion between `SANDBOX_LOG_ERROR` and
`SANDBOX_LOG_ERRNO` (or `SANDBOX_LOG_ERROR_ERRNO` or whatever).

Differential Revision: https://phabricator.services.mozilla.com/D152097
2022-07-27 19:41:04 +00:00
Jed Davis
4fb97a1c3d Bug 1779312 - Preliminary fixes to some misuses of SANDBOX_LOG_ERROR. r=glandium
Two minor things I noticed while converting the existing sandbox logging:

1. One call site was using %u, but that doesn't exist in this printf
   dialect, only %d; signedness is determined by the actual argument
   type via template magic.

2. POSIX functions that return an error number just return the number;
   there was one place that was negating it before use, as if it had
   come from the Linux syscall ABI.

Differential Revision: https://phabricator.services.mozilla.com/D152096
2022-07-27 19:41:04 +00:00
Edgar Chen
cdad5df9d3 Bug 1776790 - Stop exposing the length of argument list of ChromeOnly constructor to non-chrome context; r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D152467
2022-07-27 19:28:55 +00:00
Jim Blandy
610404dcde Bug 1779829: Replace Shmem::PrivateIPDLCaller with friend specifiers. r=nika
Instead of using the public member type `PrivateIPDLCaller` to
restrict access to certain `Shmem` member functions, make them
`private`, and designated `IProtocol` and `ITopLevelProtocol` as
friends of `Shmem`.

Differential Revision: https://phabricator.services.mozilla.com/D151952
2022-07-27 19:13:02 +00:00
Razvan Cojocaru
e31680bb58 Bug 1751510 - Zoom gesture can not be performed at the same time as a pan gesture. r=botond
And add mochitest for pinching and panning in the same gesture.

Differential Revision: https://phabricator.services.mozilla.com/D151689
2022-07-27 19:05:53 +00:00
Mozilla Releng Treescript
7f1754cfcc no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
dsb -> f3c8eb27f24d113694d1444c8b4566536a2607bb
el -> ca0564ad78683e20d9a23e81eac76527fab4b38e
hsb -> 1d5146cea08d05bcd513143cbc874a60132d926a
it -> 874190d874e24fba23a0e9a192a88137762ef04f
nn-NO -> a987351b60f4a883ce1840e5630258374c5252bc
pt-PT -> 5001949cc37443d717c6b3cf2ff70a2b0b6bfac2
tg -> 51e2882e89ae332cf8fda401d82f55a991d0c1e9
2022-07-27 19:05:46 +00:00
Thomas Wisniewski
17a35ba498 Bug 1779490 - follow up patch to correctly enable the www.lapresse.ca firebase fix; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152919
2022-07-27 18:19:56 +00:00