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

32310 Коммитов

Автор SHA1 Сообщение Дата
stransky b261dd7d56 Bug 1866669 [Linux/X11] Apply shape mask to parent window (mShell) for non-compositing desktops r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D194868
2023-11-29 12:08:45 +00:00
stransky ff8cc581ed Bug 1837907 [Linux] Enable AppShell SIGTERM signal handler for Firefox r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D194183
2023-11-29 12:08:15 +00:00
stransky ca66547202 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-29 12:08:15 +00:00
Emilio Cobos Álvarez dd2f04e81e Bug 1867043 - [wayland] Work around GDK custom cursor bug. r=stransky
Clear the cursor explicitly using eCursor_none, so that smaller cursors
don't leave artifacts.

This works around https://gitlab.gnome.org/GNOME/gtk/-/issues/6242

Differential Revision: https://phabricator.services.mozilla.com/D194877
2023-11-29 12:06:24 +00:00
Butkovits Atila fe1644b3dc Backed out changeset 8d11a3a0d707 (bug 1843782) for causing failures complaining about RemoteProcessMonitor . CLOSED TREE 2023-11-29 05:51:34 +02:00
Ashley Hale 5fed10025e Bug 1843782 - WebGL software rendering when mesa/vmwgfx driver detected r=gfx-reviewers,bradwerth,jrmuizel,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D192039
2023-11-29 02:15:17 +00:00
Edgar Chen fd9072b080 Bug 1866994 - Handle clipboard contextmenu in parent process; r=geckoview-reviewers,extension-reviewers,webidl,win-reviewers,saschanaz,robwu,nika,Gijs,m_kato,emilio
This patch makes the clipboard context menu trigger from the parent process rather
than the content process. A new method, `confirmUserPaste`, is added on `nsIPromptService`
to trigger frontend UI.

The behavior of handling multiple requests should remain unchanged, new tests are
added to ensure that.

Differential Revision: https://phabricator.services.mozilla.com/D190405
2023-11-28 15:38:01 +00:00
Stephen A Pohl 877adfeec8 Bug 1478347: Ensure that macOS-provided menu items are available in the Edit menu, especially in multi-language environments where Firefox may have a different language than the OS. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D193931
2023-11-28 03:11:40 +00:00
Sandor Molnar 3b95748905 Backed out changeset c1e95a42b8d7 (bug 1843782) for causing gv-junit-fis failures. CLOSED TREE 2023-11-28 02:31:02 +02:00
Ashley Hale 5150f6a2bf Bug 1843782 - WebGL software rendering when mesa/vmwgfx driver detected r=gfx-reviewers,bradwerth,jrmuizel,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D192039
2023-11-27 23:25:14 +00:00
Stephen A Pohl 50e66f5102 Bug 1699936: Prevent possible crashes due to Objective-C exceptions when drawing the menubar on macOS. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D143845
2023-11-27 15:25:11 +00:00
Stephen A Pohl 08cf4945a8 Bug 1765391: Add more exception handling to help isolate when the OS is throwing an NSGenericException when painting menu bars on macOS. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D193794
2023-11-27 15:25:11 +00:00
Emilio Cobos Álvarez bc851eaebb Bug 1866734 - Fix --disable-dbus builds. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D194728
2023-11-27 10:19:52 +00:00
Makoto Kato e07a314dc7 Bug 1865617 - RemoteDataDecoder::Decode should handle OOM. r=geckoview-reviewers,media-playback-reviewers,owlish,jolin
According to crash data, `NewDirectByteBuffer` throws OOM exception.
`RemoteDataDecoder::Decode` can return the error, so I should use fallible
version of it.

Differential Revision: https://phabricator.services.mozilla.com/D194199
2023-11-27 08:33:51 +00:00
stransky 97ea9c500e Bug 1864382 [Linux] Update nsWindow logging r=emilio
Depends on D194621

Differential Revision: https://phabricator.services.mozilla.com/D194622
2023-11-25 10:41:46 +00:00
stransky 1c6ae672b6 Bug 1864382 [Linux] Implement moz_container_unrealize() to explicitly destroy mContainer r=emilio
Depends on D193497

Differential Revision: https://phabricator.services.mozilla.com/D194621
2023-11-25 10:41:46 +00:00
stransky da7fb65f85 Bug 1864382 [Linux] Use gdk_window_get_root_origin() to get origin for popup windows too and apply workaround for Gtk3 < 3.24.35 r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D193497
2023-11-25 10:41:46 +00:00
stransky 4dadfcf0ce Bug 1864382 [Linux/X11] Always paint to mContainer r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D193401
2023-11-25 10:41:45 +00:00
Mike Conley 95b7f2040e Bug 1529276 - Limit the IShellLinkW description to MAX_PATH. r=mhowell,win-reviewers
According to the Microsoft documentation, this is the maximum length
of the string allowed for the description property of an IShellLinkW.
This also adds a test for long descriptions to ensure that they are
properly truncated.

This patch also:

- Adjusts the tests a little bit to be less race-y, particularly with the
  SetAppID routine in the JumpListBuilder constructor.

- Fixes the issue where the tests weren't properly copying in the intended
  strings for test titles and descriptions.

Differential Revision: https://phabricator.services.mozilla.com/D193693
2023-11-23 18:28:32 +00:00
Mike Conley 3a84ac2989 Bug 1529276 - Write Gtests for the new JumpListBuilder. r=mhowell,bhearsum,win-reviewers
We use a mock JumpListBackend to act as a stand-in for the win32 API
for populating the JumpList, and test that it gets called with the
expected arguments for each major function of JumpListBuilder.

Differential Revision: https://phabricator.services.mozilla.com/D189407
2023-11-23 18:28:32 +00:00
Mike Conley 131e0c53af Bug 1529276 - Create a new JumpListBuilder implementation that is simpler and doesn't block the main thread. r=mhowell,win-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D181675
2023-11-23 18:28:31 +00:00
Mike Conley fb7f92f4a0 Bug 1529276 - Rename the old Windows jump list mechanism to LegacyJumpListBuilder. r=mhowell,bhearsum,win-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D181674
2023-11-23 18:28:31 +00:00
Jan Horak 593738583c Bug 1860269 Implement org.freedesktop.portal.Inhibit for wakelock listener; r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D192364
2023-11-23 10:32:26 +00:00
serge-sans-paille a7846edae4 Bug 1864083 - Add missing MOZ_DBUS_CFLAGS r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D194080
2023-11-23 05:37:44 +00:00
Cosmin Sabou 48999df658 Backed out 6 changesets (bug 1529276) for causing windows non-unified build bustages.
Backed out changeset ce28bf4ceb89 (bug 1529276)
Backed out changeset d1f5c71b03c2 (bug 1529276)
Backed out changeset 4b9ca2a0747d (bug 1529276)
Backed out changeset 76e6475c68ba (bug 1529276)
Backed out changeset 2aebd14532e7 (bug 1529276)
Backed out changeset f3724116a44d (bug 1529276)
2023-11-23 02:04:24 +02:00
Mike Conley f64017ed36 Bug 1529276 - Limit the IShellLinkW description to MAX_PATH. r=mhowell,win-reviewers
According to the Microsoft documentation, this is the maximum length
of the string allowed for the description property of an IShellLinkW.
This also adds a test for long descriptions to ensure that they are
properly truncated.

This patch also:

- Adjusts the tests a little bit to be less race-y, particularly with the
  SetAppID routine in the JumpListBuilder constructor.

- Fixes the issue where the tests weren't properly copying in the intended
  strings for test titles and descriptions.

Differential Revision: https://phabricator.services.mozilla.com/D193693
2023-11-22 21:28:57 +00:00
Mike Conley 4d657b8bf3 Bug 1529276 - Write Gtests for the new JumpListBuilder. r=mhowell,bhearsum,win-reviewers
We use a mock JumpListBackend to act as a stand-in for the win32 API
for populating the JumpList, and test that it gets called with the
expected arguments for each major function of JumpListBuilder.

Differential Revision: https://phabricator.services.mozilla.com/D189407
2023-11-22 21:28:56 +00:00
Mike Conley 481dde8e1f Bug 1529276 - Create a new JumpListBuilder implementation that is simpler and doesn't block the main thread. r=mhowell,win-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D181675
2023-11-22 21:28:56 +00:00
Mike Conley 7226d25048 Bug 1529276 - Rename the old Windows jump list mechanism to LegacyJumpListBuilder. r=mhowell,bhearsum,win-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D181674
2023-11-22 21:28:55 +00:00
Sandor Molnar 916d73a100 Backed out 6 changesets (bug 1529276) for causing build bustages. CLOSED TREE
Backed out changeset bbc273ed7b53 (bug 1529276)
Backed out changeset cecadb59647e (bug 1529276)
Backed out changeset 45bb7eff2174 (bug 1529276)
Backed out changeset 18392ebcd16d (bug 1529276)
Backed out changeset e0776e6b4cff (bug 1529276)
Backed out changeset 666e52d79396 (bug 1529276)
2023-11-22 21:49:57 +02:00
Ray Kraesig 44c8d1c1d5 Bug 1864118 - deny attempts to open a Windows file picker in headless mode r=win-reviewers,gstoll,cmartin
We don't necessarily even have access to a user-accessible desktop in
headless mode. Opening a file dialog isn't going to work out.

In practice, file-dialog invocations will typically be intercepted by
Puppeteer before they ever get here (see MockFilePicker.sys.mjs), but
that's configuration-dependent. Explicitly check whether we're in
headless mode before proceeding.

Differential Revision: https://phabricator.services.mozilla.com/D193332
2023-11-22 19:35:34 +00:00
Mike Conley 6abf40e798 Bug 1529276 - Limit the IShellLinkW description to MAX_PATH. r=mhowell,win-reviewers
According to the Microsoft documentation, this is the maximum length
of the string allowed for the description property of an IShellLinkW.
This also adds a test for long descriptions to ensure that they are
properly truncated.

This patch also:

- Adjusts the tests a little bit to be less race-y, particularly with the
  SetAppID routine in the JumpListBuilder constructor.

- Fixes the issue where the tests weren't properly copying in the intended
  strings for test titles and descriptions.

Differential Revision: https://phabricator.services.mozilla.com/D193693
2023-11-22 19:24:08 +00:00
Mike Conley 5ad7b4c095 Bug 1529276 - Write Gtests for the new JumpListBuilder. r=mhowell,bhearsum,win-reviewers
We use a mock JumpListBackend to act as a stand-in for the win32 API
for populating the JumpList, and test that it gets called with the
expected arguments for each major function of JumpListBuilder.

Differential Revision: https://phabricator.services.mozilla.com/D189407
2023-11-22 19:24:08 +00:00
Mike Conley dc45383b7f Bug 1529276 - Create a new JumpListBuilder implementation that is simpler and doesn't block the main thread. r=mhowell,win-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D181675
2023-11-22 19:24:07 +00:00
Mike Conley cae8a40b88 Bug 1529276 - Rename the old Windows jump list mechanism to LegacyJumpListBuilder. r=mhowell,bhearsum,win-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D181674
2023-11-22 19:24:07 +00:00
Emilio Cobos Álvarez f72926e418 Bug 1756635 - Don't SendUnhibit() on the WakeLockTopic destructor. rpending=stransky
As it might bring the lock "back to life", which is wrong, causing
assertions. Instead use shutdown (the listener destructor) to do that.

This fixes https://treeherder.mozilla.org/jobs?repo=autoland&revision=f4fae08660c1f3323af7bdef3ed152a3d34bc751&selectedTaskRun=LLP4n5QZSjKS2c4dIMbD1Q.0

MANUAL PUSH: Tier 2 Orange fix CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D194405
2023-11-22 19:07:17 +01:00
Emilio Cobos Álvarez e30885b97d Bug 1756635 - Fix non-unified build.
MANUAL PUSH: Trivial fix CLOSED TREE
2023-11-22 18:20:22 +01:00
Emilio Cobos Álvarez 8bdab429d2 Bug 1756635 - Make GTK wake lock lifetime more similar to other desktop platforms. r=stransky
This matches what macOS and Windows do, and should clean up the wake
lock stuff early enough to not hit this issue.

Differential Revision: https://phabricator.services.mozilla.com/D194376
2023-11-22 14:28:35 +00:00
stransky bc4be37a4b Bug 1865723 [Linux] Reduce noise from nsUserIdleServiceGTK r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D194182
2023-11-22 07:13:28 +00:00
Cosmin Sabou fc86bd50da Backed out 3 changesets (bug 1837907) for causing marionette crashes. CLOSED TREE
Backed out changeset 89b150d0c0ab (bug 1837907)
Backed out changeset 8502ba0bf6a6 (bug 1837907)
Backed out changeset e1d41d593702 (bug 1837907)
2023-11-21 15:02:53 +02:00
stransky 9e2a6ac2b2 Bug 1863409 [Linux] Don't add CSD borders to undecorated windows r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D194210
2023-11-21 12:01:27 +00:00
stransky 0a55cd6b63 Bug 1863409 [Wayland] Count CSD decoration size borders for CSD windows with system titlebar off r=emilio
Right now we count CSD decoration size borders only for CSD windows with system titlebar on
which is incorrect as such windows also have CSD borders on Wayland.

Differential Revision: https://phabricator.services.mozilla.com/D193787
2023-11-21 12:01:27 +00:00
stransky aae0367a09 Bug 1865739 [Linux] Lock mouse cursor for PIP windows only r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D194189
2023-11-21 11:26:09 +00:00
stransky be62770a51 Bug 1837907 [Linux] Disable AppShell SIGTERM signal handler for xpcshell r=emilio
Depends on D191079

Differential Revision: https://phabricator.services.mozilla.com/D194183
2023-11-21 11:25:26 +00:00
stransky 85248def7e 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-21 11:25:26 +00:00
Cosmin Sabou 5b8f04ac70 Backed out changeset 2f11050c90d8 (bug 1860269) for turning Bug 1756635 into permafail. CLOSED TREE 2023-11-21 12:28:01 +02:00
Jan Horak a8730e9214 Bug 1860269 Implement org.freedesktop.portal.Inhibit for wakelock listener; r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D192364
2023-11-21 07:16:25 +00:00
Masayuki Nakano 3a88f319e5 Bug 1865256 - Add a telemetry probe to collect IME names which inserted CRLFs on Windows r=chutten,m_kato,win-reviewers,mhowell
It'll be notify IMEs on Windows of text/selection with only LFs instead of
CRLFs because the conversion cost from LFs to CRLFs is serious for DOM tree
change performance and Chrome also uses only LFs too.

However, we know some old TIPs inserted CRLFs.  TIPs should use emulating
`Enter` key press instead for the issue, "insert paragraph" vs.
"insert line break" in rich text editors, some IMEs may still insert CRLFs
directly.  However, nobody knows whether there is such TIPs.

Therefore, let's collect the IME names which inserted CRLFs via TSF directly.

Differential Revision: https://phabricator.services.mozilla.com/D193879
2023-11-21 03:32:22 +00:00
stransky ef501dfcdb Bug 1865302 [Linux] Don't resume compositor if we're missing mCompositorWidgetDelegate r=emilio
We pause compositor for scale changes to avoid flickering during repaint.
If compositor is deleted during the pause, don't try to resume it.
Just flip it back to enabled and let SetCompositorWidgetDelegate() or map event to resume it.

Differential Revision: https://phabricator.services.mozilla.com/D194110
2023-11-20 20:26:24 +00:00
Sebastian Hengst 8062de64b3 Bug 1865645 - set jumplist as skipped on Windows independent of version. CLOSED TREE 2023-11-21 00:08:54 +01:00