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

859330 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 18e3d8706a Bug 1858726 - Have a single source of truth for toolbar-field-border colors. r=dao,desktop-theme-reviewers
I missed the urlbar-searchbar bits on the regressing bug.

Differential Revision: https://phabricator.services.mozilla.com/D190916
2023-10-13 11:50:57 +00:00
Florian Quèze 8cc8e8ac29 Bug 1858634 - Sample mach build at 10Hz instead of 1Hz to have smoother charts in build profiles, r=glandium.
Depends on D190768

Differential Revision: https://phabricator.services.mozilla.com/D190769
2023-10-13 11:39:33 +00:00
Florian Quèze 900469fbd4 Bug 1858634 - round numbers in profile_build_resources.json profiles, r=glandium.
Differential Revision: https://phabricator.services.mozilla.com/D190768
2023-10-13 11:39:32 +00:00
Vinny Diehl 4bb327a1df Bug 1557650 - Add support for numeric dashed dates r=arai
While formal ISO dates must have 4-digit years, implementations tend to
allow dates up until +275760-09-13T00:00:00Z per the TimeClip algorithm:

 * https://tc39.es/ecma262/#sec-timeclip
 * https://tc39.es/ecma262/#sec-utc-t

As well as cases such as "1995-09-26 09:00 EST" where the time and
timezone are specified as with any other date.

This patch also adds support for formats like "1-12-20" or "1-12-2012".

The date is returned in localtime, but the limit is processed in GMT.

Differential Revision: https://phabricator.services.mozilla.com/D189895
2023-10-13 11:03:04 +00:00
Nicolas Chevobbe d4aafcce6d Bug 1815472 - [devtools] Fix variable tooltip when location is impacted by inline preview or wrapping. r=devtools-reviewers,bomsy.
In `getTokenLocation`, the call to `coordsChar` needed an extra parameter so the
coordinates are relative to the top left corner fo the currently visible window.
We were passing the center of the bounding client rect to `getTokenLocation`, but
a token could wrap and have it's bounding rect center not being on the token.
To fix this we're passing the center of the first box quads of the token.

The inline preview widgets were causing some troubles on CodeMirror internal
state too. Since we're using React to populate the bookmark we set on the line,
and given that React.render is asynchronous, we were setting an empty element
as a bookmark on the editor, which React populates later. But CodeMirror probably
update its internal state when the bookmark is added, so that was causing wrong
computation later.
To avoid that, we only set the bookmark once React actually rendered the element
in the DOM.

Finally, while codeMirror already listen for window resize to update its internal
state, the Editor can be resized without the window being resized,
when primary/secondary panels are resized. In such case, we manually trigger
a codeMirror refresh.

We add a test to cover this, and also modify test helpers so we would query
the DOM instead of relying on CodeMirror methods.

Differential Revision: https://phabricator.services.mozilla.com/D190272
2023-10-13 10:47:41 +00:00
Cristina Horotan 6a72ce1cc5 Backed out changeset a64fd92f37f7 (bug 1858622) for causing xpcshell failures at test_quicksuggest_impressionCaps.js CLOSED TREE 2023-10-13 13:44:39 +03:00
Paul Zuehlcke 0fb8400698 Bug 1858113 - Close sidebar on PBM reset action. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D190709
2023-10-13 10:24:41 +00:00
Cristina Horotan 0e6306c8d2 Bug 1781668 - disable test_mouse_enterleave_iframe.html on opt for frequent failures r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D190915
2023-10-13 10:18:39 +00:00
Olli Pettay b9d2bb51c7 Bug 1857731 - Schedule PREPARE_FOR_PAGELOAD to happen during idle time, r=jonco
Minor GC doesn't really need any hint from RefreshDriver, it is enough to have idle time.
(separately I'm trying to find a way to remove the explicit GetNextTickHint() for other slices and make also those just rely on the idle time)

On tryserver this doesn't show any major change to the performance
https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=126820c114282edb62de142b7f5ac7239e6c5622&newProject=try&newRevision=a376d5835ca8f807913b496aa5140a29026ff74c&page=1&framework=13
but locally this seems to make scheduling a bit more predictable.

Differential Revision: https://phabricator.services.mozilla.com/D190386
2023-10-13 09:58:47 +00:00
Olli Pettay 6235c7d4f9 Bug 1858434 - Expose getCoalescedEvents only on SecureContext, r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D190740
2023-10-13 09:55:37 +00:00
Jan de Mooij 3198f78df5 Bug 1858622 - Freeze/seal more JS standard classes in freezeBuiltins realms. r=mgaudet
We did this for Object/Array/Function for security reasons in bug 1771084, but we can
extend this to other builtins.

Differential Revision: https://phabricator.services.mozilla.com/D190762
2023-10-13 09:53:29 +00:00
Kagami Sascha Rosylight d1c339538c Bug 1840705 - Fix isRunning typo in translations-engine-worker.js r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D190827
2023-10-13 09:50:13 +00:00
Marco Bonardo 07741fd9ee Bug 1666092 - Change waitForLoadOrTimeout test helper to only check for load start. r=adw
Waiting for the full load sometimes will take more than the timeout, and we
don't really need to do it for the purpose of this helper.

Differential Revision: https://phabricator.services.mozilla.com/D190756
2023-10-13 09:18:20 +00:00
Natalia Csoregi ec862c541a Backed out changeset 2d9717f5ca10 (bug 1858068) for causing bustage on Segmenter.cpp. CLOSED TREE 2023-10-13 12:15:55 +03:00
Dão Gottwald 898f7acfcc Bug 1854577 - Unify hamburger menu accel text color across platforms and themes. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D190774
2023-10-13 08:59:27 +00:00
Mark Banner 1c781625ed Bug 1857866 - Enable ESlint rule mozilla/no-useless-removeEventListener on all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190439
2023-10-13 08:56:13 +00:00
Mark Banner 932bc23fe7 Bug 1857866 - Enable ESLint rule complexity on all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190438
2023-10-13 08:56:12 +00:00
Mark Banner 1ff32a5712 Bug 1857866 - Remove some unnecessary ESLint exclusions for dom files. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190437
2023-10-13 08:56:12 +00:00
Mark Banner fdc83bbfff Bug 1857866 - Enable ESLint rule mozilla/no-useless-parameters on all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190436
2023-10-13 08:56:12 +00:00
Mark Banner e43869f6d6 Bug 1857866 - Enable ESLint rule mozilla/reject-importGlobalProperties on all of dom/. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D190434
2023-10-13 08:56:11 +00:00
Mark Banner b75ce2775d Bug 1857866 - Enable mozilla/no-arbitrary-setTimeout on all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190433
2023-10-13 08:56:11 +00:00
Marc Seibert 964fbbfa4f Bug 1479858 - Added option for UrlBar search open tabs to ignore userContextId.r=mak,dao
Oiriginal patch author: Paresh Malalur <atararx@gmail.com>

Differential Revision: https://phabricator.services.mozilla.com/D187465
2023-10-13 08:48:46 +00:00
Otto Länd 16d3f86044 Bug 1857431: apply code formatting via Lando
# ignore-this-changeset
2023-10-13 08:49:25 +00:00
Tom Schuster 4d69d8826a Bug 1857431 - Use xpc::InitGlobalObjectOptions for Workers. r=dom-worker-reviewers,smaug
This introduces two slight changes of behavior:
- Workers with a system principal are now always treated as secure context, without looking at the mIsSecureContext flag.
- We now also discard sources for all types of workers with a system principal

Differential Revision: https://phabricator.services.mozilla.com/D190282
2023-10-13 08:46:32 +00:00
Tom Schuster 67d273cc79 Bug 1857431 - Add aSecureContext to xpc::InitGlobalObjectOptions. r=mccr8,smaug
Differential Revision: https://phabricator.services.mozilla.com/D190281
2023-10-13 08:46:32 +00:00
Tom Schuster 93337956b8 Bug 1857431 - Move InitGlobalObjectOptions to xpcpublic.h. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190675
2023-10-13 08:46:32 +00:00
Makoto Kato 1c18dce421 Bug 1858068 - Cache ICU4XGraphemeClusterSegmenter. r=TYLin
Since `CountGraphemeClusters` is called from PresShell::DoFlushLayout when
using counter style. To optimize this, I would like to cache
`ICU4XGraphemeClusterSegmenter`.

Differential Revision: https://phabricator.services.mozilla.com/D190750
2023-10-13 08:41:42 +00:00
Jonathan Kew b521628b5f Bug 1803406 - Backout 2 changesets (6a82f1f120aa, 87d83c56fbe5) due to regression reported in bug 1858869.
Differential Revision: https://phabricator.services.mozilla.com/D190908
2023-10-13 08:32:56 +00:00
Tom Schuster 9829d5fe28 Bug 1851375 - Disable a pref also on Nightly/Beta. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D190678
2023-10-13 08:17:31 +00:00
Mozilla Releng Treescript 19805f1951 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
ka -> a1fa361d1b5dd5f911907fed691b18e0710e034a
nn-NO -> 197abc4fac9566518e45a7c3ed42603ec82b9928
tg -> 5424b2f596b3f321e3d50b7a26ca5a8a421f5b35
2023-10-13 07:01:32 +00:00
Hubert Boma Manilla b9d75547ab Bug 1815472 - [devtools] Cleanup and use utility file for tokens r=devtools-reviewers,nchevobbe
Changes in this patch
- Rename the `token-events.js` => `token.js`
- Unify all the token realted utils into `token.js`
- Remove other token util related files
- Remove not really useful jest test `get-token-location.spec.js` as this is already covered by preview related mochitests

Differential Revision: https://phabricator.services.mozilla.com/D181960
2023-10-13 06:25:58 +00:00
Hubert Boma Manilla d79e0e56fc Bug 1855685 - [devtools] Avoid showing preview tooltips when hovering over inline previews r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D190050
2023-10-13 06:16:59 +00:00
Jan de Mooij 81a006cd60 Bug 1858679 part 2 - Remove dead code from CloneFunctionReuseScript. r=iain
Searchfox suggested the code to handle self-hosted lazy functions is dead and
this is indeed no longer used to clone lazy self-hosted functions.

Depends on D190821

Differential Revision: https://phabricator.services.mozilla.com/D190823
2023-10-13 06:01:28 +00:00
Jan de Mooij e80f61573e Bug 1858679 part 1 - Fix perf issue in IRGenerator::emitCalleeGuard for self-hosted lambdas. r=iain
We were always emitting `GuardSpecificFunction` for self-hosted functions, but this
doesn't work well for self-hosted lambda functions because there we have lambda clones
and we want to guard on the script instead.

Lambdas aren't very common in self-hosted code, but `ArraySortCompare` returns a lambda
function and that's where it was causing unnecessary bailouts and recompilations.

Differential Revision: https://phabricator.services.mozilla.com/D190821
2023-10-13 06:01:28 +00:00
Masayuki Nakano 0b01d23e7a Bug 1728433 - Make `WSScanResult::AssertIfInvalidData` check the ancestor block element if the reason is `CurrentBlockBoundary` r=m_kato
As the comment in the method, `CurrentBlockBoundary` may be set when `mContent`
is not a block.  However, it's not allowed that there is an editable block
ancestor of `mContent` in same editing host (in this case, `mContent` should be
the block).  Therefore, it should compute ancestor block element and check
whether it's not in same editing host if `mContent` is editable and connected.

Differential Revision: https://phabricator.services.mozilla.com/D190644
2023-10-13 02:57:08 +00:00
Tom Marble 0cb91fe33e Bug 1855300 - convert .ini manifests to .toml: batch 11 remaining **/mochitest.ini r=jmaher,geckoview-reviewers,extension-reviewers,valentin,credential-management-reviewers,cookie-reviewers,sgalich,m_kato,robwu
Differential Revision: https://phabricator.services.mozilla.com/D190515
2023-10-13 02:32:24 +00:00
Michael Froman 6c9146c88f Bug 1855285 - don't update third_party/libwebrtc/README.mozilla during cherry-pick. r=dbaker DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D190820
2023-10-13 02:04:26 +00:00
Chris Fallin 8f72f72fce Bug 1858823: Fix regression in interpreter gdb test. r=iain
The patches for bug 1855321 changed the tag bits on JIT-frame FP values,
but this test was not updated. This patch fixes the hardcoded
assertions.

Differential Revision: https://phabricator.services.mozilla.com/D190896
2023-10-13 01:23:40 +00:00
Mike Hommey 611ef62075 Bug 1855878 - Remove binutils dependencies from tasks that don't need it anymore. r=firefox-build-system-reviewers,sergesanspaille
Bug 1839739 switched clang-based builds to lld, so they don't need
binutils anymore.

Differential Revision: https://phabricator.services.mozilla.com/D189611
2023-10-13 01:20:30 +00:00
Mike Hommey 0420c204c2 Bug 1854047 - Enable relrhack in local builds when possible. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D188677
2023-10-13 01:19:40 +00:00
Michael Hughes 554f9dda0a Bug 1858006 - make installer auto-pin on Win 11 pre-UBR 2361 builds. r=nalexander
The previous commits to shared.nsh resulted in auto-pinning only occurring in Windows 11 builds that weren't build number 22621 or higher, but a lot of users on Windows 11 are on 22621 already and the build number to pay attention to, when MS introduced the user confirmation for pinning popup, is in Windows 11, 22621, UBR 2361.
This commit checks for the UBR number too.

Differential Revision: https://phabricator.services.mozilla.com/D190859
2023-10-12 23:56:01 +00:00
Chris Fallin a4cb05b265 Bug 1855321 part 17 / 17 (PBL): Fix JitStackAlignment. r=jandem
On PBL, alignment is only to native word size, to avoid the need to add
additional alignment padding.

Differential Revision: https://phabricator.services.mozilla.com/D189311
2023-10-12 23:16:54 +00:00
Chris Fallin cb5c6ed6e6 Bug 1855321 part 16 / 17 (PBL): update tests. r=jandem
Several of the jit-tests need to be modified for all tests to pass with
PBL enabled and eager (test with `--portable-baseline
--portable-baseline-eager`). With these changes, all jit-tests do pass.

The changes fall into several main categories:

* Because PBL diverges slightly in decompiler usage, error messages are
  sometimes more generic (e.g., "undefined value" rather than "x is
  undefined", that sort of thing). Several of these changes loosen
  error-message expectations or exclude the relevant tests from PBL.
  All actual error statuses (code works or throws exception) remain
  correct.

* PBL's auxiliary stack and recursion limit are smaller than native
  baseline supports, at least on some platforms; recursion counts that
  are meant to invoke overflow or not invoke overflow (but whose
  specific value is otherwise immaterial) are thus adjusted in places.

* A few other miscellaneous changes, supported at each point with a
  comment.

Differential Revision: https://phabricator.services.mozilla.com/D189310
2023-10-12 23:16:53 +00:00
Chris Fallin d731c0e1ef Bug 1855321 part 15 / 17 (PBL): Tweak profiling to deal with PBL. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D189309
2023-10-12 23:16:53 +00:00
Chris Fallin 1010d50d06 Bug 1855321 part 14 / 17 (PBL): invoke the PBL tier from tiering logic. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D189308
2023-10-12 23:16:53 +00:00
Chris Fallin 645d6e5e64 Bug 1855321 part 13 / 17 (PBL): Add the main implementation of PBL (not yet invoked). r=jandem
This commit adds the body of PBL, the Portable Baseline Interpreter.
A more detailed description is included in the [SMDOC] in the header
file.

Almost all of this commit was authored by the named commit author; two
CacheIR guard opcodes, the constructor-call fastpath, and several
bugfixes are due to Jamey Sharp <jsharp@fastly.com> (thanks!).

Differential Revision: https://phabricator.services.mozilla.com/D189307
2023-10-12 23:16:52 +00:00
Chris Fallin 9c48c535e9 Bug 1855321 part 12 / 17 (PBL): miscellaneous ifdefs and null-checks to handle running in new configuration. r=jandem
* Sometimes there is no JitRuntime, even if we are in baseline-related
  code paths.
* Sometimes a jit-code or stub-code pointer is null.

Differential Revision: https://phabricator.services.mozilla.com/D189306
2023-10-12 23:16:52 +00:00
Chris Fallin 852a2acd89 Bug 1855321 part 11 / 17 (PBL): CacheIR fallbacks: make more tolerant of no-decompiler case. r=jandem
PBL diverges slightly from the native baseline implementation's stack
state at IC invocation time (though the stack signatures of all JSOps
match when including the pre-IC and post-IC logic)  and thus PBL must
avoid invocation of the expression decompiler for error messages in some
cases. This commit makes the fallback IC logic more tolerant of missing
"stack indices" for this purpose.

Differential Revision: https://phabricator.services.mozilla.com/D189305
2023-10-12 23:16:51 +00:00
Chris Fallin 870c8d2d8a Bug 1855321 part 10 / 17 (PBL): Add some needed accessors. r=jandem
These miscellaneous accessors are needed by the PBL interpreter.

Differential Revision: https://phabricator.services.mozilla.com/D189304
2023-10-12 23:16:51 +00:00
Chris Fallin 17cc588a1a Bug 1855321 part 9 / 17 (PBL): add an auxiliary stack. r=jandem
This stack is needed by PBL to store baseline stack frames, because it
cannot use the machine stack (which will be managed by the host's C++
compiler instead).

Differential Revision: https://phabricator.services.mozilla.com/D189303
2023-10-12 23:16:50 +00:00