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

Issue 2161623002: Fix BrowserAccessibilityManagerMac: set empty selected text range. (Closed)

Created:
4 years, 5 months ago by a-a-l
Modified:
4 years, 5 months ago
Reviewers:
aboxhall, David Tseng, Mark Mentovai, nektarios, dmazzoni, agbondareva
CC:
aboxhall+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, jam, je_julie, nektar+watch_chromium.org, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix BrowserAccessibilityManagerMac: set empty selected text range. Raises an NSInvalidArgumentException if call setObject for NSMutableDictionary with a nil value. Dictionary uses NSNull instead of nil. Selected text marker range may be nil sometimes (see BrowserAccessibilityCocoa::selectedTextMarkerRange), that leads to a crashe in BrowserAccessibilityManagerMac::GetUserInfoForSelectedTextChangedNotification(). R=aboxhall@chromium.org, dmazzoni@chromium.org, dtseng@chromium.org BUG= Committed: https://crrev.com/70d267e4de6002e24be82eddbb99337ab9e37362 Cr-Commit-Position: refs/heads/master@{#407194}

Patch Set 1 #

Patch Set 2 : y #

Patch Set 3 : y #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M content/browser/accessibility/browser_accessibility_manager_mac.mm View 1 2 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
a-a-l
Raises an NSInvalidArgumentException if call setObject for NSMutableDictionary with a nil value. Dictionary uses NSNull ...
4 years, 5 months ago (2016-07-18 14:48:17 UTC) #1
nektarios
I was the original author of this code and mark@chromium one of the reviewers.
4 years, 5 months ago (2016-07-18 15:40:34 UTC) #3
nektarios
I would prefer if the key was not set in the dictionary if selection comes ...
4 years, 5 months ago (2016-07-18 15:44:37 UTC) #4
a-a-l
On 2016/07/18 15:44:37, nektarios wrote: > I would prefer if the key was not set ...
4 years, 5 months ago (2016-07-19 14:36:51 UTC) #5
a-a-l
4 years, 5 months ago (2016-07-19 14:37:06 UTC) #6
nektarios
I don't think we need to check if the object responds to selector. I believe ...
4 years, 5 months ago (2016-07-19 14:59:50 UTC) #7
a-a-l
On 2016/07/19 14:59:50, nektarios wrote: > I don't think we need to check if the ...
4 years, 5 months ago (2016-07-21 15:21:53 UTC) #8
a-a-l
4 years, 5 months ago (2016-07-21 15:22:02 UTC) #9
chromium-reviews
Let's leave it as it is. Just remove the respondsToSelector and put braces around the ...
4 years, 5 months ago (2016-07-21 15:33:44 UTC) #10
nektarios
Also, you don't need to say != nil simply do: if (selected_text) {...} The stylistic ...
4 years, 5 months ago (2016-07-21 15:38:55 UTC) #11
AGBondareva
On 2016/07/21 15:33:44, chromium-reviews wrote: > Let's leave it as it is. Just remove the ...
4 years, 5 months ago (2016-07-22 15:00:43 UTC) #12
AGBondareva
4 years, 5 months ago (2016-07-22 15:00:59 UTC) #14
nektarios
lgtm
4 years, 5 months ago (2016-07-22 15:58:32 UTC) #17
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/2161623002/40001
4 years, 5 months ago (2016-07-22 15:58:48 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/223379)
4 years, 5 months ago (2016-07-22 16:04:28 UTC) #20
dmazzoni
lgtm
4 years, 5 months ago (2016-07-22 17:43:35 UTC) #22
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/2161623002/40001
4 years, 5 months ago (2016-07-22 17:44:07 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-22 17:47:16 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 17:49:25 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/70d267e4de6002e24be82eddbb99337ab9e37362
Cr-Commit-Position: refs/heads/master@{#407194}

Powered by Google App Engine
This is Rietveld 408576698