summaryrefslogtreecommitdiffstats
path: root/widget/windows/WinIMEHandler.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-09 13:22:29 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-11 13:45:17 +0100
commit00b8ab8be2ac97de7ccb22af499208a281afd161 (patch)
tree8393c6922ea78baa5b67c78d6349f62e499f9661 /widget/windows/WinIMEHandler.h
parente338d996999867b5d4f66d47837c56dba73a7f6b (diff)
downloadUXP-00b8ab8be2ac97de7ccb22af499208a281afd161.tar
UXP-00b8ab8be2ac97de7ccb22af499208a281afd161.tar.gz
UXP-00b8ab8be2ac97de7ccb22af499208a281afd161.tar.lz
UXP-00b8ab8be2ac97de7ccb22af499208a281afd161.tar.xz
UXP-00b8ab8be2ac97de7ccb22af499208a281afd161.zip
Issue #1348 - Part 3: Set IS_PRIVATE input scope in private browsing.
Microsoft IME on Windows 10 20H1 (build 19025+) supports IME private mode by input scope. Although previous Windows versions use an undocumented API for Edge and IE only, the next Windows 10 release will use a public API for it. We pre-empt this potential privacy concern by setting the IS_PRIVATE flag when in PB mode.
Diffstat (limited to 'widget/windows/WinIMEHandler.h')
-rw-r--r--widget/windows/WinIMEHandler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/widget/windows/WinIMEHandler.h b/widget/windows/WinIMEHandler.h
index c18a4437e..c836e8626 100644
--- a/widget/windows/WinIMEHandler.h
+++ b/widget/windows/WinIMEHandler.h
@@ -144,7 +144,8 @@ private:
static decltype(SetInputScopes)* sSetInputScopes;
static void SetInputScopeForIMM32(nsWindow* aWindow,
const nsAString& aHTMLInputType,
- const nsAString& aHTMLInputInputmode);
+ const nsAString& aHTMLInputInputmode,
+ bool aInPrivateBrowsing);
static bool sIsInTSFMode;
// If sIMMEnabled is false, any IME messages are not handled in TSF mode.
// Additionally, IME context is always disassociated from focused window.