Commit Graph

812100 Commits

Author SHA1 Message Date
Alexandre Poirot
15211b3be5 Bug 1783821 - [devtools] Manual rewrites r=bomsy
In md files and code comments and mostly from common js files.

I'm moving away from require to load sys.mjs files so that we are closer
to what we do in mozilla-central.

Differential Revision: https://phabricator.services.mozilla.com/D154073
2022-09-05 12:29:57 +00:00
Alexandre Poirot
10e8296ed1 Bug 1783821 - [devtools] Load Launcher.sys.mjs via ChromeUtils.importESModule. r=perftest-reviewers,bomsy,arai,sparky
This is the result of:
$ ./mach esmify --imports . --prefix=devtools/client/framework/browser-toolbox

Differential Revision: https://phabricator.services.mozilla.com/D154072
2022-09-05 12:29:57 +00:00
Alexandre Poirot
5a25092464 Bug 1783821 - [devtools] Convert Launcher JSM to an ES Module. r=bomsy
This is the result of:
$ ./mach esmify devtools/client/framework/browser-toolbox/Launcher.jsm

Differential Revision: https://phabricator.services.mozilla.com/D154071
2022-09-05 12:29:56 +00:00
André Bargull
5266c1f2af Bug 1788177 - Part 3: Enable ShouldInitFixedSlots for CreatePlainObject. r=jandem
Change `ShouldInitFixedSlots` so we can use it for `LNewPlainObject` by directly
passing the shape and the number of fixed slots.

All fixed slots for `LNewPlainObject` are initialised to `Undefined`, so we can
remove the first loop which iterates over all fixed slots. Between `MNewPlainObject`
and the `MStoreFixedSlot` instructions, we may have some (hoisted) constants and
a `MGuardShape` instruction, which we need to skip. The `MStoreFixedSlot` aren't
scattered over multiple blocks, so we can remove the `MGoto` handling. Also remove
the `MNop` handling, because we no longer emit `MNop` except for
`assertRecoveredOnBailoutResult()`. (We should probably rename `MNop` at this
point.)

Differential Revision: https://phabricator.services.mozilla.com/D156055
2022-09-05 12:21:54 +00:00
André Bargull
a4ec07d3ec Bug 1788177 - Part 2: Remove non-working ShouldInitFixedSlots calls. r=jandem
There are three callers to `ShouldInitFixedSlots()`:

1. `LNewObject`:
The non-VM call instruction is only used for `Object.create` calls, in which
case any following store instruction definitely won't be `MFixedStore`, but
instead `MAddAndStoreSlot`. That means any optimisations from `ShouldInitFixedSlots`
don't apply for this case.

2. `LNewNamedLambdaObject`:
The template object contains a fixed slot which holds an Object value (the
callee function), so `ShouldInitFixedSlots` won't perform any optimisations.
(`ShouldInitFixedSlots` requires that all fixed slots have `Undefined` as their
initial value.)

3. `LNewCallObject`:
The template object contains a fixed slot which holds either an Object or a Null
value (the enclosing environment object), so `ShouldInitFixedSlots` won't perform
any optimisations.

That means all current callers of `ShouldInitFixedSlots` are actually no-ops.

`MacroAssembler::initGCSlots()` is now always called with `initContents=true`,
so we can remove the parameter.

Depends on D156053

Differential Revision: https://phabricator.services.mozilla.com/D156054
2022-09-05 12:21:54 +00:00
André Bargull
080a869f79 Bug 1788177 - Part 1: Return std::pair from FindStartOfUninitializedAndUndefinedSlots. r=jandem
`std::pair<uint32_t, uint32_t>` can be returned in a single register on 64-bit
platforms.

Differential Revision: https://phabricator.services.mozilla.com/D156053
2022-09-05 12:21:53 +00:00
Jan Varga
b33c4c1821 Bug 1789075 - Call RequestAllowToClose on correct thread; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D156394
2022-09-05 12:01:25 +00:00
Emilio Cobos Álvarez
287ac727e1 Bug 1789179 - Remove unused members from PendingPopup. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D156388
2022-09-05 11:58:59 +00:00
Henrik Skupin
b87f7d7ff8 Bug 1788168 - [devtools] Remove Firefox 104 backward compat fallback code. r=jdescottes,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D156329
2022-09-05 11:37:48 +00:00
Jens Stutte
404c76c5d8 Bug 1777394 - Do not crash on inaccessible dictionary file. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D156278
2022-09-05 11:29:45 +00:00
Paul Adenot
2fc7fb7998 Bug 1789233 - Remove media/libvpx/libvpx/vpx_dsp/vpx_dsp.mk.orig. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D156423
2022-09-05 11:20:58 +00:00
Gijs Kruitbosch
c4a23e34f1 Bug 1788813 - do not report spurious telemetry events for the toggling of the recently closed or tab pickup lists as a result of pageload, r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D156370
2022-09-05 10:39:07 +00:00
stransky
e0deeeffa0 Bug 1788936 [Wayland] Don't hide GDK_WINDOW_TYPE_HINT_UTILITY popup when has a correct type r=emilio
We don't need to hide/show GDK_WINDOW_TYPE_HINT_UTILITY popup type to change it's position.
Hide it only if we need to set correct popup type as such change is done in map event.

Differential Revision: https://phabricator.services.mozilla.com/D156305
2022-09-05 10:38:45 +00:00
Nazım Can Altınova
2cb18f60ad Bug 1788963 - Do not run the extra profiler run if the app is not firefox r=perftest-reviewers,aglavic
Differential Revision: https://phabricator.services.mozilla.com/D156318
2022-09-05 10:36:34 +00:00
Emilio Cobos Álvarez
bc989db245 Bug 1787623 - Make invalid and unsupported filters paint the unfiltered frame. r=botond
https://drafts.fxtf.org/filter-effects/#typedef-filter-url:

> A filter reference to a filter element. For example
> url(commonfilters.svg#filter). If the filter references a non-existent
> object or the referenced object is not a filter element, then the
> whole filter chain is ignored. No filter is applied to the object.

Differential Revision: https://phabricator.services.mozilla.com/D156074
2022-09-05 10:24:14 +00:00
Jon Coppeard
654ee53dc9 Bug 1788882 - Check module status on entry to JS::ModuleLink API r=yulia
Checks the module status unconditionally and throws an error if it is not as
expected.

This now includes the unexpected status in the error to help debugging and bug
reported.

Differential Revision: https://phabricator.services.mozilla.com/D156293
2022-09-05 09:43:09 +00:00
Emilio Cobos Álvarez
80f20bf0da Bug 1789167 - Fix rendering of tabs with emulated -moz-box. r=dao,aminomancer
This rendering of the tabs with emulated flexbox enabled (modern flexbox
behavior with min-width: auto is giving at least minimum content size).

It doesn't have any negative impact on XUL rendering, so do it
unconditionally.

Differential Revision: https://phabricator.services.mozilla.com/D156383
2022-09-05 09:42:20 +00:00
Hubert Boma Manilla
3f9dcc016d Bug 1777716 - [devtools] Add back the 'Resend' context menu to send quick requests without editing r=nchevobbe
This patch adds reverts back to having distint context menu items for 'Resend' and 'Edit and Resend'
but this is using the new http custom request functionality.

Differential Revision: https://phabricator.services.mozilla.com/D155159
2022-09-05 09:39:35 +00:00
Sylvestre Ledru
d30cce2512 no bug - Update of the pocket guide r=pascalc DONTBUILD
Depends on D156409

Differential Revision: https://phabricator.services.mozilla.com/D156410
2022-09-05 09:38:51 +00:00
criss
1cf683b775 Backed out changeset 328d4513c802 (bug 1773906) for causing failures on test_TelemetrySession.js . CLOSED TREE 2022-09-05 13:31:54 +03:00
Dimi
18e3e3f923 Bug 1787162 - Treat form with cc-name and cc-exp field as a valid credit card form r=sgalich
Differential Revision: https://phabricator.services.mozilla.com/D155580
2022-09-05 09:15:40 +00:00
Mathew Hodson
9a54ea0ba1 Bug 1773906 - Replace osfile.jsm usage in telemetry tests. r=chutten
Moved PingSender tests to test_PingSender.js so they are disabled
on Android and Linux 32-bit as intended by the code.

Differential Revision: https://phabricator.services.mozilla.com/D149027
2022-09-05 09:02:18 +00:00
Julian Descottes
a2d5f10a6c Bug 1770740 - [wdspec] Add test for script.disown r=webdriver-reviewers,whimboo
Depends on D155672

Differential Revision: https://phabricator.services.mozilla.com/D155635
2022-09-05 08:53:16 +00:00
Julian Descottes
6172776ebd Bug 1770740 - [wdspec] Add support for script.disown in wdspec tests r=webdriver-reviewers,whimboo
Depends on D155634

Differential Revision: https://phabricator.services.mozilla.com/D155672
2022-09-05 08:53:15 +00:00
Julian Descottes
584c2ea03d Bug 1770740 - [bidi] Implement "script.disown" command r=webdriver-reviewers,Sasha,whimboo
Depends on D155522

Differential Revision: https://phabricator.services.mozilla.com/D155634
2022-09-05 08:53:15 +00:00
Sylvestre Ledru
32963370f6 Bug 1789204 - ride along: mdn import: add a link to the meta bug DONTBUILD
Depends on D156408

Differential Revision: https://phabricator.services.mozilla.com/D156409
2022-09-05 08:48:03 +00:00
Frederic Wang
6ed0e8a19f Bug 1789197: [MathMLTextRunFactory] Do not reset font-weight/font-style when mathvariant is specified. r=emilio
This is a follow-up of 1788645, removing the font weight/style reset in
MathMLTextRunFactory when the mathvariant transform is not none. A WPT
test for mathvariant="double-struck" is added to exercise this case.

Differential Revision: https://phabricator.services.mozilla.com/D156400
2022-09-05 08:47:07 +00:00
criss
ba097d11d7 Backed out changeset 139d1aea678b (bug 1777394) causing build bustage on Unified_cpp_hunspell_glue0.obj. CLOSED TREE 2022-09-05 11:37:43 +03:00
Jens Stutte
efe0cc1a59 Bug 1777394 - Do not crash on inaccessible dictionary file. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D156278
2022-09-05 08:21:10 +00:00
Dimi
dd6ba9faac Bug 1788871 - Explicitly release array in nsUrlClassifierPrefixSet destructor r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D156282
2022-09-05 07:20:34 +00:00
Mozilla Releng Treescript
8ad7f52342 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
be -> 4218d795b4a60187eb4a6b2fe1175ab76de97b7b
ca -> 25bc6fa19f6506d615c206f51ccd94ad4c428b71
es-ES -> 77c9bfe1a7d38986ff65624961cb0916d0923345
eu -> a21c10396896d8c1dfe5cc1e14433ff97665066c
fi -> 1b498c77acea807d29e5f06d87424eb694d050df
sk -> 579d0ce2e85aeb3bccb46b264694a47f1b516e93
zh-CN -> 5da886406a81d43b5efcd5cce069a4c8f77b8e58
2022-09-05 06:57:35 +00:00
criss
41e24fc43c Backed out changeset c3d6bd944022 (bug 1787623) for causing mochitest failures on test_filter_crossorigin.html . CLOSED TREE 2022-09-05 09:21:57 +03:00
James Teh
41073adfb6 Bug 1787692: Partially support ISimpleDOMNode::nodeInfo for cached RemoteAccessibles. r=morgan
JAWS won't expose MathML without this.
We can't fully support it; we don't cache info about namespaces, for example.
However, this implementation is enough to get MathML working with JAWS.

Differential Revision: https://phabricator.services.mozilla.com/D156150
2022-09-05 04:30:44 +00:00
Dan Mosedale
a98fa49a7e Bug 1789008 - make onboarding tab modal in new tab instead of window modal,r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D156359
2022-09-05 04:23:51 +00:00
Ting-Yu Lin
4d6f500ef6 Bug 1789034 - Rename ShrinkWidthToFit to ShrinkISizeToFit. r=emilio
This method already works in logical coordinates. We should name it correctly.

Differential Revision: https://phabricator.services.mozilla.com/D156356
2022-09-05 03:46:47 +00:00
Ting-Yu Lin
d131e64176 Bug 1789034 - Delete obsolete comment for Stretch::StretchPreservingRatio. r=emilio
It has been used in rest of the method via its alias `eStretchPreservingRatio`
defined in a few lines below.

Differential Revision: https://phabricator.services.mozilla.com/D156355
2022-09-05 03:46:46 +00:00
Ting-Yu Lin
1daf7e3fb5 Bug 1789034 - Remove default values for SizeComputationInput::InitOffsets(). r=emilio
All the callers are passing values to border and padding, so no need to provide
empty default values.

Differential Revision: https://phabricator.services.mozilla.com/D156354
2022-09-05 03:46:46 +00:00
Gerald Squelart
372749cf93 Bug 1612799 - Add gtest to test failure injected by marker - r=canaltinova
There is no easy way to inject failures like OOM during the JSON generation
process, except from markers, which have direct access to the
SpliceableJSONWriter that may now use a fallible FailureLatchSource.

Differential Revision: https://phabricator.services.mozilla.com/D155664
2022-09-05 01:19:34 +00:00
Gerald Squelart
dba16709d9 Bug 1612799 - Handle failures when generating child profile - r=canaltinova
Use a fallible FailureLatchSource, and record the failure message (if any).

Differential Revision: https://phabricator.services.mozilla.com/D155663
2022-09-05 01:19:33 +00:00
Gerald Squelart
59d14ed295 Bug 1612799 - Handle failures when generating shutdown profile - r=canaltinova
Use a fallible FailureLatchSource, and record the failure message (if any).

Differential Revision: https://phabricator.services.mozilla.com/D155662
2022-09-05 01:19:33 +00:00
Gerald Squelart
bcccce43c1 Bug 1612799 - Handle failures in nsProfiler - r=canaltinova
Switch from the FailureLatchInfallibleSource singleton to a local fallible FailureLatchSource.

Differential Revision: https://phabricator.services.mozilla.com/D155661
2022-09-05 01:19:32 +00:00
Gerald Squelart
7a6721a5c5 Bug 1612799 - Pass a FailureLatch to EntryGetter, to potentially exit early on failure - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D155660
2022-09-05 01:19:32 +00:00
Gerald Squelart
aaa6b9c690 Bug 1612799 - Handle failures and exit early in main JSON-generation function - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D155659
2022-09-05 01:19:32 +00:00
Gerald Squelart
9225e9b0f1 Bug 1612799 - Make JITFrameInfo operations fallible - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D155658
2022-09-05 01:19:31 +00:00
Gerald Squelart
e41fd56546 Bug 1612799 - Make UniqueStacks operations fallible - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D155657
2022-09-05 01:19:31 +00:00
Gerald Squelart
474f0cf9c9 Bug 1612799 - Make UniqueStacks a FailureLatch - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D155656
2022-09-05 01:19:30 +00:00
Gerald Squelart
001b0d4ec0 Bug 1612799 - JITFrameInfo carries its own FailureLatchSource - r=canaltinova
Because JITFrameInfo objects are creating *during* profiling, they need to have
their own fallible FailureLatchSource, so that any error can be safely handled
even before we know which FailureLatch will be used in the final JSON
generation work.

Differential Revision: https://phabricator.services.mozilla.com/D155655
2022-09-05 01:19:30 +00:00
Gerald Squelart
892f66577e Bug 1612799 - Make ProcessStreamingContext a FailureLatch - r=canaltinova
This will help with forwarding the chosen FailureLatch to the code and
structures gathering per-thread samples and markers.

Differential Revision: https://phabricator.services.mozilla.com/D155654
2022-09-05 01:19:30 +00:00
Gerald Squelart
14f77ee12e Bug 1612799 - Make UniqueJSONStrings operations fallible - r=canaltinova
When something goes wrong, the most likely cause is running out of memory, so
we clear our data to try and free some memory ASAP, to hopefully reduce the
likelihood of a terminating OOM elsewhere.

Differential Revision: https://phabricator.services.mozilla.com/D155653
2022-09-05 01:19:29 +00:00
Gerald Squelart
7dc3f8d14e Bug 1612799 - Make UniqueJSONStrings a FailureLatch - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D155652
2022-09-05 01:19:29 +00:00