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

Issue 2732143002: Fixing a crash due to calling [RWHVCocoa attributedSubstringForProposedRange] when there is no focu… (Closed)

Created:
3 years, 9 months ago by EhsanK
Modified:
3 years, 9 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, mac-reviews_chromium.org, James Su
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing a crash due to calling [RWHVCocoa attributedSubstringForProposedRange] when there is no focused <input>. RWHVCocoa::attributedSubstringForProposedRange maybe called when there is no focused <input>. In such cases, renderWidgetHostView_->GetCompositionInfo() returns nullptr. BUG=698672 Review-Url: https://codereview.chromium.org/2732143002 Cr-Commit-Position: refs/heads/master@{#455028} Committed: https://chromium.googlesource.com/chromium/src/+/8c80b233da12ca81bece40f77b990a84a13c75a2

Patch Set 1 #

Total comments: 3

Patch Set 2 : Added a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 10 (5 generated)
EhsanK
Hello Avi, Could you please take a look? Thanks! https://codereview.chromium.org/2732143002/diff/1/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/2732143002/diff/1/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode3100 content/browser/renderer_host/render_widget_host_view_mac.mm:3100: ...
3 years, 9 months ago (2017-03-06 23:36:19 UTC) #2
Avi (use Gerrit)
lgtm https://codereview.chromium.org/2732143002/diff/1/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/2732143002/diff/1/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode3100 content/browser/renderer_host/render_widget_host_view_mac.mm:3100: if (compositionInfo && !compositionInfo->range.is_empty()) { On 2017/03/06 23:36:19, ...
3 years, 9 months ago (2017-03-06 23:39:10 UTC) #3
EhsanK
Thanks Avi. I added a short comment. I will try to CQ and keep monitoring ...
3 years, 9 months ago (2017-03-07 02:48:53 UTC) #4
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/2732143002/20001
3 years, 9 months ago (2017-03-07 02:49:52 UTC) #7
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 03:14:30 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/8c80b233da12ca81bece40f77b99...

Powered by Google App Engine
This is Rietveld 408576698