Bug 22572

Summary: AccessibleBase.cpp should null-check the results of documentFrameView() calls
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
Add preventative NULL-check to AX calls aroben: review+

Description Eric Seidel (no email) 2008-12-01 14:05:24 PST
AccessibleBase.cpp should null-check the results of documentFrameView() calls

        Calling accLocation() when documentFrameView() could return NULL was the
        cause of the current #1 crasher in Chromium renderer processes.
        I don't expect this crash may even be possible in Win Safari.  But given
        that documentFrameView() clearly can return null (see implementation)
        it makes sense IMO to add these preventative checks.
        In our tree we've fixed the crash by checking mainFrame()->frameView()
        before ever calling this AX code.

It's possible this code is causing crashes for win safari like it was for Chrome, I don't have access to any win safari crash logs to confirm or deny.
Comment 1 Eric Seidel (no email) 2008-12-01 14:06:21 PST
Created attachment 25636 [details]
Add preventative NULL-check to AX calls

 WebKit/win/AccessibleBase.cpp |    7 +++++--
 WebKit/win/ChangeLog          |   19 +++++++++++++++++++
 2 files changed, 24 insertions(+), 2 deletions(-)
Comment 2 Eric Seidel (no email) 2008-12-01 14:06:35 PST
Adam Roben reviewed over irc.  Landing...
Comment 3 Eric Seidel (no email) 2008-12-01 14:11:02 PST
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebKit/win/AccessibleBase.cpp
	M	WebKit/win/ChangeLog
Committed r38873