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

Issue 2480893002: Fix incorrect implementation of NSTextInputClient. (Closed)

Created:
4 years, 1 month ago by erikchen
Modified:
4 years, 1 month 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

Fix incorrect implementation of NSTextInputClient. The documentation for NSTextInputClient states that: -selectedRange should return { NSNotFound, 0 } if there is no selection range. -attributedSubstringForProposedRange:actualRange: must be able to handle invalid ranges. The previous implementations in RenderWidgetHostViewCocoa failed to do either. BUG=654695 Committed: https://crrev.com/1409990053e62bfbd6744d7f88524e0c0ee95797 Cr-Commit-Position: refs/heads/master@{#431945}

Patch Set 1 #

Patch Set 2 : Add test. #

Patch Set 3 : Fix -selectedRange to be able to return { N, 0 }. #

Total comments: 1

Patch Set 4 : Fix test. #

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

Messages

Total messages: 38 (23 generated)
erikchen
avi: Please review.
4 years, 1 month ago (2016-11-04 23:51:23 UTC) #6
Avi (use Gerrit)
lgtm
4 years, 1 month ago (2016-11-05 01:15:27 UTC) #9
Avi (use Gerrit)
lgtm lgtm
4 years, 1 month ago (2016-11-05 01:15:28 UTC) #10
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/2480893002/20001
4 years, 1 month ago (2016-11-05 01:16:34 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-05 01:21:59 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/7d85f23cb0235db06b0b6c2de1dc29ae5eaeb8f5 Cr-Commit-Position: refs/heads/master@{#430116}
4 years, 1 month ago (2016-11-05 01:24:48 UTC) #15
erikchen
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2497073002/ by erikchen@chromium.org. ...
4 years, 1 month ago (2016-11-12 00:09:10 UTC) #16
erikchen
avi: PTAL. Note the 1-line change between PS 2 and 3.
4 years, 1 month ago (2016-11-12 01:53:34 UTC) #19
Avi (use Gerrit)
lgtm https://codereview.chromium.org/2480893002/diff/40001/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/2480893002/diff/40001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode3021 content/browser/renderer_host/render_widget_host_view_mac.mm:3021: if (selectedRange_.location == NSNotFound) Oh. Oops.
4 years, 1 month ago (2016-11-12 02:13:35 UTC) #21
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/2480893002/40001
4 years, 1 month ago (2016-11-12 02:15:44 UTC) #25
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/2480893002/40001
4 years, 1 month ago (2016-11-12 02:18:28 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/334169)
4 years, 1 month ago (2016-11-12 03:23:06 UTC) #31
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/2480893002/60001
4 years, 1 month ago (2016-11-14 18:10:45 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-14 23:05:47 UTC) #36
commit-bot: I haz the power
4 years, 1 month ago (2016-11-14 23:12:49 UTC) #38
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1409990053e62bfbd6744d7f88524e0c0ee95797
Cr-Commit-Position: refs/heads/master@{#431945}

Powered by Google App Engine
This is Rietveld 408576698