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

Issue 2596303002: Fix an issue with not clearing |selected_text_| when text selection range is empty (Mac) (Closed)

Created:
4 years ago by EhsanK
Modified:
3 years, 12 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

Fix an issue with not clearing |selected_text_| when text selection range is empty (Mac) After the CL (https://codereview.chromium.org/2240553003) on text selection tracking (for OOPIF) the new implementation missed some minor details in tracking text selection. Specificaly, the value of RWHVMac::selected_text_ is not cleared when reported text or range from renderer is empty. This has caused a regression in context menu items where some of the items shown could relate to the previous selection. This CL will: 1- Make sure |selected_text_| is cleared when reported text selection from renderer is empty. 2- Makes sure the overal behavior is perserved from that of text selection before OOPIF-IME changes. BUG=675514 Committed: https://crrev.com/a7d3c829829627d5739ee07b24c79ea97fc57886 Cr-Commit-Position: refs/heads/master@{#440550}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added a unit test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -4 lines) Patch
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 2 chunks +24 lines, -0 lines 2 comments Download
M content/browser/renderer_host/text_input_manager.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
EhsanK
Hello Avi, Could you please review this CL? Thanks! https://codereview.chromium.org/2596303002/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/2596303002/diff/1/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode1015 content/browser/renderer_host/render_widget_host_view_mac.mm:1015: ...
4 years ago (2016-12-22 20:06:23 UTC) #4
Avi (use Gerrit)
lgtm https://codereview.chromium.org/2596303002/diff/20001/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm File content/browser/renderer_host/render_widget_host_view_mac_unittest.mm (right): https://codereview.chromium.org/2596303002/diff/20001/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm#newcode313 content/browser/renderer_host/render_widget_host_view_mac_unittest.mm:313: private: On 2016/12/22 20:06:23, EhsanK wrote: > Weird ...
4 years ago (2016-12-22 20:11:56 UTC) #5
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/2596303002/20001
3 years, 12 months ago (2016-12-23 00:05:02 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
3 years, 12 months ago (2016-12-23 00:09:27 UTC) #14
commit-bot: I haz the power
3 years, 12 months ago (2016-12-23 00:13:28 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a7d3c829829627d5739ee07b24c79ea97fc57886
Cr-Commit-Position: refs/heads/master@{#440550}

Powered by Google App Engine
This is Rietveld 408576698