Chromium Code Reviews
DescriptionConsider TextInputController::inputMethodController() could be nullptr.
The assumption that, while in layout tests, WebFrameWidget::getActiveWebInputMethodController()
always returns a (non-null) pointer is incorrect. For example, if the WebViewImpl loses focus, then the bit m_imeAcceptEvents is set to false which will stop WebViewImpl from processing any IME events.
Alternatively, if there are no focused frames within the local root
associated with WebViewImpl (i.e., focusedFrame() is null) then again there
will be no focused frames for IME and conequently, no
WebInputMethodControllers.
This patch will first rename
TextInputController()::inputMethodController() to
GetInputMethodController() and then makes sure all the references to the
method are taking potential nullptr-ness of the result into account.
BUG=668827
Committed: https://crrev.com/c75b1b3b3a1cf1e3825ea14bc0536cf96f36bd19
Cr-Commit-Position: refs/heads/master@{#435848}
Patch Set 1 #
Messages
Total messages: 17 (11 generated)
|
||||||||||||||||||||||||||||