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

Issue 2558303003: Remove an incorrect DCHECK (Closed)

Created:
4 years ago by EhsanK
Modified:
4 years ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove an incorrect DCHECK. The method RenderWidget::GetInputMethodController() can return nullptr in the following cases: 1- RenderWidget is swapped out. 2- There is no focused frame in the local root which accepts IME. 2.1 There are no focused local frames. 2.2 The focused local frame does not belong to the same local root as RenderWidget. 2.3 The focused local frame cannot accept IME since WebWidget is not focused (e.g., switched tabs). Therefore, to handle set composition IPC we should not assume controller can never be nullptr. A valid repro case: 1- Create an OOPIF in a page. 2- Add input in OOPIF. 3- Write javascript code which would randomly take focus away from OOPIF. 4- Activate some IME and start typing. Eventually, DCHECK fires because the IPC to set composition arrived after the widget lost the focused frame. BUG=578168 Committed: https://crrev.com/685eb79f0ce22cc6fcdd74a76f0dfc240e1eff34 Cr-Commit-Position: refs/heads/master@{#437904}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -1 line) Patch
M content/renderer/render_widget.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 36 (23 generated)
EhsanK
PTAL.
4 years ago (2016-12-09 06:22:43 UTC) #11
Charlie Reis
LGTM
4 years ago (2016-12-09 19:37:09 UTC) #12
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/2558303003/1
4 years ago (2016-12-10 18:40:33 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/196616)
4 years ago (2016-12-10 20:20:00 UTC) #16
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/2558303003/1
4 years ago (2016-12-11 03:36:51 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/196669)
4 years ago (2016-12-11 05:29:03 UTC) #20
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/2558303003/1
4 years ago (2016-12-12 00:05:05 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/196778)
4 years ago (2016-12-12 01:31:15 UTC) #24
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/2558303003/1
4 years ago (2016-12-12 01:33:04 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/196792)
4 years ago (2016-12-12 03:10:04 UTC) #29
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/2558303003/1
4 years ago (2016-12-12 17:50:23 UTC) #31
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-12 18:31:58 UTC) #34
commit-bot: I haz the power
4 years ago (2016-12-12 18:35:21 UTC) #36
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/685eb79f0ce22cc6fcdd74a76f0dfc240e1eff34
Cr-Commit-Position: refs/heads/master@{#437904}

Powered by Google App Engine
This is Rietveld 408576698