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

Issue 626014: AccExplorer shouldn't crash when pointed at chromium.... (Closed)

Created:
10 years, 10 months ago by ctguil
Modified:
9 years, 7 months ago
Reviewers:
jcampan
CC:
chromium-reviews, brettw+cc_chromium.org, darin+cc_chromium.org, jam, ben+cc_chromium.org, Jonas Klink (Google), dmazzoni
Visibility:
Public.

Description

AccExplorer shouldn't crash when pointed at chromium. webaccessibility.h/cc - Change type of OutParams::return_code from bool to int to allow more return codres, specifically RETURNCODE_FAIL. - Add enum ReturnCode to list possible return codes for OutParams::return_code. - Fix up WebAccessibility::GetAccObjInfo so that it returns a failure when an attempt is made to access an invalid object. browseraccessibility.h/cc - Renamed EmptyVariant to ChildSelfVariant since RequestAccessibilityInfo always expects to receive a valid VT_I4 variant for the var_id parameter. - Update RequestAccessibilityInfo so that it returns false if the return_code is RETURNCODE_FAIL. renderview.cc - In RenderView::UpdateURL, completely reset the accessibility cache to it can be successfully recreated and initialized again in RenderView::OnGetAccessibilityInfo. - Set the return_code in RenderView::OnGetAccessibilityInfo. BUG=36162 TEST=Point AccExplorer32 at Chrome an verify that it can successfully display the full accessibility tree.

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 10

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -60 lines) Patch
M chrome/browser/browser_accessibility.h View 1 2 3 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/browser_accessibility.cc View 1 2 3 4 5 6 15 chunks +25 lines, -19 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 6 2 chunks +6 lines, -5 lines 0 comments Download
M webkit/glue/webaccessibility.h View 1 2 4 2 chunks +9 lines, -6 lines 0 comments Download
M webkit/glue/webaccessibility.cc View 1 2 3 4 5 6 9 chunks +24 lines, -24 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jcampan
http://codereview.chromium.org/626014/diff/6001/6004 File chrome/browser/browser_accessibility.cc (right): http://codereview.chromium.org/626014/diff/6001/6004#newcode342 chrome/browser/browser_accessibility.cc:342: || response().output_string.empty()) { Style: || should be on the ...
10 years, 10 months ago (2010-02-19 22:11:33 UTC) #1
ctguil
http://codereview.chromium.org/626014/diff/6001/6004 File chrome/browser/browser_accessibility.cc (right): http://codereview.chromium.org/626014/diff/6001/6004#newcode342 chrome/browser/browser_accessibility.cc:342: || response().output_string.empty()) { On 2010/02/19 22:11:33, jcampan wrote: > ...
10 years, 10 months ago (2010-02-19 23:29:58 UTC) #2
jcampan
LGTM http://codereview.chromium.org/626014/diff/10013/10018 File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/626014/diff/10013/10018#newcode3560 chrome/renderer/render_view.cc:3560: in_params, Nit: should be aligned to the params ...
10 years, 10 months ago (2010-02-20 00:47:00 UTC) #3
ctguil
10 years, 10 months ago (2010-02-22 19:12:03 UTC) #4
Can you submit this change for me? I'm in a read only client.

http://codereview.chromium.org/626014/diff/10013/10018
File chrome/renderer/render_view.cc (right):

http://codereview.chromium.org/626014/diff/10013/10018#newcode3560
chrome/renderer/render_view.cc:3560: in_params,
On 2010/02/20 00:47:01, jcampan wrote:
> Nit: should be aligned to the params above.

Done.

Powered by Google App Engine
This is Rietveld 408576698