Commit Graph
379 Commits
Author SHA1 Message Date
Tom Schuster 5fb4496e9e Bug 2039903 - Use nsIWidget::NativeModifiers for SynthesizeNativeKeyEvent. r=masayuki,win-reviewers,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D301246
2026-06-01 14:01:33 +00:00
Tom Schuster 86424bc2fa Bug 2039903 - Change from nsIWidget::Modifiers to nsIWidget::NativeModifiers. r=masayuki,geckoview-reviewers,win-reviewers,m_kato,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D300802
2026-06-01 14:01:29 +00:00
rperta 700e284d7c Revert "Bug 2039903 - Use nsIWidget::NativeModifiers for SynthesizeNativeMouseScrollEvent. r=masayuki,win-reviewers,gstoll" for causing build bustages
This reverts commit 312ba34b1e.

Revert "Bug 2039903 - Use nsIWidget::NativeModifiers for SynthesizeNativeKeyEvent. r=masayuki,win-reviewers,gstoll"

This reverts commit cdcd922a07.

Revert "Bug 2039903 - Use proper types for PBrowser::SynthesizeNativeMouseEvent. r=masayuki"

This reverts commit 45369938ed.

Revert "Bug 2039903 - Change from nsIWidget::Modifiers to nsIWidget::NativeModifiers. r=masayuki,geckoview-reviewers,win-reviewers,m_kato,gstoll"

This reverts commit 479f174ddb.
2026-06-01 11:32:48 +00:00
Tom Schuster cdcd922a07 Bug 2039903 - Use nsIWidget::NativeModifiers for SynthesizeNativeKeyEvent. r=masayuki,win-reviewers,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D301246
2026-06-01 10:06:05 +00:00
Tom Schuster 479f174ddb Bug 2039903 - Change from nsIWidget::Modifiers to nsIWidget::NativeModifiers. r=masayuki,geckoview-reviewers,win-reviewers,m_kato,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D300802
2026-06-01 10:06:01 +00:00
serge-sans-paille ee865b499d Bug 2025142 - Make mozilla::HashMap and nsTHashtable constinit-compatible r=emilio,media-playback-reviewers,win-reviewers,layout-reviewers,janerik,nika,padenot,gstoll,dshin
This removes 24 MOZ_RUNINIT references.

Differential Revision: https://phabricator.services.mozilla.com/D289105
2026-04-02 15:02:27 +00:00
Sandor Molnar b8a88e1695 Revert "Bug 2025142 - Make mozilla::HashMap and nsTHashtable constinit-compatible r=emilio,media-playback-reviewers,win-reviewers,layout-reviewers,janerik,nika,padenot,gstoll,dshin" for causing build bustages @ FuzzyLayer.cpp
This reverts commit 4a99446c28.
2026-04-02 13:32:24 +00:00
serge-sans-paille 4a99446c28 Bug 2025142 - Make mozilla::HashMap and nsTHashtable constinit-compatible r=emilio,media-playback-reviewers,win-reviewers,layout-reviewers,janerik,nika,padenot,gstoll,dshin
This removes 24 MOZ_RUNINIT references.

Differential Revision: https://phabricator.services.mozilla.com/D289105
2026-04-02 12:47:56 +00:00
Sandor Molnar 01ddd288da Revert "Bug 2025142 - Make mozilla::HashMap and nsTHashtable constinit-compatible r=emilio,media-playback-reviewers,win-reviewers,layout-reviewers,janerik,nika,padenot,gstoll,dshin" for causing build bustages @ nsTHashtable.h
This reverts commit ed4485da16.
2026-04-02 07:06:57 +00:00
serge-sans-paille ed4485da16 Bug 2025142 - Make mozilla::HashMap and nsTHashtable constinit-compatible r=emilio,media-playback-reviewers,win-reviewers,layout-reviewers,janerik,nika,padenot,gstoll,dshin
This removes 24 MOZ_RUNINIT references.

Differential Revision: https://phabricator.services.mozilla.com/D289105
2026-04-02 06:31:50 +00:00
Sylvestre Ledru 4f6b8b516d Bug 2023419 - Remove Emacs/Vim modelines from widget/ r=emilio
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287877
2026-03-16 17:22:02 +00:00
serge-sans-paille 1667ec582b Bug 1995723 - Remove unused inclusion of mozilla/ArrayUtils.h r=necko-reviewers,application-update-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,firefox-svg-reviewers,layout-reviewers,gstoll,canaltinova,bytesized,alwu,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D269573
2025-10-23 07:30:37 +00:00
Greg Stoll 5f39ebf46d Bug 1968297 - explicitly refresh thumbnail after windows are restored and resized r=win-reviewers,handyman
This is yet another attempt to get reasonable-looking thumbnails in the
taskbar for restored windows after they get resized. This time we're
actually signaling to invalidate the current thumbnail after the window
gets restored, which I'm hopeful will fix the issue.

As usual, this all works on my machine with a dev build :-/

Differential Revision: https://phabricator.services.mozilla.com/D269422
2025-10-22 18:54:43 +00:00
Emilio Cobos Álvarez 71f243cfd9 Bug 1995498 - Assume per-monitor DPI awareness. r=win-reviewers,gstoll
This should be fine on Win10+ which is all we support.

Differential Revision: https://phabricator.services.mozilla.com/D269342
2025-10-22 11:03:21 +00:00
serge-sans-paille 7662b3abdc Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 19:36:01 +00:00
Cristina Horotan 8a1b1970b7 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing Gtest failures on AlreadyAddRefed.h
This reverts commit e98adca292.
2025-10-21 16:16:29 +00:00
serge-sans-paille e98adca292 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 15:05:17 +00:00
Alexandru Marc b65113ed08 Revert "Bug 1995498 - Assume per-monitor DPI awareness. r=win-reviewers,gstoll" for causing mass win failures
This reverts commit 47ae5f5f7b.
2025-10-21 14:37:03 +00:00
Emilio Cobos Álvarez 47ae5f5f7b Bug 1995498 - Assume per-monitor DPI awareness. r=win-reviewers,gstoll
This should be fine on Win10+ which is all we support.

Differential Revision: https://phabricator.services.mozilla.com/D269342
2025-10-21 13:46:37 +00:00
Cristina Horotan aab924e90d Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing build bustage at nsBrowserApp.cpp
This reverts commit fd0ffa193c.
2025-10-21 10:44:13 +00:00
serge-sans-paille fd0ffa193c Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 09:44:11 +00:00
Narcis Beleuzu e1e6bbb1c9 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing bustages on Document.cpp
This reverts commit b23c15e927.
2025-10-21 06:34:58 +00:00
serge-sans-paille b23c15e927 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 06:01:36 +00:00
David P ef5dca4f88 Bug 1979113: Reject AsyncEncodeAndWriteIcon promise if task dispatch fails on Windows r=daisuke,win-reviewers,gstoll
Reject the promise at destruction unless it has already been resolved/rejected.
Also return an error (that is ignored).

Differential Revision: https://phabricator.services.mozilla.com/D258614
2025-07-25 23:28:35 +00:00
dadaa f4221a2181 Bug 1974901: Reject all errors that occur in CacheFavicon by Promise. r=win-reviewers,mak,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D255887
2025-07-03 23:13:38 +00:00
Daisuke Akatsuka b0ba4595c0 Bug 1915762: Apply getFaviconForPage() in WinUtils r=win-reviewers,mak,handyman
Depends on D240120

Differential Revision: https://phabricator.services.mozilla.com/D240566
2025-04-23 04:40:34 +00:00
Cristian Tuns a9d8f21da6 Backed out 11 changesets (bug 1915762) for causing node failures in gecko.d.ts CLOSED TREE
Backed out changeset 5c7edcb3b105 (bug 1915762)
Backed out changeset 05691232a461 (bug 1915762)
Backed out changeset 964a29c9a07a (bug 1915762)
Backed out changeset 5d74e419e249 (bug 1915762)
Backed out changeset 677c35e884d3 (bug 1915762)
Backed out changeset 8a7b0b87a0ef (bug 1915762)
Backed out changeset 5e38449cd4d9 (bug 1915762)
Backed out changeset ec8a0553d97a (bug 1915762)
Backed out changeset fb2232e5f3b5 (bug 1915762)
Backed out changeset b290501f5832 (bug 1915762)
Backed out changeset 9955e42e749b (bug 1915762)
2025-04-22 22:15:19 -04:00
Daisuke Akatsuka 3e8c3a522f Bug 1915762: Apply getFaviconForPage() in WinUtils r=win-reviewers,mak,handyman
Depends on D240120

Differential Revision: https://phabricator.services.mozilla.com/D240566
2025-04-23 01:49:38 +00:00
Masayuki Nakano bd2de2da87 Bug 1953047 - part 2: Move most static staff of TSFTextStore to TSFUtils r=m_kato
This should've already been done when creating `TSFUtils`, though.

Differential Revision: https://phabricator.services.mozilla.com/D242680
2025-03-31 22:03:19 +00:00
Emilio Cobos Álvarez 3b70a5797b Bug 1954963 - Disable mica popups in some cases to work around a DWM bug. r=win-reviewers,handyman
See comments (both in the code and the bug) and feedback hub link.

Differential Revision: https://phabricator.services.mozilla.com/D242293
2025-03-25 12:02:51 +00:00
Emilio Cobos Álvarez 62a2fcfa6c Bug 1954361 - Allow to customize the mica backdrop we use for top levels. r=win-reviewers,handyman
It's particularly interesting to test TABBEDWINDOW vs. MAINWINDOW, but
there's no harm in making acrylic (TRANSIENTWINDOW) work, so do that
too.

Differential Revision: https://phabricator.services.mozilla.com/D241751
2025-03-24 18:53:47 +00:00
Masayuki Nakano 4a29806dfa Bug 1953046 - Clean up TSFTextStore.h and TSFTextStore.cpp r=m_kato,win-reviewers,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D240970
2025-03-18 03:56:25 +00:00
Emilio Cobos Álvarez 88d0eee4d0 Bug 1934439 - Make the mica prefs toggle-able at runtime. r=win-reviewers,rkraesig
Not particularly pretty but this will do.

Differential Revision: https://phabricator.services.mozilla.com/D238705
2025-02-20 22:35:19 +00:00
Alexandru Marc bcd2506cc6 Backed out changeset 1345d8372866 (bug 1934439) for causing build bustages @ WinUtils.cpp CLOSED TREE 2025-02-20 22:05:59 +02:00
Emilio Cobos Álvarez 41b43cea76 Bug 1934439 - Make the mica prefs toggle-able at runtime. r=win-reviewers,rkraesig
Not particularly pretty but this will do.

Differential Revision: https://phabricator.services.mozilla.com/D238705
2025-02-20 18:21:03 +00:00
Emilio Cobos Álvarez a1164bbc70 Bug 1924741 - Add mica acrylic menu support behind a pref. r=win-reviewers,desktop-theme-reviewers,rkraesig,dao
Off by default pending UX review etc.

Differential Revision: https://phabricator.services.mozilla.com/D238194
2025-02-20 14:08:52 +00:00
Ray Kraesig abb542d615 Bug 1945257 - [5/7] Remove MOZ_WM_* mouse messages, phase 2 of 3 r=masayuki,win-reviewers,gstoll
Remove `WinUtils::GetNativeMessage()`, which is now effectively always
the identity function.

Also, remove `MouseScrollHandler::NeedsMessage()` as dead code.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236595
2025-02-19 18:32:15 +00:00
Ray Kraesig 3d638889bf Bug 1945257 - [2/7] Remove ProcessNative*Message() as dead code r=masayuki,win-reviewers,gstoll
Remove the MouseScrollHandler::ProcessNative{MouseWheel,Scroll}Message()
functions as dead code.

Similarly, remove the now-unused mIsWaitingInternalMessage flag, its
getter, and all associated conditionals.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236592
2025-02-19 18:32:13 +00:00
Butkovits Atila c89afbb999 Backed out 7 changesets (bug 1945257) for causing failures at test_mouse_scroll.xhtml. CLOSED TREE
Backed out changeset 52108bc91d78 (bug 1945257)
Backed out changeset 78d8555e2920 (bug 1945257)
Backed out changeset e5bb427aea9d (bug 1945257)
Backed out changeset 3fe71d666e05 (bug 1945257)
Backed out changeset c8de5bb2daf1 (bug 1945257)
Backed out changeset 9337cb798f25 (bug 1945257)
Backed out changeset a5d3925c71b1 (bug 1945257)
2025-02-17 00:49:48 +02:00
Ray Kraesig 65fb500880 Bug 1945257 - [5/7] Remove MOZ_WM_* mouse messages, phase 2 of 3 r=masayuki,win-reviewers,gstoll
Remove `WinUtils::GetNativeMessage()`, which is now effectively always
the identity function.

Also, remove `MouseScrollHandler::NeedsMessage()` as dead code.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236595
2025-02-16 20:53:53 +00:00
Ray Kraesig d92aa9295e Bug 1945257 - [2/7] Remove ProcessNative*Message() as dead code r=masayuki,win-reviewers,gstoll
Remove the MouseScrollHandler::ProcessNative{MouseWheel,Scroll}Message()
functions as dead code.

Similarly, remove the now-unused mIsWaitingInternalMessage flag, its
getter, and all associated conditionals.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236592
2025-02-16 20:53:52 +00:00
Stanca Serban 6419b96716 Backed out 7 changesets (bug 1945257) for causing mochitests failures in test_mouse_scroll.xhtml. CLOSED TREE
Backed out changeset 6ae8f390be84 (bug 1945257)
Backed out changeset 2d084241efe2 (bug 1945257)
Backed out changeset 3fd5a363ffcf (bug 1945257)
Backed out changeset f4e07c41993e (bug 1945257)
Backed out changeset 535dad00024c (bug 1945257)
Backed out changeset 5331173141da (bug 1945257)
Backed out changeset 847d20d64c1e (bug 1945257)
2025-02-12 23:20:25 +02:00
Ray Kraesig 821f19fe60 Bug 1945257 - [5/7] Remove MOZ_WM_* mouse messages, phase 2 of 3 r=masayuki,win-reviewers,gstoll
Remove `WinUtils::GetNativeMessage()`, which is now effectively always
the identity function.

Also, remove `MouseScrollHandler::NeedsMessage()` as dead code.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236595
2025-02-12 16:29:42 +00:00
Ray Kraesig cfb6913eb5 Bug 1945257 - [2/7] Remove ProcessNative*Message() as dead code r=masayuki,win-reviewers,gstoll
Remove the MouseScrollHandler::ProcessNative{MouseWheel,Scroll}Message()
functions as dead code.

Similarly, remove the now-unused mIsWaitingInternalMessage flag, its
getter, and all associated conditionals.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D236592
2025-02-12 16:29:41 +00:00
Ray Kraesig 3336fc9124 Bug 1930374 - [1/4] Drive-by: silence ResolveJunctionPointsAndSymLinks messages r=win-reviewers,handyman
These messages aren't really Widget-relevant, even if they are
Windows-OS-relevant. Push them off into their own logging channel.

Differential Revision: https://phabricator.services.mozilla.com/D232574
2025-01-09 16:29:28 +00:00
Nicholas Rishel 57ab7f1ebd Bug 1930048 - Fix MinGW compile errors. r=mpohle,win-reviewers,gstoll
Tagalong: Clean up include order and remove unnecessary includes.

Differential Revision: https://phabricator.services.mozilla.com/D229033
2024-11-14 20:45:22 +00:00
David P ee2f9e36cc Bug 1921759: Log the process that holds the clipboard mutex on Windows r=win-reviewers,rkraesig
When Windows keeps us from getting access to the clipboard because another
application is using it, this will report the exe that currently holds the
mutex.

Differential Revision: https://phabricator.services.mozilla.com/D227742
2024-11-07 00:22:46 +00:00
Sandor Molnar a832f24cac Backed out 3 changesets (bug 1921759) for causing build bustages @ nsClipboard.cpp CLOSED TREE
Backed out changeset 0d0028bf6cb6 (bug 1921759)
Backed out changeset 9d0d5e7c1e3f (bug 1921759)
Backed out changeset e02e9d6b2875 (bug 1921759)
2024-11-06 04:58:28 +02:00
David P 8f2e16c8dd Bug 1921759: Log the process that holds the clipboard mutex on Windows r=win-reviewers,rkraesig
When Windows keeps us from getting access to the clipboard because another
application is using it, this will report the exe that currently holds the
mutex.

Differential Revision: https://phabricator.services.mozilla.com/D227742
2024-11-06 01:03:17 +00:00
Ray Kraesig 28f8d3d9cf Bug 1819421 - [1/2] create parallel check for Win11 tablet mode r=win-reviewers,Gijs,gsvelto,gstoll
Win11's tablet mode is different from Win10's tablet mode in ways both
subtle and gross. Avoid unifying them implicitly, and make it clear that
they should not be unified _explicitly_ without testing.

Unfortunately, Windows 11's API for checking whether the device is in
tablet mode is broken -- it requires one to know whether the device is a
tablet to interpret the return value, but there is no documented API
providing that information. We use a heuristic partly borrowed from
Chromium and partly based on independent investigation.

As all of the code using WindowsUIUtils effectively only checked for
Win10's tablet mode, this commit technically has no functional
changes.

Differential Revision: https://phabricator.services.mozilla.com/D224244
2024-11-04 13:56:20 +00:00