mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1409113 - Add nsIPresShell::HasHandledUserInput() status to InputContext r=masayuki
MozReview-Commit-ID: 60x35NKEzhA
This commit is contained in:
parent
bacda12532
commit
e1181af857
@ -1279,6 +1279,9 @@ IMEStateManager::SetIMEState(const IMEState& aState,
|
||||
context.mMayBeIMEUnaware = context.mIMEState.IsEditable() &&
|
||||
sCheckForIMEUnawareWebApps && MayBeIMEUnawareWebApp(aContent);
|
||||
|
||||
context.mHasHandledUserInput =
|
||||
aPresContext && aPresContext->PresShell()->HasHandledUserInput();
|
||||
|
||||
context.mInPrivateBrowsing =
|
||||
aPresContext &&
|
||||
nsContentUtils::IsInPrivateBrowsing(aPresContext->Document());
|
||||
|
@ -325,6 +325,11 @@ struct InputContext final
|
||||
* compatibility with webapps relying on key listeners. */
|
||||
bool mMayBeIMEUnaware;
|
||||
|
||||
/**
|
||||
* True if the document has ever received user input
|
||||
*/
|
||||
bool mHasHandledUserInput;
|
||||
|
||||
/* Whether the owning document of the input element has been loaded
|
||||
* in private browsing mode. */
|
||||
bool mInPrivateBrowsing;
|
||||
|
Loading…
Reference in New Issue
Block a user