Commit Graph

939605 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
b985e29a3f Bug 1930476 - Improve units in nsFrameLoader and related code. r=geckoview-reviewers,jwatt,ohall
Use LayoutDevice units for most these things, since it's what they are:

  ScreenIntSize(presContext->AppUnitsToDevPixels(size.width), ...

Is clearly a lie :)

Differential Revision: https://phabricator.services.mozilla.com/D228586
2024-11-12 15:16:50 +00:00
Dave Townsend
a3b8ffea41 Bug 1926507: Badge the taskbar/dock with the profile avatar. r=niklas,jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D228439
2024-11-12 15:16:46 +00:00
Dave Townsend
0b8abf4e93 Bug 1929307: Import prefs from SharedPrefs at startup rather than clobbering them. r=jhirsch,niklas
This also stops sharing browser.profiles.enabled and toolkit.profiles.storeID. In the first case
I want to minimise any risk of this preference getting set to false by accident because then a
user loses all of their profiles. In the latter case there is no point storing it in the database,
we already have a backup mechanism for it and if we have lost the storeID we can't load the database
anyway.

Differential Revision: https://phabricator.services.mozilla.com/D228174
2024-11-12 15:16:46 +00:00
Yazan Al Macki
f478854a4b Bug 1930559 - Fix issue causing test failure spike in browser_searchModeSwitcher_basic.js. r=urlbar-reviewers,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D228619
2024-11-12 15:08:11 +00:00
Niklas Baumgardner
9602b5b9da Bug 1927561 - Add labels to buttons in about:profilemanager. r=jhirsch,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228357
2024-11-12 15:04:24 +00:00
longsonr
54792ef0c9 Bug 1930660 - Replace remaining uses of mozilla::clamped by std::clamp r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D228668
2024-11-12 15:04:10 +00:00
Meg Viar
ea8c0bc0b7 Bug 1927738 - Add New Fenix "Open Share Sheet" Card Messaging Action and Make Nimbus Configurable r=android-reviewers,tthibaud
- Add a new deep link for opening the share sheet that supports configuring the share text, subject, title, and URL via query parameters.
- Add an "OPEN_SHARE_SHEET" action for this deep link for remote message configuration via Nimbus and ensure the query parameters above can be remotely configured via action params.

______________

The follow examples were generated using the action params:
- url = "https://example.com"
- title = "TestTitle"
- subject = "TestSubject"
- text = "TestText"

Text message
{F9006160}

Email message
{F9006161}

Share screen with custom title
{F9006162}

Differential Revision: https://phabricator.services.mozilla.com/D227959
2024-11-12 14:55:37 +00:00
mcarare
1f13bdd71f Bug 1930634 - Exclude generated files from detekt AbsentOrWrongFileLicense rule r=android-reviewers,giorga
Differential Revision: https://phabricator.services.mozilla.com/D228654
2024-11-12 14:54:21 +00:00
Julien Cristau
ac8b373e96 Bug 1926289 - add ubuntu2404-test docker image. r=jmaher
Based on the ubuntu1804 test image, with the following changes:

- update packages list
- avoid failing gnome session start due to missing gsd-power, which
  requires logind
- remove /run/systemd/seats (created at systemd package install), to
  avoid gnome-shell thinking it needs to talk to logind
- stop installing node via tooltool, it should be grabbed from the
  toolchain task when/if necessary
- stop installing psutil via pip, we can use the ubuntu package instead
- remove setcap of gnome-keyring-daemon binary; it's no longer installed
  with the IPC_LOCK capability in newer distro versions
- remove /etc/xdg/autostart/gnome-software-service.desktop (unused)

Differential Revision: https://phabricator.services.mozilla.com/D226477
2024-11-12 14:51:52 +00:00
Eric Chen
4bced98a4c Bug 1922010 Change WindowsLaunchOnLogin functions that interacts with registry keys to be private r=settings-reviewers,mossop
This patch includes 4 main changes

1. Created a guard in `removeLaunchOnLogin` with `getLaunchOnLoginApproved` to make sure the setting is not already disabled before removing the registry key made by Firefox.

2. Change the method doc for `removeLaunchOnLogin` to better describe why we need to guard the function and provide necessary context.

3. Prefixed the functions called within `removeLaunchOnLogin` with "_", to signify that they should not be used as a public API. We should only call those functions after we've checked the return value of `getLaunchOnLoginApproved`.

4. Modified existing unit test, and added a new unit test to make sure `removeLaunchOnLogin` is non-op when Windows has disabled such feature.

Differential Revision: https://phabricator.services.mozilla.com/D227399
2024-11-12 14:51:10 +00:00
Julien Cristau
78554166af Bug 1930648 - don't break system-info on zombies. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D228661
2024-11-12 14:50:34 +00:00
Ryan VanderMeulen
bf07e25f9d Bug 1919803 - Skip test when wasmSimd is disabled. r=jandem
CLOSED TREE
2024-11-12 10:10:55 -05:00
Aaron Train
e3324f1469 Bug 1928668 - Update Slack notify route in various test task configurations r=jajohnson,isabel_rios
Differential Revision: https://phabricator.services.mozilla.com/D227709
2024-11-12 14:37:11 +00:00
Mark Banner
3eaa7986e1 Bug 1929531 - Change the ESLint mozilla/reject-addtask-only rule to highlight only the .only() section. r=frontend-codestyle-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D228170
2024-11-12 14:32:33 +00:00
Eden Chuang
c24e824944 Bug 1672493 - P5 Move ServiceWorker Non-life cycle related operations from RemoteWorker to RemoteWorkerNonLifeCycleController, excepts FetchEventOp. r=asuth
Depends on D198022

Differential Revision: https://phabricator.services.mozilla.com/D198029
2024-11-12 14:28:43 +00:00
Eden Chuang
46942c1113 Bug 1672493 - P4 Move ShareWorker Non-life cycle related operations from RemoteWorker to RemoteWorkerNonLifeCycleOpController. r=asuth
Depends on D198005

Differential Revision: https://phabricator.services.mozilla.com/D198022
2024-11-12 14:28:42 +00:00
Eden Chuang
1b65048112 Bug 1672493 - P3 Move RemoteWorker::Op and SharedWorkerOp out from RemoteWorkerChild. r=asuth
To reuse the code of RemoteWorker::State and RemoteWorker::Op in RemoteWorkerNonLifeCycleOpControllerChild, this patch isolates these reused codes into a new file RemoteWorkerOp.h. And also extract RemoteWorker::SharedWorkerOp into SharedWorkerOp.h.cpp

Depends on D197563

Differential Revision: https://phabricator.services.mozilla.com/D198005
2024-11-12 14:28:42 +00:00
Eden Chuang
60eddeeb39 Bug 1672493 - P2 Create IPC PRemoteWorkerNonLifeCycleOpController. r=asuth
In this patch, IPC PRemoteWorkerNonLifeCycleOpController is created for non-life cycle operations of SharedWorker/ServiceWorker.

PRemoteWorkerNonLifeCycleOpController is the IPC between the content process worker thread and the parent process background thread.
This IPC helps to build a direct communication instead of go through worker launcher thread and the main thread.

Endpoint<PRemoteWorkerNonLifeCycleOpControllerParent/Child> pairs are created when RemoteWorkerManager::LaunchInternal().
The parent Endpoint is binded a RemoteWorkerNonLifeCycleOpControllerParent immediately and connect to the corresponding RemoteWorkerController.
And the child Endpoint is passed through IPC PRemoteWorkerService::SendPRemoteWorkerConstructor() to the content process, and then binds to a PRemoteWorkerNonLifeCycleOpControllerChild when the Worker gets into "Running" state.

After connection is built, RemoteWorkerController can send non-life cycle related operations by PRemoteWorkerNonLifeCycleOpController and send life cycle related operations by PRemoteWorker.

Depends on D196946

Differential Revision: https://phabricator.services.mozilla.com/D197563
2024-11-12 14:28:42 +00:00
Eden Chuang
90df70fd7b Bug 1672493 - P1 Let PRemoteWorkerService manage PRemoteWorker. r=asuth
Currently, PRemoteWorker is managed by PBackground, which should be the same as the manager of the corresponding PRemoteWorkerService. Since the PBackground is gotten from PRemoteWorkerService.

This patch makes PRemoteWorkerService directly manage the PRemoteWorker.

PRemoteWorker will handle the life-cycle-related operations of RemoteWorkers, it might be renamed in the following patches.

Differential Revision: https://phabricator.services.mozilla.com/D196946
2024-11-12 14:28:41 +00:00
Sergei Smagin
eed98264c0 Bug 1851327 - Respect font settings in Reader mode r=reader-mode-reviewers,desktop-theme-reviewers,Gijs,emilio
Use `serif`, `sans-serif` and `monospace` instead of, respectively,
```
Georgia, "Times New Roman", serif
Helvetica, Arial, sans-serif
"Courier New", Courier, monospace
```

This allows browser to actually use fonts set in the font settings.

Differential Revision: https://phabricator.services.mozilla.com/D226989
2024-11-12 14:20:13 +00:00
Aaditya Dhingra
c6ddf11cdc Bug 1902130 - Add content of Android Monorepo FAQ to firefox source docs. r=pollymce,ohall,geckoview-reviewers DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D228554
2024-11-12 14:14:23 +00:00
Aaditya Dhingra
b8468ee680 Bug 1910687 - The long press CFR should point at the back button. r=android-reviewers,skhan
Differential Revision: https://phabricator.services.mozilla.com/D228068
2024-11-12 14:13:47 +00:00
André Bargull
2221f4f249 Bug 1919803: Clobber volatile float registers in ARM64 simulator. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D222800
2024-11-12 14:13:14 +00:00
Dão Gottwald
95e696eb77 Bug 1930608 - Refactor _updateAfterMoveTabTo. r=jswinarton,tabbrowser-reviewers
Also simplify moveTabToStart and moveTabToEnd.

Differential Revision: https://phabricator.services.mozilla.com/D228646
2024-11-12 14:09:52 +00:00
Dão Gottwald
d8ffcc5a06 Bug 1926371 - Make "Remove from group" not move the tab into another group. r=jswinarton,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228636
2024-11-12 14:09:52 +00:00
Ryan VanderMeulen
08854d50ec Bug 1930527 - Update Gradle to version 8.11. r=android-reviewers,petru,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D228608
2024-11-12 14:09:31 +00:00
Sean
4223f4d19e Bug 1915717 - [network markers] Expose http protocol version for a request in the profiler network tab r=acreskey,necko-reviewers,profiler-reviewers,devtools-reviewers,kershaw,aabh,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D227064
2024-11-12 14:02:02 +00:00
longsonr
941ac724d1 Bug 1930221 - prevent underflow as well as overflow when adding an instance time r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D228495
2024-11-12 13:55:34 +00:00
Timothy Nikkel
b4f8af22bc Bug 1930628. Don't store a subdoc display item on a frame if we aren't retaining the display list. r=jwatt
This call site of AddDisplayItem somehow missed that check.

Differential Revision: https://phabricator.services.mozilla.com/D228651
2024-11-12 13:40:45 +00:00
Chun-Min Chang
b3deaf9255 Bug 1919384 - Add 4K image encoding tests in MediaDataEncoderTest r=media-playback-reviewers,alwu
This patch introduces 4K image encoding tests to evaluate the encoder's
behavior, specifically frame dropping, under different scenarios. By
incorporating 4K images into our test suite, we can thoroughly assess
how the encoder handles frame dropping policies in both `Realtime` and
`Record` usages.

In the `Realtime` usage scenario, it allows frames to be dropped if
necessary, preventing delays when the encoder cannot keep up with the
desired frame rate. In contrast, the `Record` usage scenario demands
that all frames be preserved to maintain the highest possible quality.

By adding these 4K tests, we can verify that the encoder correctly
handles frame dropping policies in each usage mode. In addition, it's
easier to assess the performance by adding some timestamps if needed.

Differential Revision: https://phabricator.services.mozilla.com/D224437
2024-11-12 12:30:32 +00:00
Chun-Min Chang
9da4925a84 Bug 1919384 - Use gfx::IntSize to create encoder directly in MediaDataEncoderTest r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D224436
2024-11-12 12:30:31 +00:00
Chun-Min Chang
9d89bd9725 Bug 1919384 - Handle encode-error in AppleVTEncoder for real-time encoding r=media-playback-reviewers,padenot
Previously, the `AppleVTEncoder` did not adequately handle situations
where encoding errors occured, frames were dropped, or the encoder
produced empty outputs. In such cases, the output processing callback
was not invoked. This issue is particularly problematic in real-time
encoding modification introduced in the prior patch, where the encode
promse is managed within the output processing callback, causing the
encode promise to remain pending indefinitely.

This patch introduces an enum that encompasses the following cases:
encode error, frame dropped, empty output, and success. When the system
callback is invoked, the encode result is labeled with one of these enum
valus. This result is then passed to the output processing callback,
allowing it to appropriately resolve or reject the encode promise based
on the specific usage.

By explicitly handling these scenarios, the encoder ensures that encode
promises are properly resolved or rejected in all the cases. This
improvement prevent promises from remaining unresolved and avoiding
potential application hangs.

Differential Revision: https://phabricator.services.mozilla.com/D224054
2024-11-12 12:30:31 +00:00
Chun-Min Chang
cb3a423137 Bug 1919384 - Improve realtime encoding in AppleVTEncoder r=media-playback-reviewers,padenot
This patch enhances the `AppleVTEncoder` to reduce latency in real-time
encoding scenarios, such as video conferencing, where the delay between
encoding a sample and receiving the encoded output is critical.

Previously, the `AppleVTEncoder` introduced at least one iteration of
delay because encoded outputs were only retrieved during the next
`Encode` call, not at the moment encoder produced them. Additionally,
there might be other time-consuming tasks running before the next
`Encode`, causing further delays. This behavior resulted in increased
latency, which is undesirable for real-time applications.

To address this issue, the patch modifies the encoder to return encoded
results directly within the callback function that is executed when
outputs are produced. This change ensures that encoded frames are
delivered immediately as they become available, significantly reducing
overall latency.

However, there are cases where the encoder produces encoded results only
after processing multiple input frames. For example, on TryServer's
machine running macOS 10.15, the first output may only be produced after
receiving multiple inputs. This behavior can cause the encode promise to
remain pending indefinitely if no outputs are produced.

To mitigate this, the patch introduces a timer mechanisam that forces
resolving the pending promise if no results have been yielded within a
reasonable timeframe. This ensures that pending encode promises are
resolved promptly, maintaining responsiveness in real-time applications.

Differential Revision: https://phabricator.services.mozilla.com/D222559
2024-11-12 12:30:30 +00:00
Chun-Min Chang
2ea8352552 Bug 1919384 - Add PrioritizeEncodingSpeedOverQuality setting r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D223367
2024-11-12 12:30:30 +00:00
Chun-Min Chang
bc28137f2a Bug 1919384 - Add MaxFrameDelayCount setting r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D222558
2024-11-12 12:30:30 +00:00
Chun-Min Chang
5d8bc01353 Bug 1919384 - Add number of outputs in drain log r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D223659
2024-11-12 12:30:29 +00:00
Chun-Min Chang
3e71d31867 Bug 1919384 - Apply AutoCFRelease to isUsingHW r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D224053
2024-11-12 12:30:29 +00:00
Chun-Min Chang
158c1f021e Bug 1919384 - Sort include headers r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D224052
2024-11-12 12:30:28 +00:00
Chun-Min Chang
fa795d1124 Bug 1919384 - Update comment for mEncodedData r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D224274
2024-11-12 12:30:28 +00:00
Jan Grulich
12b7d28d85 Bug 1930598 - WebRTC backport: PipeWire camera: use better unique device name for camera devices r=pehrsons,webrtc-reviewers
Originally we used node id from PipeWire as an unique device name and
while this works, it will change everytime PipeWire is restarted. This
has an impact on default camera selection, where for example Firefox can
automatically request a camera device that was used before, but this can
break with the next PipeWire restart.

This is a simple backport of an WebRTC upstream change.

Upstream commit: a5d71009ac1dce7da23813dc9413c03073cfa8ca

Differential Revision: https://phabricator.services.mozilla.com/D228635
2024-11-12 12:28:19 +00:00
Jonathan Kew
63ca02bda9 Bug 1929445 - Use CSSMinMax rather than std::clamp to avoid assertion & undefined behavior on bad arguments. r=dholbert
This is just a band-aid to avoid the undefined behavior of std::clamp;
our CSSMinMax handles the case in a predictable way.

The real issue here must be that the frame has reported a "negative"
block-size, presumably due to integer overflow during nscoord arithmetic.
If we get a pernosco trace of the assertion, perhaps we can identify the
source of the overflow and correct/clamp it earlier to avoid this.

Differential Revision: https://phabricator.services.mozilla.com/D228595
2024-11-12 11:10:58 +00:00
Valentin Gosu
c795423fa2 Bug 1929377 - Add warning to about:neterror on OSX to check Local Network permissions r=necko-reviewers,fluent-reviewers,frontend-codestyle-reviewers,kershaw,flod
Mac OS Sequoia added a Local Network permission. It's very easy for users
to accidentally dismiss this vague prompt and then be confused when trying
to load a local web page.

This patch adds a warning message to the error page on OSX instructing
users to check the permissions.

Differential Revision: https://phabricator.services.mozilla.com/D228576
2024-11-12 10:56:21 +00:00
Emilio Cobos Álvarez
604bbec8ea Bug 1930499 - Only transform urlbar when broken out. r=urlbar-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D228599
2024-11-12 10:48:04 +00:00
Landry Breuil
337a5adc63 Bug 1926030: add missing #include <queue> r=stransky
fixes a build failure on non-wayland builds.

Differential Revision: https://phabricator.services.mozilla.com/D228535
2024-11-12 10:11:20 +00:00
Max Inden
e9b29c8c0b Bug 1929818 - add Glean metric for QUIC frame count r=kershaw,necko-reviewers
Add a Glean metric counting the number of QUIC frames, labeled by frame type.

This is e.g. helpful to measure the impact of [stream receive window
auto-tuning](https://github.com/mozilla/neqo/issues/733), looking at the number
of max_stream_data frames sent and stream_data_blocked frames received.

Differential Revision: https://phabricator.services.mozilla.com/D228295
2024-11-12 10:10:35 +00:00
ogiorgis
4215fbf561 Bug 1928349 - Remove word repetition in manifestparser documentation (typo) r=firefox-source-docs-reviewers,sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D228452
2024-11-12 10:05:12 +00:00
Nicolas Chevobbe
9d8ebf646c Bug 1852762 - [devtools] Remove unused rule in accessibility.css. r=devtools-reviewers,bomsy
The beta class isn't set anywhere.

Differential Revision: https://phabricator.services.mozilla.com/D228627
2024-11-12 08:51:07 +00:00
Henrik Skupin
9241412ab7 Bug 1930090 - [webdriver-bidi] Retry dispatching single event if navigation aborted a dispatch. r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D228442
2024-11-12 08:48:45 +00:00
Emilio Cobos Álvarez
d702fc533e Bug 1930125 - Make SVGGeometryElement::LocalTransform return CSS rather than device pixels. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D228598
2024-11-12 08:38:50 +00:00
iorgamgabriel
08292b8188 Bug 1930480 - [Menu Redesign] Extensions item from homepage menu should open Manage extensions page instead of the submenu. r=android-reviewers,tchoh
Differential Revision: https://phabricator.services.mozilla.com/D228591
2024-11-12 07:41:05 +00:00