Commit cc652ea3 authored by beidson's avatar beidson
Browse files

Reviewed by Kevin (Sarge)

        <rdar://problem/5219885> - Crash after closing a inline popup ad at http://news.yahoo.com/

        This regressed in http://trac.webkit.org/projects/webkit/changeset/21618

        * WebView/WebFrame.mm:
        (-[WebFrame dataSource]): Null check the frameloader



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent df04993a
2007-05-22 Brady Eidson <beidson@apple.com>
Reviewed by Kevin (Sarge)
<rdar://problem/5219885> - Crash after closing a inline popup ad at http://news.yahoo.com/
This regressed in http://trac.webkit.org/projects/webkit/changeset/21618
* WebView/WebFrame.mm:
(-[WebFrame dataSource]): Null check the frameloader
2007-05-21 Adele Peterson <adele@apple.com>
 
Fix by Darin, reviewed by me.
......
......@@ -775,7 +775,8 @@ static inline WebDataSource *dataSource(DocumentLoader* loader)
- (WebDataSource *)dataSource
{
if (![self _frameLoader]->frameHasLoaded())
FrameLoader* loader = [self _frameLoader];
if (!loader || !loader->frameHasLoaded())
return nil;
return [self _dataSource];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment