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

32218 Коммитов

Автор SHA1 Сообщение Дата
Otto Länd 266a6bc749 Bug 1789214: apply code formatting via Lando
# ignore-this-changeset
2023-11-06 20:03:02 +00:00
Emilio Cobos Álvarez f3cfe85712 Bug 1789214 - When forcing colors without a color-scheme, compute prefers-color-scheme based on them. r=morgan
This requires moving some code around to PreferenceSheet, but that makes
stuff actually a bit simpler.

Depends on D192574

Differential Revision: https://phabricator.services.mozilla.com/D192575
2023-11-06 19:59:38 +00:00
Emilio Cobos Álvarez 7c79b75571 Bug 1789214 - In Windows HCM, derive system color-scheme from the HCM theme background. r=win-reviewers,mhowell
We might want to do this more generally at the PreferencesSheet level
all the times we're forcing colors, but this should be uncontroversial
and fix the default behavior.

Differential Revision: https://phabricator.services.mozilla.com/D192574
2023-11-06 19:59:37 +00:00
Andrew McCreight a3fd771d1d Bug 1859643 - Remove nsSoundProxy. r=spohl,win-reviewers
nsISound is no longer used in content processes.

Differential Revision: https://phabricator.services.mozilla.com/D192115
2023-11-06 16:27:07 +00:00
Dan Robertson 4e07ef747b Bug 1856196 - prefers-reduced-motion look and feel settings are initialized on linux. r=botond
The prefers-reduced-motion settings must be initialized before the value
is requested. If EnsureInit() has not been called before the
prefers-reduced-motion value is evaluated, we may return an unexpected
value of false.

Differential Revision: https://phabricator.services.mozilla.com/D192475
2023-11-06 14:11:06 +00:00
stransky 873a77588b Bug 1739622 [Linux] Create wider corner resizers for nsWindow::CheckResizerEdge() and restrict edge resize on Wayland r=emilio
- Create corner resizers larger to perform corner resize more comfortable
- Don't allow to grip West/North edges for resize on Wayland & windows with fixed aspect ratio. We can't resize such windows this way.

Differential Revision: https://phabricator.services.mozilla.com/D191758
2023-11-06 11:12:03 +00:00
stransky dbc6be0618 Bug 1739622 [Wayland] Emulate gdk_window_begin_resize_drag() for edge resize r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D191757
2023-11-06 11:12:03 +00:00
stransky fe713ef566 Bug 1857032 [Linux] Don't explicily call widget realize on nsWindow::Create() r=emilio
We don't need to call gtk_widget_realize() on nsWindow::Create() any more as we know if we use CSD decorations already.
Also use fast-path titlebar setting for unrealized widgets.

Differential Revision: https://phabricator.services.mozilla.com/D191172
2023-11-06 10:57:45 +00:00
stransky c576f61eb2 Bug 1859865 [Linux] Don't throw error message if DBus operation is canceled r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192319
2023-11-06 10:39:10 +00:00
stransky 3312286f42 Bug 1762816 [Linux] Watch org.freedesktop.portal.Desktop DBus name and get session data only if it's running r=emilio
Don't autostart org.freedesktop.portal.Desktop by g_dbus_proxy_new_for_bus_sync(), that may block Firefox start for 30~ seconds after desktop start.
Use g_bus_watch_name() and get session data only if org.freedesktop.portal.Desktop is available.

Differential Revision: https://phabricator.services.mozilla.com/D192335
2023-11-06 09:40:32 +00:00
Noemi Erli 71f79e3173 Backed out changeset d160276b237a (bug 1762816) for causing failures in nsLookAndFeel.cpp CLOSED TREE 2023-11-04 11:11:29 +02:00
Cristian Tuns 94f23234fa Backed out changeset f65c77517e3e (bug 1859865) for causing build bustages in nsAppShell.cpp CLOSED TREE 2023-11-04 04:52:00 -04:00
stransky ec1ba0a90f Bug 1762816 [Linux] Watch org.freedesktop.portal.Desktop DBus name and get session data only if it's running r=emilio
Don't autostart org.freedesktop.portal.Desktop by g_dbus_proxy_new_for_bus_sync(), that may block Firefox start for 30~ seconds after desktop start.
Use g_bus_watch_name() and get session data only if org.freedesktop.portal.Desktop is available.

Differential Revision: https://phabricator.services.mozilla.com/D192335
2023-11-04 08:38:10 +00:00
stransky 624df138a4 Bug 1859865 [Linux] Don't throw error message if DBus operation is canceled r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192319
2023-11-04 08:21:16 +00:00
Butkovits Atila bf6ab69197 Backed out changeset 1c0f7ecac0da (bug 1859865) for causing bustages at MPRISServiceHandler.cpp. 2023-11-04 01:59:29 +02:00
stransky ab9de8aaaa Bug 1859865 [Linux] Don't throw error message if DBus operation is canceled r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192319
2023-11-03 21:13:16 +00:00
Edgar Chen 9529ca9444 Bug 1862956 - Use `FlavorsTransferableCanExport` to get the available flavor list from cached transferable; r=nika,spohl
Differential Revision: https://phabricator.services.mozilla.com/D192678
2023-11-03 16:50:11 +00:00
Stanca Serban 65229558a0 Backed out 2 changesets (bug 1837907) for causing xpcshell failures in marSuccessPartialWhileBackgroundTaskRunning.js. CLOSED TREE
Backed out changeset ff3a75dbd146 (bug 1837907)
Backed out changeset a78b3fba98aa (bug 1837907)
2023-11-03 17:25:27 +02:00
stransky fb794e6179 Bug 1837907 [Linux] Catch SIGTERM in nsAppShell and terminate Firefox by standard way r=jld
SIGTERM is supposed to be a standard way how to terminate Linux application. So don't fire emergency exit but run usual exit sequence.

Depends on D191077

Differential Revision: https://phabricator.services.mozilla.com/D191079
2023-11-03 13:41:59 +00:00
stransky 7c8857ba1d Bug 1862159 [Linux] Add IsCancelledGError() to detect DBus operation cancellation r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192621
2023-11-02 22:42:48 +00:00
stransky a6bada96f7 Bug 1861615 [Linux] Fallback to another idle service type from UserIdleServiceMutter::PollIdleTime() r=emilio
Allow to switch to another idle service type if UserIdleServiceMutter::PollIdleTime() fails. We recently see that failures on Mozilla try servers as:
Failed to call GetIdletime(): GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Mutter.IdleMonitor was not provided by any .service files

Differential Revision: https://phabricator.services.mozilla.com/D192208
2023-11-02 20:54:22 +00:00
stransky 28699d5d0e Bug 1861615 [Linux] Get idle time async from DBus r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192061
2023-11-02 20:54:21 +00:00
Emilio Cobos Álvarez 40c5cc4d11 Bug 1861954 - Remove vibrancy on the osx sidebar. r=desktop-theme-reviewers,dao
This accidentally broke in 119 and nobody noticed on the whole nightly +
beta cycle (other than due to bug 1861669).

Given sidebars are not super-commonly used these days, this makes the
code a bit less fragile, and it still looks pretty good IMO. Also, since
we want to get rid of <xul:tree>s, this is one less thing to worry
about.

Depends on D192102

Differential Revision: https://phabricator.services.mozilla.com/D192103
2023-11-01 09:05:51 +00:00
Emilio Cobos Álvarez 5e6062194f Bug 1861671 - Remove some dead macOS menu drawing code. r=mac-reviewers,bradwerth
Some of it was already dead like the arrow-button-{up,down} stuff.

Depends on D192082

Differential Revision: https://phabricator.services.mozilla.com/D192083
2023-10-31 18:57:12 +00:00
ran1 41141c9402 Bug 1837824 - Nightly fails to start in macOS Sonoma virtual machine r=jrmuizel,haik
Adds a search for AppleParavirtGPUs found on macOS virtual machines.

Contributed by ran1@fastlizard4.org.

Differential Revision: https://phabricator.services.mozilla.com/D186081
2023-10-31 06:14:16 +00:00
kriswright 5b3fe5f7fe Bug 1847347 - Implement applicationSupportsSecureRestorableState. r=mac-reviewers,haik
Along with resume session support we need to support secure state restoration. If I'm reading the AppKit documentation correctly (https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3762521-applicationsupportssecurerestora?language=objc) then we're supposed to implement this ourselves with a true return value.

Differential Revision: https://phabricator.services.mozilla.com/D188947
2023-10-30 20:36:05 +00:00
Edgar Chen dbb3940438 Bug 1861927 - Part 2: Add function attribute to nsIAsyncClipboardRequestCallback; r=nika
Depends on D188526

Differential Revision: https://phabricator.services.mozilla.com/D191409
2023-10-30 09:46:19 +00:00
Edgar Chen 6103cbd875 Bug 1861927 - Part 1: Rename nsIAsyncSetClipboardDataCallback to nsIAsyncClipboardRequestCallback; r=nika
It is going to be reused for clipboard read, so make the name more generic.

Differential Revision: https://phabricator.services.mozilla.com/D188526
2023-10-30 09:46:19 +00:00
Vincent Hilla 3f852adf17 Bug 1855633 - Part 2: Activation behavior method for button element. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D183989
2023-10-30 09:39:27 +00:00
Noemi Erli 3503a61e7a Backed out changeset c49f13a2dc69 (bug 1861615) for causing failures in test_bug343416.xhtml and test_ext_idle.html CLOSED TREE 2023-10-27 20:38:27 +03:00
Eitan Isaacson 8653b8bcc8 Bug 1845407 - Don't pump apple events before application starts. r=nika
When we call `nextEventMatchingMask` we send a "did launch app" notification to the OS workspace. If we do that before we call `[NSApp run]` accessibility isn't hooked up yet internally in AppKit and we fail to respond to a11y API queries.

Pumping Apple events is currently used for getting url requests in order to launch Firefox with the URLs loading correctly in a browser window. We can achieve the same result by using `application:openURLs:` in the delegate and calling `run` on the NSApp earlier and then stopping the loop in order to build the command line and finish initializing Firefox.

Also pumping the apple event queue should be deferred in `ProcessNextNativeEvent` until `[NSApp run]` is called.

Differential Revision: https://phabricator.services.mozilla.com/D184524
2023-10-27 16:28:13 +00:00
stransky b11e2be835 Bug 1861615 [Linux] Get idle time async from DBus r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192061
2023-10-27 14:19:10 +00:00
Alexandre Lissy c6286f0f8f Bug 1666084 - Build MPRIS name with DBus unique name r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D191858
2023-10-27 09:29:31 +00:00
Ray Kraesig fdea82453d Bug 1861494 - [1/1] remove unneeded #include r=win-reviewers,mhowell
MinGW can't find the header <shobjidl_core.h>... but also doesn't need
to, since it's implicitly included by <shobjidl.h>.

Differential Revision: https://phabricator.services.mozilla.com/D192022
2023-10-26 22:06:08 +00:00
Narcis Beleuzu 491bb648e7 Backed out changeset a1dbe7d20995 (bug 1666084) for GTest failure on MPRISServiceHandler.cpp . CLOSED TREE 2023-10-27 00:16:14 +03:00
Alexandre Lissy c1897abd04 Bug 1666084 - Build MPRIS name with DBus unique name r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D191858
2023-10-26 19:20:28 +00:00
Ray Kraesig 9ce2a860d0 Bug 1837079 - [10/10] WinFileDialog: log HRESULT of failed Win32 calls r=ipc-reviewers,nika,win-reviewers,mhowell
Add a new telemetry item, `WindowsFileDialogErrorCode`, which will be
included along with the failure reason for any file-dialog-specific
IPC failure crashes from the Windows file dialog utility process.

Differential Revision: https://phabricator.services.mozilla.com/D187417
2023-10-26 18:21:30 +00:00
Ray Kraesig b30ef50e6e Bug 1837079 - [9/10] WinFileDialog: add ProcessingError() implementations r=ipc-reviewers,nika,win-reviewers,mhowell
Implement `ProcessingError` in `WinFileDialog{Parent,Child}` to report
errors in logging -- and, in the child process, report them via
telemetry and crash.

Differential Revision: https://phabricator.services.mozilla.com/D180344
2023-10-26 18:21:30 +00:00
Ray Kraesig 12fc5c8e26 Bug 1837079 - [7.5/10] - Restore window-enable state on conclusion of ShowRemote() r=win-reviewers,mhowell
An undocumented side-effect of IFileDialog::Show() is that the top-level
window which is the ancestor of the file-dialog's owner window is
disabled when the dialog is shown, and reenabled when the dialog is
dismissed.

However, if the external process containing the file-dialog crashes, the
latter action will never be taken -- we're left with an unresponsive
window. In this case, reenable it manually.

Depends on D180343

Differential Revision: https://phabricator.services.mozilla.com/D190733
2023-10-26 18:21:29 +00:00
Ray Kraesig e2771bde2c Bug 1837079 - [7/10] Open Windows file picker out-of-process r=gstoll,handyman,ipc-reviewers,nika,win-reviewers,mhowell
When opening a new Windows file dialog, open it out-of-process if
possible. Fall back to opening it in-process if that fails. (This
behavior is configurable with a pref.)

Differential Revision: https://phabricator.services.mozilla.com/D180343
2023-10-26 18:21:29 +00:00
Ray Kraesig 3c94ba2a4e Bug 1837079 - [6/10] Properly destroy actors and utility processes r=ipc-reviewers,nika
The IPC subsystem effectively owns IPC actors, and requires an explicit
call to `Close()` to destroy a toplevel actor: releasing the last RefPtr
doesn't cut it. Similarly, the UtilityProcessManager owns the utility
processes it creates, and one must explicitly call `DestroyProcess()`.

Handle both of these lifetime issues by using a custom meta-RefPtr for
WinFileDialogParent which will close the actor and kill the process upon
its final `Release()`.

Differential Revision: https://phabricator.services.mozilla.com/D180345
2023-10-26 18:21:28 +00:00
Ray Kraesig 6c2facfc0c Bug 1837079 - [5/10] Create WinFileDialog IPDL protocol and implementation r=gstoll,handyman,ipc-reviewers,nika,win-reviewers,mhowell
Create and implement a new top-level IPC protocol, `PWinFileDialog`,
using the primitives from bug 1833450 and the new sandboxing type from
the previous commit.

Again, this commit does not actually create any instances of the new
protocol; that will come in a later commit in this patchset.

Differential Revision: https://phabricator.services.mozilla.com/D180342
2023-10-26 18:21:28 +00:00
Ray Kraesig c5c346391a Bug 1837079 - [3/10] Refactor Windows nsFilePicker dialog creation r=gstoll,handyman,win-reviewers,mhowell
Extract the creation of Windows file dialogs into a separate function,
as preparation for (sometimes) performing that remotely (that is, out-
of-process).

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D180340
2023-10-26 18:21:27 +00:00
Ray Kraesig f72bfe06f7 Bug 1837079 - [2/10] Use HRESULT rather than nsresult for nsFilePickerCommands r=gstoll,win-reviewers,mhowell
`nsresult` was expected to be easier to use, but this turned out not to
be the case in practice.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D180339
2023-10-26 18:21:27 +00:00
Ray Kraesig 6b5f456099 Bug 1837079 - [1/10] Cleanup: fix up GetShellItemPath r=handyman
Replace use of MakeScopeExit with reexisting UniquePtr deleter.

Followup from bug 1833450. No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D180338
2023-10-26 18:21:26 +00:00
Masayuki Nakano e302445217 Bug 1244437 - part 1: Make `HTMLEditUtils::IsFormatNode` check same tags as Chromium does r=m_kato
I realized that our `HTMLEditUtils::IsFormatNode` is not maintained different
from the other browsers.  Therefore, only we do not check new elements defined
after HTML 4.01.  This patch aligns the list of the format elements to the
others [1].

Then, this also changes some expectations of `editing/run/formatblock.html`
to align common behavior of the browsers.

Note that we mapped `formatBlock` of `execCommand` to `cmd_paragraphState`,
and the XUL command handles `<blockquote>` in a different path [2] and the
behavior is pretty different from the other formatBlock command implementations.
Therefore, this patch creates new command for `formatBlock` and makes
`HTMLEditor` switch behavior in any places.

1. ba50f40fc4:third_party/WebKit/WebCore/editing/FormatBlockCommand.cpp;l=114-134
2. https://searchfox.org/mozilla-central/rev/6602bdf9fff5020fbc8e248c963ddddf09a77b1b/editor/libeditor/HTMLEditor.cpp#2461-2474

Differential Revision: https://phabricator.services.mozilla.com/D190900
2023-10-26 03:45:17 +00:00
Mark Striemer fea5adf07d Bug 1858987 - Update Toolkit :: XUL Widgets references to Toolkit :: UI Widgets r=reusable-components-reviewers,tgiles
Differential Revision: https://phabricator.services.mozilla.com/D191115
2023-10-25 15:17:53 +00:00
Norisz Fay cd9cb278d0 Backed out changeset 374f05be6d50 (bug 1845407) for causing bc failures on browser/components/* , browser/base/content/* CLOSED TREE 2023-10-25 06:45:34 +03:00
Emilio Cobos Álvarez 73b1942f93 Bug 1860386 - Use non-native drawing for -moz-menulist-arrow-button. r=stransky
The current code is unused, because we hide the combobox dropmarker in:

 * https://searchfox.org/mozilla-central/rev/cc35ffeaf33a3f4e0b2ce6b77f9e5817a705e0c8/toolkit/themes/linux/global/menulist.css#46

If you remove that rule, you'll see that what we draw is very far from a
dropmarker.

Use non-native rendering like windows to have a proper implementation of
this if someone needs it, and remove the native code.

Remove parentfocused check which can't ever work (that attribute isn't
set anywhere).

Differential Revision: https://phabricator.services.mozilla.com/D191563
2023-10-24 21:20:56 +00:00
Andrew McCreight e37e4cf2d7 Bug 1859680 - Reject RecvFindImageText() messages on unsupported platforms. r=gregtatum
Also, avoid calling SendFindImageText() on unsupported platforms, so that
test_image_recognition_unsupported.html will pass.

Differential Revision: https://phabricator.services.mozilla.com/D191678
2023-10-24 19:04:55 +00:00