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

30968 Коммитов

Автор SHA1 Сообщение Дата
Cristian Tuns 3ab4040704 Backed out changeset 2be56c37e28d (bug 1801844) for causing a regression 2022-11-26 13:39:50 -05:00
Barret Rennie 514ca65bbf Bug 1541508 - Use Services.env in widget/ r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D160154
2022-11-25 19:09:12 +00:00
Stanca Serban 6e6332bbd3 Backed out changeset dab070a6ba77 (bug 1802125) for causing wpt failures on /clipboard-apis. CLOSED TREE 2022-11-25 18:35:18 +02:00
Makoto Kato 2e9e0c4641 Bug 1744687 - Part 3. Fix build error for newer Windows SDK. r=gsvelto
Now hal uses AR_STATE for screen orientation, so we should move it from
WinUtils.cpp to WinUtils.h for newer Windows 11 SDK.

Also, newer Windows SDK has to set WINVER to WIN8 to use auto rotation API.

Differential Revision: https://phabricator.services.mozilla.com/D163099
2022-11-25 15:13:43 +00:00
stransky c2c8c4709e Bug 1791779 [Wayland] Enable maximized window resize workaround for Wayland too r=emilio
https://gitlab.gnome.org/GNOME/gtk/-/issues/1044 is supposed fixed in gtk3-3.24 but it isn't so let's enable it again.

Differential Revision: https://phabricator.services.mozilla.com/D163079
2022-11-25 14:26:23 +00:00
Edgar Chen a1e10a5441 Bug 1802125 - Use nsIClipboard.AsyncGetData to handle GetClipboardAsync IPC; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D162874
2022-11-25 10:49:47 +00:00
Makoto Kato 3dbf8deeb8 Bug 1744687 - Part 1. Lock orientation backend for Windows Tablet. r=gsvelto
Since Windows tablet mode has a orientation lock API, this patch
implements orientation lock backend for Windows tablet mode.

`GetAutoRotationState` API recognizes whether orientation API is supported on
the device. So this fix uses this API to check orientation API capability.

Differential Revision: https://phabricator.services.mozilla.com/D162451
2022-11-24 15:10:15 +00:00
Emilio Cobos Álvarez 6c417c9069 Bug 1802169 - Remove unused -moz-window-frame appearance constants. r=cmartin
Differential Revision: https://phabricator.services.mozilla.com/D162864
2022-11-23 16:20:02 +00:00
Emilio Cobos Álvarez 098175cf10 Bug 1801956 - Move titlebar button handling out of nsBoxFrame. r=tnikkel
This fixes the snap layouts feature on Windows 11.

Instead of using a content attribute (which is somewhat expensive to
look up) use the default appearance and do this where we deal with other
appearance hacks (before building themed backgrounds).

Consolidate this inside a DealWithWindowsAppearanceHacks function along
with the glass stuff.

Differential Revision: https://phabricator.services.mozilla.com/D162757
2022-11-23 09:31:58 +00:00
Emilio Cobos Álvarez ed168ca161 Bug 1801844 - Remove some min-widget-size for various menuitem bits. r=cmartin
This fixes bug 1799460 for good. You can test this on Win10 with
browser.display.windows.non_native_menus=0 or HCM, but same applies to
Win7/8.

The front-end sets their own sizes anyways, and when the windows sizes
are less than the ones the front-end sets, we see that bug.

This is rather annoying because, even though it's fixable (we can fix
the intrinsic sizing code in the web to deal with this properly), it's
probably not worth fixing, as no web-exposed widget has a min-widget
size other than scrollbars and internal form control parts.

Removing this code altogether just works, since as I said before the
front-end sizes the menu parts anyways, so enforcing a given size in C++
is not necessary.

Differential Revision: https://phabricator.services.mozilla.com/D162709
2022-11-22 17:08:26 +00:00
Andrew Osmond d664f47e78 Bug 1801780 - Include more information about blocklist in about:support. r=jrmuizel
We used to provide links to the bug numbers but this was broken
somewhere along the way. Now it is provided the failure IDs from which
it can attempt to extract a bug number, as well as always display any
failure ID and message whenever possible.

Differential Revision: https://phabricator.services.mozilla.com/D162734
2022-11-22 16:00:15 +00:00
Emilio Cobos Álvarez 4c6d8f0273 Bug 1798396 - Remove appearance: -moz-win-glass, which is unused. r=tnikkel
This we don't need to uplift.

Differential Revision: https://phabricator.services.mozilla.com/D162535
2022-11-22 10:56:38 +00:00
stransky 4a8df8f3c8 Bug 1800972 [Linux] Convert char* to GUniquePtr at nsDragService::SourceDataGetXDND() r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162546
2022-11-22 08:14:28 +00:00
stransky d02fafe749 Bug 1800972 [Linux] Implement drag of multiple items r=emilio
- Remove nsDragService::CreateURIList() and replace it by nsDragService::SourceDataGetUriList().
  It reads all items from nsITransferable and put them to uri list.
  If data drop is performed to another application which doesn't have access to internal data storages (mailbox:// for instance),
  request download and save referenced items to /tmp directory.

- Implement SourceDataAppendURLItem() which read one item from nsITransferable and append it to uri list.
  Download and store internal files in /tmp directory.

- Make CreateTempFile() to block native events processing. nsIOutputStream/nsIInputStream read and write operations run
  event loop and can abort D&D operation before we write all data to /tmp. Use nsAppShell to block native event processing
  during read/write to prevent it.

Differential Revision: https://phabricator.services.mozilla.com/D162473
2022-11-22 08:14:27 +00:00
stransky ecd42fb817 Bug 1800972 [Linux] Don't query fallback mime type for image/XDND mime types r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162469
2022-11-22 08:14:27 +00:00
stransky fd206af3cd Bug 1800972 [Linux] Factor out text mime types to extra function r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162468
2022-11-22 08:14:27 +00:00
stransky de4c14cf3f Bug 1800972 [Linux] Factor out image drop r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162467
2022-11-22 08:14:26 +00:00
stransky 5b605e4811 Bug 1800972 [Linux] Factor out XDND to extra function r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162466
2022-11-22 08:14:26 +00:00
stransky 6bcfbacc6d Bug 1800972 [Linux] Use XdndDirectSave on X.org only as it's no supported on XWayland r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162465
2022-11-22 08:14:25 +00:00
stransky bebf9e9a8f Bug 1800972 [Linux] Update logging and clean up of nsDragService r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162463
2022-11-22 08:14:25 +00:00
Hiroyuki Ikezoe 3a5650ace5 Bug 1794070 - Make a pan start event wait for the browser gesture code response. r=botond,dlrobertson
So that APZ can wait to handle the event to do overscrolling until the browser
responds that the event wasn't used for gestures.

Differential Revision: https://phabricator.services.mozilla.com/D160438
2022-11-22 06:52:53 +00:00
Hiroyuki Ikezoe d33990bcde Bug 1794070 - Ignore overscrollable check in CanScrollTargetHorizontally. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D162362
2022-11-22 06:52:52 +00:00
Hiroyuki Ikezoe d32e0125e8 Bug 1794070 - Introduce PanGestureInput::AllowsSwipe(). r=botond
Differential Revision: https://phabricator.services.mozilla.com/D160437
2022-11-22 06:52:52 +00:00
Hiroyuki Ikezoe f7ce055162 Bug 1794070 - Refer mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection flag instead of calling SwipeTrackker::CanTriggerSwipe(). r=botond
And rename mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection to
mMayTriggerSwipe.

So basically once after the flag is set, we should use it.

Differential Revision: https://phabricator.services.mozilla.com/D160436
2022-11-22 06:52:52 +00:00
Hiroyuki Ikezoe ebfe7e293e Bug 1794070 - Make mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection private. r=botond
And initialized it only in ctors so that in the next change we can use it to
tell whether this pan event may trigger swipe or not without calling
SwipeTracker::CanTriggerSwipe every time.

There's an unintuitive change in a GTest sending a horizontal pan-start event.
With this changeset, all incomming pan-start events on desktop platforms
basically set mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection
to true even if the event is generated in GTests. So the pan start event runs
into the short circuit path for swipe-to-navigation. This is a good thing because
it means the GTest replicates what our browser does properly.

Differential Revision: https://phabricator.services.mozilla.com/D160435
2022-11-22 06:52:51 +00:00
Hiroyuki Ikezoe 4c8d1c6a7f Bug 1794070 - Check mOverscrollBehaviorAllowsSwipe whether we do the short circuit for swipe. r=botond
Though this isn't a real bug at all since later we check the flag in
nsBaseWidget::MayStartSwipeForAPZ [1], this change includes a browser
mochitest to make sure `overscroll-behavior: contain` prevents swipe
navigations.


[1] https://searchfox.org/mozilla-central/rev/c5c002f81f08a73e04868e0c2bf0eb113f200b03/widget/nsBaseWidget.cpp#2294

Differential Revision: https://phabricator.services.mozilla.com/D160434
2022-11-22 06:52:51 +00:00
Hiroyuki Ikezoe 9f0a9b18a2 Bug 1794070 - Run the test case listening "wheel" event at the last in browser_test_swipe_gesture.js. r=botond
There's a bug (bug 1800022) that wheel event listeners in the browser process
badly interact with overscroll even so we'd avoid the bug here.

Differential Revision: https://phabricator.services.mozilla.com/D161752
2022-11-22 06:52:50 +00:00
Hiroyuki Ikezoe e6a13e599b Bug 1794070 - Use `await SpecialPowers.popPrefEnv()` explicitly at the end of each test. r=tnikkel
Otherwise prefs set in the previous test case will persist. In fact
some of test cases were lacking "browser.swipe.navigation-icon-move-distance".

Differential Revision: https://phabricator.services.mozilla.com/D161751
2022-11-22 06:52:50 +00:00
Hiroyuki Ikezoe 62bd053169 Bug 1794070 - Fix preference name typos in browser_test_swipe_gesture.js. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D161750
2022-11-22 06:52:50 +00:00
Hiroyuki Ikezoe 9a4979471f Bug 1794070 - Drop "OS X" or macOS in comments about swipe-to-navigation. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D160430
2022-11-22 06:52:48 +00:00
Greg Stoll 26b89142d8 Bug 1793834 - part 8: add preference for number of messages to keep r=handyman
One thing to note is that if the user shrinks this number we won't reclaim any memory - this is because I wanted to avoid doing any more work than necessary when we're logging messages. Let me know if you think this is a problem!

Differential Revision: https://phabricator.services.mozilla.com/D161156
2022-11-22 03:44:54 +00:00
Greg Stoll 454d73d35f Bug 1793834 - part 7: delete entries when a window closes r=handyman
At :handyman's suggestion, just removing the messages when we get a WM_DESTROY message works great and is way less complicated than the previous version of this :-)

Differential Revision: https://phabricator.services.mozilla.com/D161155
2022-11-22 03:44:54 +00:00
Greg Stoll c0063c0b1a Bug 1793834 - part 4/12: log window messages and expose entry point for retrieving them r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D161151
2022-11-22 03:44:52 +00:00
Greg Stoll 0455759851 Bug 1793834 - part 3/12: always record a few special messages for about page r=handyman
This is the list of messages that handyman and rkraesig suggested.

Since we're recording WM_GETMINMAXINFO, we now have better logging for that message.

Differential Revision: https://phabricator.services.mozilla.com/D161150
2022-11-22 03:44:52 +00:00
Greg Stoll 9aa69a4b5c Bug 1793834 - part 2/12: also log HWND in message logs r=handyman
This is helpful for the normal event log, and also necessary since we want to group the messages up by window in the about page.

Differential Revision: https://phabricator.services.mozilla.com/D161149
2022-11-22 03:44:51 +00:00
sotaro 3af7ab7dad Bug 1798242 - Check if video overlay works without ZeroCopyNV12Texture with non-intel GPUs r=gfx-reviewers,jrmuizel
The change disables ZeroCopyNV12Texture for checking if the video overlay works without ZeroCopyNV12Texture with non-intel GPU.

For now, on release, ZeroCopyNV12Texture is not enabled with non-intel GPUs. It blocks to enable video overlay with non-intel GPUs. Then it seems better to enable video overlay with non-intel GPUs on release without ZeroCopyNV12Texture if possible.

Differential Revision: https://phabricator.services.mozilla.com/D160744
2022-11-22 00:45:33 +00:00
Cristian Tuns fc0780ef1b Backed out 10 changesets (bug 1793834, bug 1801724) for causing mochitest failures in browser_preferences_usage.js CLOSED TREE
Backed out changeset 89c9e4e1c3ad (bug 1801724)
Backed out changeset 9130ed00888e (bug 1793834)
Backed out changeset 34f582bdc341 (bug 1793834)
Backed out changeset c34df1dc8ff8 (bug 1793834)
Backed out changeset 2ae1429c886a (bug 1793834)
Backed out changeset a49eff0693ce (bug 1793834)
Backed out changeset 034466342a3b (bug 1793834)
Backed out changeset 2d19fa85af4e (bug 1793834)
Backed out changeset d16ff7dbd155 (bug 1793834)
Backed out changeset a39300a8ddff (bug 1793834)
2022-11-21 17:30:12 -05:00
Greg Stoll 81ffafa5b6 Bug 1801724 - unbreak build by fixing casing in include r=haik
Differential Revision: https://phabricator.services.mozilla.com/D162618
2022-11-21 21:57:56 +00:00
Greg Stoll 9fb7e92244 Bug 1793834 - part 8: add preference for number of messages to keep r=handyman
One thing to note is that if the user shrinks this number we won't reclaim any memory - this is because I wanted to avoid doing any more work than necessary when we're logging messages. Let me know if you think this is a problem!

Differential Revision: https://phabricator.services.mozilla.com/D161156
2022-11-21 19:15:56 +00:00
Greg Stoll 14270825ef Bug 1793834 - part 7: delete entries when a window closes r=handyman
At :handyman's suggestion, just removing the messages when we get a WM_DESTROY message works great and is way less complicated than the previous version of this :-)

Differential Revision: https://phabricator.services.mozilla.com/D161155
2022-11-21 19:15:55 +00:00
Greg Stoll 501216140c Bug 1793834 - part 4/12: log window messages and expose entry point for retrieving them r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D161151
2022-11-21 19:15:54 +00:00
Greg Stoll e45c6ff428 Bug 1793834 - part 3/12: always record a few special messages for about page r=handyman
This is the list of messages that handyman and rkraesig suggested.

Since we're recording WM_GETMINMAXINFO, we now have better logging for that message.

Differential Revision: https://phabricator.services.mozilla.com/D161150
2022-11-21 19:15:54 +00:00
Greg Stoll 9f26e06933 Bug 1793834 - part 2/12: also log HWND in message logs r=handyman
This is helpful for the normal event log, and also necessary since we want to group the messages up by window in the about page.

Differential Revision: https://phabricator.services.mozilla.com/D161149
2022-11-21 19:15:53 +00:00
stransky 8535cd7ed3 Bug 1801488 [Linux] Allow avif preview in GtkFileDialog r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162549
2022-11-21 18:50:02 +00:00
Butkovits Atila 887a77ba5f Backed out 13 changesets (bug 1794070) for causing failures at browser_test_swipe_gesture.js. CLOSED TREE
Backed out changeset afe487b23e1c (bug 1794070)
Backed out changeset b119052f690d (bug 1794070)
Backed out changeset 733188f6b7ca (bug 1794070)
Backed out changeset 53273c86140a (bug 1794070)
Backed out changeset e2e39e61efbe (bug 1794070)
Backed out changeset 93b240feb781 (bug 1794070)
Backed out changeset 78aea5c32e14 (bug 1794070)
Backed out changeset 158008a6363b (bug 1794070)
Backed out changeset 3c3e76c8bf49 (bug 1794070)
Backed out changeset 39beb7abc321 (bug 1794070)
Backed out changeset 0ded01fbbd9e (bug 1794070)
Backed out changeset cf4552e5e11b (bug 1794070)
Backed out changeset 317ee240609d (bug 1794070)
2022-11-21 13:41:34 +02:00
Tom Schuster c1cdfabc87 Bug 1799156 - Filter unknown DataTransferItem flavors. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D161487
2022-11-21 10:18:38 +00:00
Hiroyuki Ikezoe 024f31065c Bug 1794070 - Make a pan start event wait for the browser gesture code response. r=botond
So that APZ can wait to handle the event to do overscrolling until the browser
responds that the event wasn't used for gestures.

Differential Revision: https://phabricator.services.mozilla.com/D160438
2022-11-21 03:10:08 +00:00
Hiroyuki Ikezoe ff188b2a0c Bug 1794070 - Ignore overscrollable check in CanScrollTargetHorizontally. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D162362
2022-11-21 03:10:08 +00:00
Hiroyuki Ikezoe 5a42df888d Bug 1794070 - Introduce PanGestureInput::AllowsSwipe(). r=botond
Differential Revision: https://phabricator.services.mozilla.com/D160437
2022-11-21 03:10:08 +00:00
Hiroyuki Ikezoe 5b39846aeb Bug 1794070 - Refer mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection flag instead of calling SwipeTrackker::CanTriggerSwipe(). r=botond
And rename mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection to
mMayTriggerSwipe.

So basically once after the flag is set, we should use it.

Differential Revision: https://phabricator.services.mozilla.com/D160436
2022-11-21 03:10:07 +00:00