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

Issue 2007183002: Make ChromeVox cursor robust to deleted nodes (Closed)

Created:
4 years, 7 months ago by dmazzoni
Modified:
4 years, 6 months ago
Reviewers:
David Tseng
CC:
chromium-reviews, oshima+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, arv+watch_chromium.org, dtseng+watch_chromium.org, dmazzoni+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ChromeVox cursor robust to deleted nodes If a node becomes invalid, the cursor snaps to the nearest valid ancestor. Fixing this uncovered a lot of places where we were assuming that a cursor's node must be valid, but it's possible that even with this new check that a cursor could still be invalid, so I added checks in a lot of places. BUG=613694 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/787fcfd375bb7e761a2ccfb869b1bb4877a2f337 Cr-Commit-Position: refs/heads/master@{#397860}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address feedback #

Total comments: 6

Patch Set 3 : Address last feedback #

Patch Set 4 : null check #

Patch Set 5 : Add one more null check #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -53 lines) Patch
M chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js View 1 2 3 4 5 1 chunk +17 lines, -14 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs View 1 2 3 4 5 19 chunks +80 lines, -26 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js View 1 2 3 4 5 15 chunks +50 lines, -13 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
dmazzoni
4 years, 7 months ago (2016-05-24 21:35:37 UTC) #3
David Tseng
https://codereview.chromium.org/2007183002/diff/1/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js (right): https://codereview.chromium.org/2007183002/diff/1/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js#newcode110 chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js:110: * @return {?AutomationNode} You don't need the '?' (objects ...
4 years, 7 months ago (2016-05-25 20:58:10 UTC) #4
dmazzoni
https://codereview.chromium.org/2007183002/diff/1/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js (right): https://codereview.chromium.org/2007183002/diff/1/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js#newcode110 chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js:110: * @return {?AutomationNode} On 2016/05/25 20:58:10, David Tseng wrote: ...
4 years, 6 months ago (2016-06-01 16:36:50 UTC) #5
David Tseng
https://codereview.chromium.org/2007183002/diff/20001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs File chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs (right): https://codereview.chromium.org/2007183002/diff/20001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs#newcode815 chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs:815: var doCmd = this.doCmd.bind(this); You don't need to bind; ...
4 years, 6 months ago (2016-06-01 20:20:25 UTC) #6
dmazzoni
https://codereview.chromium.org/2007183002/diff/20001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs File chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs (right): https://codereview.chromium.org/2007183002/diff/20001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs#newcode815 chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs:815: var doCmd = this.doCmd.bind(this); On 2016/06/01 20:20:25, David Tseng ...
4 years, 6 months ago (2016-06-01 22:46:56 UTC) #7
David Tseng
lgtm
4 years, 6 months ago (2016-06-01 23:40:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007183002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007183002/60001
4 years, 6 months ago (2016-06-02 16:38:23 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/179915)
4 years, 6 months ago (2016-06-02 17:21:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007183002/80001
4 years, 6 months ago (2016-06-03 21:10:52 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/16051) ios-device-gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 6 months ago (2016-06-03 21:13:57 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007183002/100001
4 years, 6 months ago (2016-06-03 23:15:42 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-04 00:43:29 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-06-04 00:46:01 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/787fcfd375bb7e761a2ccfb869b1bb4877a2f337
Cr-Commit-Position: refs/heads/master@{#397860}

Powered by Google App Engine
This is Rietveld 408576698