Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Issue 2535303004: Consider TextInputController::inputMethodController() could be nullptr. (Closed)

Created:
4 years ago by EhsanK
Modified:
4 years ago
Reviewers:
Rick Byers
CC:
chromium-reviews, einbinder+watch-test-runner_chromium.org, mlamouri+watch-test-runner_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Consider 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -10 lines) Patch
M components/test_runner/text_input_controller.h View 1 chunk +3 lines, -1 line 0 comments Download
M components/test_runner/text_input_controller.cc View 5 chunks +21 lines, -9 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
EhsanK
Rick, could you please review this CL? Thanks!
4 years ago (2016-11-30 02:16:22 UTC) #3
Rick Byers
LGTM
4 years ago (2016-12-02 01:49:46 UTC) #7
EhsanK
Thanks for the reviews!
4 years ago (2016-12-02 02:36:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2535303004/1
4 years ago (2016-12-02 03:01:25 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-02 03:58:27 UTC) #15
commit-bot: I haz the power
4 years ago (2016-12-02 04:00:27 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/c75b1b3b3a1cf1e3825ea14bc0536cf96f36bd19
Cr-Commit-Position: refs/heads/master@{#435848}

Powered by Google App Engine
This is Rietveld 408576698