Commit Graph

906644 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
6487a8b3ab Bug 1919165 - Remove support for WindowType::Child, which is now unused. r=stransky
We don't take this codepath anymore in any platform. Windows and GTK
were already asserting against it.

Differential Revision: https://phabricator.services.mozilla.com/D245640
2025-04-29 14:04:53 +00:00
Tarek Ziadé
1d73a580fe Bug 1960813 - relax engineId allowed chars so we can use webext ids r=rpl,ngrato
Differential Revision: https://phabricator.services.mozilla.com/D245687
2025-04-29 14:04:48 +00:00
Emilio Cobos Álvarez
d954259f50 Bug 1919165 - Notify attached listener for paint like in other platforms.
This should fix browser_startup_content_mainthreadio.js because it's not
getting the widget-first-paint notification.

MANUAL PUSH: Orange fix CLOSED TREE
2025-04-29 17:42:33 +02:00
Norisz Fay
af318eba45 Backed out changeset f03d4b22573f (bug 1962683) for causing mochitest failures on browser_ext_tabs_group_ungroup.js CLOSED TREE 2025-04-29 17:16:13 +03:00
Olivia Hall
84b42d3f2a Bug 1927595 - Open GeckoViewTest Priority Tests for Isolated Processes r=geckoview-reviewers,m_kato
Issue was `getContentProcessesOomScore` was attempting to read other process's oom scores.

This patch:
* Adjusts `getContentProcessesOomScore` to read the oom score through the test privileged `uiAutomation`
* Opens tests in `GeckoViewTest` gated by isolated process
* Runs ktlint on `GeckoViewTest`

Differential Revision: https://phabricator.services.mozilla.com/D246355
2025-04-29 13:54:13 +00:00
Aaditya
99c30c384e Bug 1961078 - Fix gradle error when building from root folder r=nalexander,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D245838
2025-04-29 13:54:04 +00:00
Emilio Cobos Álvarez
4cb23bb4af Bug 1919165 - Move the guts of nsChildView.mm into nsCocoaWindow.mm. r=mac-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D245639
2025-04-29 13:51:03 +00:00
Emilio Cobos Álvarez
246a83fa36 Bug 1919165 - Get rid of nsChildView. r=mac-reviewers,mstange
In a follow-up I want to merge nsChildView.mm into nsCocoaWindow.mm, but
I thought I'd send this for feedback.

The most relevant changes:

 * Move members from nsChildView to nsCocoaWindow.
 * Manually position the ChildView* when custom titlebar is changed.
 * Deal with attaching directly to top level widget
   (mAttachedWidgetListener) like other platforms do.
 * On methods that are implemented in both nsChildView and
   nsCocoaWindow, look into which implementation we need (if one
   forwards to the other, pick the non-trivial one).
 * Some fix ups for code that lived in nsChildView that now needs to
   account for a client offset if there's a titlebar.

Differential Revision: https://phabricator.services.mozilla.com/D245604
2025-04-29 13:51:02 +00:00
Eden Chuang
4ce1ddbb64 Bug 1961460 - Remove the assertion for target thread in RemoteWorkerDebuggerManagerChild::Constructor. r=dom-worker-reviewers,jstutte
RemoteWorkerService::InitializeOnTargetThread could race with its shutdown
So we can not use sRemoteWorkerService for thread correctness checking in RemoteWorkerDebuggerManagerChild creation during the initialization.

This patch remove the assertions in the RemoteWorkerDebuggerManagerChild constructor and also moving the RemoteWorkerDebuggerManagerChild creation into RemoteWorkerService::InitializeOnTargetThread. RemoteWorkerService::InitializeOnTargetThread provides the thread correctness checking by using its mThread.

Differential Revision: https://phabricator.services.mozilla.com/D247043
2025-04-29 13:50:20 +00:00
Joel Maher
f22d7767a0 Bug 1963159 - Disable bug1940716.js on mac/arm64 as it fails when we upgrade os/hardware. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D246983
2025-04-29 13:26:40 +00:00
Beth Rennie
d41ba31604 Bug 1961392 - Don't show the experimental pane just to hide it if studies are disabled r=mstriemer,settings-reviewers
Previously if we opened about:preferences for the first time after
disabling studies or telemetry, the "Firefox Labs" entry would appear
briefly and disappear. Now we don't show the element initially if we
would have to hide it soon after because studies or telemetry are
disabled.

Differential Revision: https://phabricator.services.mozilla.com/D246999
2025-04-29 13:19:13 +00:00
Jan de Mooij
5823ed66a5 Bug 1958280 part 15 - Add a browser pref for the register allocator. r=iain
This converts the `JitOption` to a pref so that it can also be set from the browser.

Differential Revision: https://phabricator.services.mozilla.com/D246452
2025-04-29 13:16:49 +00:00
Jan de Mooij
3a5d264f8a Bug 1958280 part 14 - Add --ion-regalloc=simple to fuzz-flags.txt and some jit-tests. r=jseward
This is just to have some smoke tests for now to help catch regressions.

Differential Revision: https://phabricator.services.mozilla.com/D246451
2025-04-29 13:16:49 +00:00
Jan de Mooij
63ab5b1f2f Bug 1958280 part 13 - Add a simple register allocator for Ion. r=jseward
Register allocation is usually the slowest part of the Ion compiler backend.
This patch adds the Simple Allocator, a register allocator that results in worse
JIT code but is a lot faster than Backtracking. It's often faster than codegen
and/or GVN.

This allocator lets us experiment with different compilation strategies in the future
and it provides a useful baseline for measuring and optimizing the performance of
the backtracking allocator. It also helps document our LIR => Register Allocator
interface.

Differential Revision: https://phabricator.services.mozilla.com/D246450
2025-04-29 13:16:48 +00:00
Jan de Mooij
e70a2249dd Bug 1958280 part 12 - Add LStackSlot::SlotAndWidth. r=iain
This lets us get the slot-and-width data out as `uint32_t` and we can create a
`SlotAndWidth` and `LStackSlot` from that later.

The simple allocator will use that to represent stack slots so that it doesn't
need to compute the width from the type each time it works with stack slots.

Differential Revision: https://phabricator.services.mozilla.com/D246449
2025-04-29 13:16:48 +00:00
Jan de Mooij
bd0c852141 Bug 1958280 part 11 - Add LInstruction::changePolicyOfReusedInputToAny. r=jseward
The simple allocator wants to do the same thing.

Longer-term maybe this should be handled during lowering so that we don't need to
rewrite the `LUse` here.

Differential Revision: https://phabricator.services.mozilla.com/D246448
2025-04-29 13:16:48 +00:00
Rob Wu
e6e595260e Bug 1962683 - Avoid missed event in browser_ext_tabs_group_ungroup.js r=zombie
This patch moves the tabs API calls after the tabGroups event call,
which increases the likelihood that the tabGroups implementation loads
(with the event registered) before tabs.group() is called, to address
https://bugzilla.mozilla.org/show_bug.cgi?id=1962683#c3

Differential Revision: https://phabricator.services.mozilla.com/D246779
2025-04-29 13:14:56 +00:00
Beth Rennie
85992a9d15 Bug 1961629 - Use ExperimentFeature.getEnrollmentMetadata() in browser/components/asrouter r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D246149
2025-04-29 13:07:23 +00:00
Jan de Mooij
8038fa5a49 Bug 1947139 - Add test. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D237864
2025-04-29 12:56:32 +00:00
Butkovits Atila
2d4ec66eb0 Backed out 2 changesets (bug 1955578) for causing failures complaining about unknown test url. CLOSED TREE
Backed out changeset 4b6f1f98514e (bug 1955578)
Backed out changeset f7087a94bb69 (bug 1955578)
2025-04-29 15:46:31 +03:00
Butkovits Atila
d5769ff5cb Backed out changeset 5591b71c7d59 (bug 1961629) for causing failures at browser_asrouter_toast_notification.js. 2025-04-29 15:45:16 +03:00
Nicolas Chevobbe
19d80d6778 Bug 1962993 - [devtools] Use URLSearchParams to build URL in HTTPCustomRequestPanel#onUpdateQueryParams. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D246893
2025-04-29 11:38:20 +00:00
Tom Schuster
7918e3ccd4 Bug 1955578 - Collect clobbered HTMLDocument properties. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D242534
2025-04-29 11:32:36 +00:00
Tom Schuster
a5a6720163 Bug 1955578 - Codegen a method that returns whether something is a known property of an interface. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D242522
2025-04-29 11:32:35 +00:00
Beth Rennie
c8b5015aca Bug 1961629 - Use ExperimentFeature.getEnrollmentMetadata() in browser/components/asrouter r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D246149
2025-04-29 11:28:57 +00:00
Jan de Mooij
10407ee946 Bug 1958280 part 10 - Simplify clobberedRegs code a bit in the backtracking allocator. r=jseward
This is used to mark a subset of `liveRegs` as 'clobbered' for some debug checks.

Calls always have an empty `liveRegs` set, so check in the verifier that `clobberedRegs`
is empty for calls too.

Differential Revision: https://phabricator.services.mozilla.com/D246447
2025-04-29 11:27:35 +00:00
Jan de Mooij
d6637b7141 Bug 1958280 part 9 - Fix minor regression in addLiveRegistersForRange. r=jseward
This fixes a regression from bug 1938317 part 3 that I noticed while reading the code.

We'd incorrectly mark an instruction's output register as a live-register and
save/restore it while we didn't before that change.

We can't easily check for this in the regalloc verifier because the same register
could also be added to the safepoint's live-regs for a different vreg that was live
at the start of the instruction.

Differential Revision: https://phabricator.services.mozilla.com/D246446
2025-04-29 11:27:35 +00:00
Jan de Mooij
bac9148a09 Bug 1958280 part 8 - Improve safepoint checks in the regalloc verifier. r=jseward
The backtracking allocator also adds registers for at-start uses to safepoints,
so change the verifier to check these uses too.

Also remove the early return for `THIS_FRAME_ARGSLOT` allocations in `checkSafepointAllocation`.
It's not clear why that's there so it's safer to check these allocations too.

Differential Revision: https://phabricator.services.mozilla.com/D246445
2025-04-29 11:27:35 +00:00
Jan de Mooij
edcf8cff87 Bug 1958280 part 7 - Add StackSlotAllocator::freeSlot method. r=jseward
`StackSlotAllocator` already has `normalSlots` and `doubleSlots` vectors so we just
need to add a `quadSlots` vector and a `freeSlot` method to support returning slots to
the slot allocator.

This is nice for the simple register allocator because it then doesn't need to track
available stack slots itself.

Differential Revision: https://phabricator.services.mozilla.com/D246444
2025-04-29 11:27:35 +00:00
Jan de Mooij
c4e1bb3a1f Bug 1958280 part 6 - Add missing RegisterSet::Subtract method. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D246443
2025-04-29 11:27:34 +00:00
Jan de Mooij
bd768319f0 Bug 1958280 part 5 - Add iterators for LInstruction outputs and temps. r=iain
The boilerplate for this (including skipping `BogusTemp` definitions) is a bit tedious
so add an iterator for this.

The term 'definition' is used for both outputs and temps so use `OutputIter` for outputs
to be more specific.

Differential Revision: https://phabricator.services.mozilla.com/D246442
2025-04-29 11:27:34 +00:00
Jan de Mooij
552e7884ac Bug 1958280 part 4 - Add LInstruction input iterator specialization that avoids snapshot inputs. r=iain
Also renames `LInstruction::InputIterator` to `LInstruction::InputIter` to be
less verbose.

Differential Revision: https://phabricator.services.mozilla.com/D246441
2025-04-29 11:27:34 +00:00
Jan de Mooij
8e0af933ff Bug 1958280 part 3 - Tidy up the code for adding GC allocations to safepoints. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D246440
2025-04-29 11:27:34 +00:00
Jan de Mooij
b4f222009b Bug 1958280 part 2 - Move safepoint vectors to backtracking allocator class. r=iain
This is more efficient too because lowering records how many entries there are
so we can now pre-allocate these vectors without having to reallocate.

Minor fix: in `findFirstNonCallSafepoint` the assertion was using `getSafepoint`
instead of `getNonCallSafepoint`.

Differential Revision: https://phabricator.services.mozilla.com/D246439
2025-04-29 11:27:34 +00:00
Jan de Mooij
bf7d54acd8 Bug 1958280 part 1 - Move some fields and methods from RegisterAllocator to BacktrackingAllocator. r=iain
`RegisterAllocator` is the base class for all register allocators. The backtracking
allocator needs this data but my simple allocator doesn't.

Differential Revision: https://phabricator.services.mozilla.com/D246438
2025-04-29 11:27:33 +00:00
Valentin Gosu
ab8d90122b Bug 1938866 - Fix intermittent test_rcwn_interrupted.js r=necko-reviewers,sunil
I think this is intermittent if the second request (with RCWN) happens to be
opened before the first one. In this change, we only open the second request
in the onStartRequest of the first one, thus hopefully eliminating the race.

Differential Revision: https://phabricator.services.mozilla.com/D246743
2025-04-29 11:25:32 +00:00
Updatebot
2c854620a3 Bug 1963110 - Update harfbuzz to 11.2.0 r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D246960
2025-04-29 11:14:19 +00:00
Butkovits Atila
569ea4a3d0 Backed out changeset 1ae7fced5a24 (bug 1957504) for causing failures at test_webassembly_compile.html. CLOSED TREE 2025-04-29 14:25:36 +03:00
florin.bilt
5f12d4f875 Bug 1955966 - Move wiki perf sheriff FAQ to perf-sheriffing docs on firefox source docs r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D245921
2025-04-29 10:50:16 +00:00
Julian Seward
8fb675fbc7 Bug 1957504 - wasm: enable lazy tiering for all content. r=rhunt.
Currently wasm lazy tiering is enabled by default only for content that uses
the wasm-GC feature set.  This patch enables lazy tiering for all wasm content.
Lazy tiering is disallowed if the "test serialization" pref is enabled, or if
no helper threads are available.

As a ridealong fix, a potential race in CanFlushExecutionContextForAllThreads
is fixed -- applies to 32- and 64-bit ARM on Linux and Android only.

There are also some fixes for jit-test tests:

* a new testing function, wasmLazyTieringEnabled, which indicates whether
  compilation will be done using lazy tiering.

* wasm/binary-to-text.js, wasm/gc/speculative-inlining.js,
  wasm/lazy-tiering-codegen.js: consistently use wasmLazyTieringEnabled
  in the skip-if clauses, instead of ad-hoc other logic.

Differential Revision: https://phabricator.services.mozilla.com/D244195
2025-04-29 10:14:32 +00:00
Kershaw Chang
6a20837739 Bug 1960943 - Add a metric to record page load response size, r=acreskey,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D245909
2025-04-29 09:58:06 +00:00
Andreas Farre
0f77a9c6c1 Bug 1963059 - Add helpers to get associated document. r=jjaschke
Differential Revision: https://phabricator.services.mozilla.com/D247046
2025-04-29 09:33:18 +00:00
Anna
f37a6af824 Bug 1952950 - Re-enable DTLS 1.3 r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D244925
2025-04-29 09:20:07 +00:00
Anna
f15d56d166 Bug 1961162 - Enable reading security.tls.enable_certificate_compression_* from rust r=nss-reviewers,keeler
Going to be used in neqo_glue

Differential Revision: https://phabricator.services.mozilla.com/D245916
2025-04-29 09:02:09 +00:00
t-p-white
0f71ce3d96 Bug 1963011 - Don't show the setup checklist on tablet devices r=android-reviewers,gmalekpour
Differential Revision: https://phabricator.services.mozilla.com/D246917
2025-04-29 09:00:00 +00:00
Kershaw Chang
c94cdd4752 Bug 1874102 - Implement WT_RESET_STREAM capsule, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D245206
2025-04-29 08:45:30 +00:00
Kershaw Chang
c51f965060 Bug 1874102 - Implement STOP SENDING capsule, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D245205
2025-04-29 08:45:30 +00:00
Kershaw Chang
cab1008a5b Bug 1874102 - Implement flow control for receiving stream data, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D244989
2025-04-29 08:45:30 +00:00
Kershaw Chang
a408da69b2 Bug 1874102 - Implement flow control for sending stream data, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D244886
2025-04-29 08:45:30 +00:00
Kershaw Chang
2f83405f00 Bug 1874102 - Implement RemoteStreamLimits for incoming stream flow control, r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D243782
2025-04-29 08:45:29 +00:00