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

802591 Коммитов

Автор SHA1 Сообщение Дата
Bryan Thrall 6cf08032de Bug 1773324 - Remove dead JSContext methods for helper threads r=arai
addPendingCompileError() is replaced by OffThreadErrorContext::reportError().

Differential Revision: https://phabricator.services.mozilla.com/D152191
2022-07-25 18:57:38 +00:00
Bryan Thrall e383aad833 Bug 1773324 - Support off-thread delazification using ErrorContext r=arai
Moving recordErrors in DelazifyTask::Create() to after the allocation of the
task allows us to use the ErrorContext in the task to store the errors instead
of having to move them into the task later, and we only miss the allocation of
the task itself (which wasn't recorded in the errors anyway).

Differential Revision: https://phabricator.services.mozilla.com/D151878
2022-07-25 18:57:37 +00:00
Bryan Thrall f0f1c10999 Bug 1773324 - Clean up unneeded code r=arai
Differential Revision: https://phabricator.services.mozilla.com/D151671
2022-07-25 18:57:37 +00:00
Bryan Thrall a353cfec13 Bug 1773324 - Rename onAllocationOverflow() to match naming of onOutOfMemory() r=arai
Differential Revision: https://phabricator.services.mozilla.com/D151670
2022-07-25 18:57:37 +00:00
Bryan Thrall 9a842ede2c Bug 1773324 - Add ErrorContext::hadErrors() and organize methods r=arai
hadErrors() is more descriptive than `errors().empty()`.

Access to the pending errors list is pushed down to OffThreadErrorContext,
because that's the only context where it is used.

Differential Revision: https://phabricator.services.mozilla.com/D151669
2022-07-25 18:57:36 +00:00
Bryan Thrall 48498bb4b0 Bug 1773324 - Simplify reporting errors to ErrorContext r=arai
At the cost of moving the filled-in CompileError into the allocated space for OffThreadErrorContext.

Differential Revision: https://phabricator.services.mozilla.com/D151668
2022-07-25 18:57:36 +00:00
Bryan Thrall c9608c3249 Bug 1773324 - Rename MainThreadErrorContext r=arai
"GenericErrorContext" hasn't been an appropriate name since 5d4105313417.

Differential Revision: https://phabricator.services.mozilla.com/D151667
2022-07-25 18:57:35 +00:00
Bryan Thrall 76652a56df Bug 1773324 - Move implementations for ErrorContext to their own file r=arai
Differential Revision: https://phabricator.services.mozilla.com/D151612
2022-07-25 18:57:35 +00:00
Bryan Thrall 160d72b8c9 Bug 1773324 - Fix typo r=arai
Differential Revision: https://phabricator.services.mozilla.com/D151611
2022-07-25 18:57:35 +00:00
Bryan Thrall 574a8de705 Bug 1773324 - Access ErrorAllocator via ErrorContext accessor r=arai
This removes a lot of plumbing allocators through function parameters but still
maintains the ErrorContext and allocator as separate concepts.

At this point, there is no need for the type or instances of ErrorContext and
ErrorAllocator to vary independently.

Differential Revision: https://phabricator.services.mozilla.com/D151610
2022-07-25 18:57:34 +00:00
Bryan Thrall c6b87869db Bug 1773324 - Remove template from ErrorAllocator, add ErrorContext::getAllocator(), rename OffThreadErrorContext::linkWithJSContext() r=arai
ErrorAllocator was only ever used with ErrorContext, so no need for templating.

linkWithJSContext() better describes what it is doing, since JSContext needs its
errors_ field filled in, at least until we can replace it with a different
allocator for functions that are called during compilation.

getAllocator() is a convenience so we don't have to add a separate allocator
parameter everywhere we pass an ErrorContext and also need an allocator.

Differential Revision: https://phabricator.services.mozilla.com/D151609
2022-07-25 18:57:34 +00:00
Bryan Thrall a83c42b086 Bug 1773324 - Remove ErrorReporting dependency on JSContext for GC-safe callback r=arai
ReportErrorVA(), ReportErrorNumberVA(), and ReportErrorNumberUCArray(), and
ReportErrorNumberUTF8Array() use JSContext for rooting, so they will have to be
called from the main thread. The only reason to pass ErrorContext to them would
be for consistency with the other error reporting functions.

Differential Revision: https://phabricator.services.mozilla.com/D151608
2022-07-25 18:57:33 +00:00
Bryan Thrall 43ad49bda4 Bug 1773324 - Replace ErrorReporting allocator with ErrorAllocator r=arai
ErrorAllocator is an adapter that allows MallocProvider to delegate
to polymorphic Contexts. MallocProvider provides a well-known interface,
but doesn't support polymorphism, so we resort to templating and adapters
like this.

JS::CharsToNewUTF8CharsZ() needs a definition in CharacterEncoding.cpp,
so for now I explicitly instantiate it for ErrorAllocator<JSContext>.
A better solution would be to move the definition to a header, but that's
a bigger task.

Differential Revision: https://phabricator.services.mozilla.com/D151179
2022-07-25 18:57:33 +00:00
Bryan Thrall 29bcf1e310 Bug 1773324 - Add test covering reporting off-thread compilation errors r=arai
Differential Revision: https://phabricator.services.mozilla.com/D150648
2022-07-25 18:57:33 +00:00
Bryan Thrall 4c2554fef9 Bug 1773324 - Report errors from ParseTask back to JSContext r=arai
OffThreadErrorContext::setAllocator() needs to setOffThreadFrontendErrors on
the JSContext because CompileToStencilTask::parse() uses it to allocate the
CompilationInput.

Differential Revision: https://phabricator.services.mozilla.com/D150647
2022-07-25 18:57:32 +00:00
Bryan Thrall 9e40d20025 Bug 1773324 - Pull OffThreadErrorContext to ParseTask member r=arai
This will allowe us to gather the errors after parsing without
needing a separate OffThreadFrontendErrors member.

Differential Revision: https://phabricator.services.mozilla.com/D150646
2022-07-25 18:57:32 +00:00
Bryan Thrall 7334acea14 Bug 1773324 - Support pending errors in OffThreadErrorContext r=arai
I could get rid of OffThreadErrorContext::cx_ by subclassing from
MallocProvider, but I don't think that would work since
OffThreadErrorContext has a vtable and MallocProvider does a
static_cast to get the client pointer.

OffThreadFrontendErrors moved to ErrorContext.h to avoid
recursive header inclusion.

Differential Revision: https://phabricator.services.mozilla.com/D150645
2022-07-25 18:57:32 +00:00
Bryan Thrall 242e75b195 Bug 1773324 - Pass ErrorContext parameter to CompileModuleToStencil functions r=arai
Fixes jit-test. Probably needs coordination with ESMification efforts.

It looks like JS::CompileModule() would be called from the main thread, so
it should use GeneralErrorContext.

Differential Revision: https://phabricator.services.mozilla.com/D151178
2022-07-25 18:57:31 +00:00
Bryan Thrall 442eab3d26 Bug 1773324 - Intro OffThreadErrorContext for off-thread compilation r=arai
DummyTokenStreams created when handling RegEx should be happening at JS
runtime, so on main thread (unless maybe workers?); so GeneralErrorContext is
appropriate there.

Differential Revision: https://phabricator.services.mozilla.com/D150644
2022-07-25 18:57:31 +00:00
Bryan Thrall 7e781e6879 Bug 1773324 - Plumb ErrorContext parameter out to where main vs. helper thread is known r=arai
Differential Revision: https://phabricator.services.mozilla.com/D150643
2022-07-25 18:57:30 +00:00
Bryan Thrall 0c51815759 Bug 1773324 - Provide Parser ErrorContext as a constructor parameter. r=arai
This allows the Parser creator to provide the ErrorContext appropriate
for the situation (main thread or helper thread). For now, we just use
a flexible implementation.

I think the lifetime of the ErrorContext is the same as the Parser, so
putting the ErrorContext on the stack when the Parser is, too, should be
safe.

Differential Revision: https://phabricator.services.mozilla.com/D150642
2022-07-25 18:57:30 +00:00
Bryan Thrall 89b90a8231 Bug 1773324 - Introduce ErrorContext for handling error reports. r=arai
Temporarily passing JSAllocator* to ExpandErrorArgumentsVA in
ReportCompileWarning(). It is only used for allocation and for AutoSuppressGC.

Differential Revision: https://phabricator.services.mozilla.com/D150641
2022-07-25 18:57:30 +00:00
Bryan Thrall f0995d91f4 Bug 1773324 - Add ErrorReportMixin::getAllocator() r=arai
The type of the allocator will be varying separately from the type of the context.

Differential Revision: https://phabricator.services.mozilla.com/D149997
2022-07-25 18:57:29 +00:00
Bryan Thrall 5c931e7083 Bug 1773324 - Separate use of JSContext for allocation into its own parameter r=arai
Differential Revision: https://phabricator.services.mozilla.com/D149996
2022-07-25 18:57:29 +00:00
hanna alemu 0c6e2a1839 Bug 1776863 - Update MR default onboarding message and logic to prepare content based finalized designs r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D151329
2022-07-25 18:56:09 +00:00
Dan Robertson b3308af056 Bug 1773378 - Add basic axis lock mode compatibility test. r=botond
Add a basic test to ensure the delta for the pan start gesture is evaluated for
all axis locking modes.

Differential Revision: https://phabricator.services.mozilla.com/D152482
2022-07-25 18:23:04 +00:00
Dan Robertson 8e5b76b18b Bug 1773378 - Implement stateless dominant axis scrolling. r=botond,mstange
Implement the new dominant axis locking mode for the apz.axis_lock.mode
preference. When using this mode, we do not use the traditional axis locks.
Instead we only consider the input pan displacement for the axis with
a larger value, zeroing out the displacement on the opposite axis.

Differential Revision: https://phabricator.services.mozilla.com/D152104
2022-07-25 18:23:04 +00:00
Yury Delendik 97917d6e8d Bug 1780928 - Fix WasmOpIter.cpp switch to properly handle CallRef. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D152667
2022-07-25 17:37:17 +00:00
Dale Harvey 5c2258b40f Bug 1778184 - Allow QuickAction commands to be translated. r=flod,adw,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152194
2022-07-25 17:36:44 +00:00
Joel Maher 07bf82568a Bug 1780996 - Adjust windows10 screen resolution to match physical hardware if using gpu instance. r=gbrown,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D152612
2022-07-25 17:33:50 +00:00
smolnar dc4f2d6a41 Backed out 5 changesets (bug 1780017, bug 1780347) for causing bc failures in browser/base/content/test/performance/browser_preferences_usage.js CLOSED TREE
Backed out changeset 86c3a9142535 (bug 1780347)
Backed out changeset 35abe35417a0 (bug 1780017)
Backed out changeset f448f044f028 (bug 1780017)
Backed out changeset a400cbe83084 (bug 1780017)
Backed out changeset 0a23c9e27f01 (bug 1780017)
2022-07-25 21:00:07 +03:00
Emilio Cobos Álvarez a8eaea7b73 Bug 1781097 - Annotate a couple more passes.
MANUAL PUSH: Orange fix, more green is good in a CLOSED TREE
2022-07-25 19:37:53 +02:00
Emilio Cobos Álvarez c60b2d8889 Bug 1781097 - Annotate another pass.
MANUAL PUSH: Trivial orange fix CLOSED TREE
2022-07-25 19:35:40 +02:00
Dan Minor 0685eef409 Bug 1779627 - Migrate toolkit/components/mozintl/mozIntl.jsm to esm; r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D151867
2022-07-25 17:14:51 +00:00
Florian Quèze 148ba225e8 Bug 1723188 - Hide hidden animated images in about:preferences using display: none in addition to visibility: hidden to avoid having them use CPU. r=preferences-reviewers,jaws
Differential Revision: https://phabricator.services.mozilla.com/D121398
2022-07-25 16:46:58 +00:00
Csoregi Natalia 534e4ed4cc Backed out changeset 1644072b7eac (bug 1775499) for causing failures on /test_performance_user_timing_dying_global.html. CLOSED TREE 2022-07-25 19:46:17 +03:00
Oriol Brufau 90681da9ee Bug 1781097 - Obey contain-intrinsic-size in block containers. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D152666
2022-07-25 16:40:07 +00:00
Mike Conley 90013f044d Bug 1779516 - Make sure input / change events fire for range elements when changing their value via the a11y API. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D151847
2022-07-25 16:38:31 +00:00
Michael Comella f9dff05051 Bug 1775499 - check for null GetParentObject in Performance::Measure. r=sefeng
Root cause: the global object can be null but I wasn't checking for it so it
caused a crash. I don't remember under what conditions it can be null but I saw
I had checked for null when I wrote Performance::Mark and remember debugging it
so it makes sense to do so here as well.

Differential Revision: https://phabricator.services.mozilla.com/D151960
2022-07-25 16:07:13 +00:00
Sebastian Hengst 7feb2efc80 Bug 1779857 - adjust expectations for several scrolling tests on Windows CCov DONTBUILD
The 1543337 revealed these new test expectations.

Differential Revision: https://phabricator.services.mozilla.com/D152656
2022-07-25 15:14:09 +00:00
Jared Wein ea2ff6d9cb Bug 1779964 - Don't force visibility:visible on elements as that can override inherited collapsed visibility, thus making some elements keyboard navigable that otherwise shouldn't be. r=Jamie,preferences-reviewers,desktop-theme-reviewers,dao,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D152435
2022-07-25 15:09:50 +00:00
Mark Banner 14708c74a2 Bug 1781028 - Fix xpcshell no-unused-vars warnings in toolkit/components/url-classifier/. r=dimi
Depends on D152624

Differential Revision: https://phabricator.services.mozilla.com/D152625
2022-07-25 15:01:36 +00:00
Mark Banner 8f81dbcff1 Bug 1781027 - Remove unused tests in toolkit/components/url-classifier/tests/unit/test_addsub.js. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D152624
2022-07-25 15:01:35 +00:00
Haik Aftandilian f43f562153 Bug 1776210 - [macOS 13] Stack underflow crashes on Wifi Monitor thread on macOS 13 (Ventura) beta r=mac-reviewers,necko-reviewers,mstange,dragana
Use a larger stack size on macOS 13 for the Wifi monitor thread to accommodate Core WLAN code allocating 217K+ on the stack.

Differential Revision: https://phabricator.services.mozilla.com/D152555
2022-07-25 14:09:09 +00:00
ffxbld 6506fc7cf1 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=diannaS
Differential Revision: https://phabricator.services.mozilla.com/D152635
2022-07-25 13:16:50 +00:00
Mark Banner 4272200762 Bug 1780347 - Switch from using importESModule to standard imports for XPCOMUtils in converted system modules. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D152253
2022-07-25 12:46:49 +00:00
Mark Banner a80d76567a Bug 1780017 - Load Urlbar providers via importESModule. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D152058
2022-07-25 12:46:48 +00:00
Mark Banner 539b5dac0d Bug 1780017 - Migrate urlbar consumers to use ESM imports directly. r=adw,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152057
2022-07-25 12:46:48 +00:00
Mark Banner 4a76c34f68 Bug 1780017 - Migrate browser/components/urlbar to ESM. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D152056
2022-07-25 12:46:47 +00:00
Mark Banner 4fa4e507f4 Bug 1780017 - Remove undefined export from UrlbarPrefs.jsm. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D152055
2022-07-25 12:46:46 +00:00