summaryrefslogtreecommitdiffstats
path: root/widget/IMEData.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-09 13:19:56 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-11 13:45:02 +0100
commite338d996999867b5d4f66d47837c56dba73a7f6b (patch)
tree84b4304ce865be29f62fa952fb4d1c8c1fb19fe9 /widget/IMEData.h
parentf61a99e5ed6de754e9e99d05634c508f0b4d951a (diff)
downloadUXP-e338d996999867b5d4f66d47837c56dba73a7f6b.tar
UXP-e338d996999867b5d4f66d47837c56dba73a7f6b.tar.gz
UXP-e338d996999867b5d4f66d47837c56dba73a7f6b.tar.lz
UXP-e338d996999867b5d4f66d47837c56dba73a7f6b.tar.xz
UXP-e338d996999867b5d4f66d47837c56dba73a7f6b.zip
Issue #1348 - Part 2: Teach IMEState about Private Browsing mode.
Diffstat (limited to 'widget/IMEData.h')
-rw-r--r--widget/IMEData.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/widget/IMEData.h b/widget/IMEData.h
index b12497be3..04245df26 100644
--- a/widget/IMEData.h
+++ b/widget/IMEData.h
@@ -300,6 +300,10 @@ struct InputContext final
* compatibility with webapps relying on key listeners. */
bool mMayBeIMEUnaware;
+ /* Whether the owning document of the input element has been loaded
+ * in private browsing mode. */
+ bool mInPrivateBrowsing;
+
bool IsOriginMainProcess() const
{
return mOrigin == ORIGIN_MAIN;