Issue #1348 - Part 2: Teach IMEState about Private Browsing mode.

This commit is contained in:
wolfbeast 2020-01-09 13:19:56 +01:00 committed by Roy Tam
commit 9d2e51ac97
3 changed files with 21 additions and 8 deletions

View file

@ -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;