Bug 1929474 - [2/2] Document (some) other uses of Win10 tablet mode r=win-reviewers,firefox-desktop-core-reviewers ,handyman,mossop

Document remaining uses of Win10 tablet-mode detection which do not fall
under other bugs.

In particular, we leave alone:
  * `IsTabletDevice` in WinUtils.cpp. This falls under bug 1735765.
  * Uses in WinIMEHandler.{h,cpp}. These fall under bug 1929630.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D228206
This commit is contained in:
Ray Kraesig
2024-11-14 18:01:43 +00:00
parent 19038c4983
commit 019b52df2e
2 changed files with 5 additions and 1 deletions

View File

@@ -1585,7 +1585,9 @@ nsDefaultCommandLineHandler.prototype = {
cmdLine.state != Ci.nsICommandLine.STATE_INITIAL_LAUNCH &&
lazy.WindowsUIUtils.inWin10TabletMode
) {
// In windows 10 tablet mode, do not create a new window, but reuse the existing one.
// In Win10's tablet mode, do not create a new window, but reuse the
// existing one. (Win11's tablet mode is still windowed and has no need
// for this workaround.)
let win = lazy.BrowserWindowTracker.getTopWindow();
if (win) {
win.focus();