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

802887 Коммитов

Автор SHA1 Сообщение Дата
Jon Coppeard 2e57400aee Bug 1779421 - Part 3: Add tests for expected module status and async evaluating state r=yulia
This adds a shell function 'clearModules' to clear all loaded modules, so that
tests can be insulated from one another.

Depends on D151834

Differential Revision: https://phabricator.services.mozilla.com/D151835
2022-07-28 09:08:28 +00:00
Jon Coppeard 79329cabf0 Bug 1779421 - Part 2: Fix reset of post order counter r=yulia
Adding tests (see next patch) revealed an off-by-one bug resetting the async
evaluation post order counter.

Differential Revision: https://phabricator.services.mozilla.com/D151834
2022-07-28 09:08:27 +00:00
Jon Coppeard 3256f27c2f Bug 1779421 - Part 1: Rework module AsyncEvaluation field to match the spec r=yulia
As per the lastest spec this now stays true after evaluation.

This patch keeps a very similar implemenatation and resets the field after
evaluation, except that we now report this special value as true rather than
false. We assert if we try and use get the sort order after this has happened.

We also reset the runtime counter in the same way as before.

Differential Revision: https://phabricator.services.mozilla.com/D151833
2022-07-28 09:08:27 +00:00
Christian Holler ebf55fd6a7 Bug 1781744 - Add missing null check in RecvSetDocumentDomain. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D152852
2022-07-28 08:34:47 +00:00
Kershaw Chang 5c8ac9f08f Bug 1781094 - Revert the some changes done in bug 1759745 and also try to take more output data, r=necko-reviewers,dragana
The problem in the previous change is that `mBrotli->mTotalOut` is not updated immediately. In the case that `nsUnknownDecoder` is involved in the listener chain and the result of `Brotli` decoder is `BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT`, `mBrotli->mTotalOut` is 0. In the end, when `nsHTTPCompressConv::OnStopRequest` is called by `nsUnknownDecoder` [1], an error code is set [2].
The safest way would be to revert the changes done in bug 1759745. However, to make the case in bug 1759745 work ( and also make `test_brotli_decoding.js` pass), we need to add another while loop and try to get more output data from the decoder.


[1] https://searchfox.org/mozilla-central/rev/d5edb4a4538657b7d691a41c00e6796a19ade6e7/netwerk/streamconv/converters/nsUnknownDecoder.cpp#778
[2] https://searchfox.org/mozilla-central/rev/d5edb4a4538657b7d691a41c00e6796a19ade6e7/netwerk/streamconv/converters/nsHTTPCompressConv.cpp#167

Differential Revision: https://phabricator.services.mozilla.com/D152729
2022-07-28 08:04:13 +00:00
George Koehler d690c61a8f Bug 1772090 - implement about:processes on OpenBSD r=glandium,jld,gerald
Differential Revision: https://phabricator.services.mozilla.com/D150338
2022-07-28 07:14:28 +00:00
Jan de Mooij 313a876ba3 Bug 1781242 part 10 - Mark JitContext MOZ_RAII, update a comment. r=iain
Depends on D152850

Differential Revision: https://phabricator.services.mozilla.com/D152851
2022-07-28 07:00:57 +00:00
Jan de Mooij 9e02d6347a Bug 1781242 part 9 - Store CompileRealm and CompileRuntime in the MacroAssembler. r=iain
This lets us replace relatively slow TLS lookups with a simple dereference.

This also removes the realm from `JitContext`. The runtime still has a few uses
in the MIR backend.

Depends on D152849

Differential Revision: https://phabricator.services.mozilla.com/D152850
2022-07-28 07:00:56 +00:00
Jan de Mooij ef28bd860c Bug 1781242 part 8 - Remove allocator from JitContext. r=iain
Depends on D152848

Differential Revision: https://phabricator.services.mozilla.com/D152849
2022-07-28 07:00:56 +00:00
Jan de Mooij c72a9f5100 Bug 1781242 part 7 - Remove Wasm-specific MacroAssembler constructor. r=iain
`MacroAssembler` now has a single constructor, instead of three different ones
before this patch stack.

Depends on D152847

Differential Revision: https://phabricator.services.mozilla.com/D152848
2022-07-28 07:00:56 +00:00
Jan de Mooij 83713580c5 Bug 1781242 part 6 - Always pass TempAllocator to MacroAssembler. r=iain
This follows the Wasm code and prepares for (a) removing the second `MacroAssembler`
constructor and (b) removing the allocator from `JitContext`.

Depends on D152846

Differential Revision: https://phabricator.services.mozilla.com/D152847
2022-07-28 07:00:55 +00:00
Jan de Mooij b589c33189 Bug 1781242 part 5 - Remove arm32/arm64 assembler buffer id. r=iain
This removes some old code to tag debug spew with an ID per assembler, based on a
counter stored in `JitContext`. Usually there's only one assembler per `JitContext` and
we were also not using this for Wasm compilations (it always used id 0), so this
patch removes it.

Depends on D152766

Differential Revision: https://phabricator.services.mozilla.com/D152846
2022-07-28 07:00:55 +00:00
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
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