Commit 75fbbf40 authored by harrison's avatar harrison
Browse files

Reviewed by Tim Hatcher.

        <rdar://problem/5225343> REGRESSION: With View Source window opened, navigating to a different URL in the browser window results in a crash at WebCore::FrameLoader::frameHasLoaded()
        
        _private->loader->frameLoader() was not being nil checked.
        * WebView/WebDataSource.mm:
        (-[WebDataSource request]):
        Add nil check for _private->loader->frameLoader() 



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent fb27cb4e
2007-05-24 David Harrison <harrison@apple.com>
Reviewed by Tim Hatcher.
<rdar://problem/5225343> REGRESSION: With View Source window opened, navigating to a different URL in the browser window results in a crash at WebCore::FrameLoader::frameHasLoaded()
_private->loader->frameLoader() was not being nil checked.
* WebView/WebDataSource.mm:
(-[WebDataSource request]):
Add nil check for _private->loader->frameLoader()
2007-05-23 Anders Carlsson <andersca@apple.com>
 
Reviewed by Geoff.
......
......@@ -404,7 +404,8 @@ static inline void addTypesFromClass(NSMutableDictionary *allTypes, Class objCCl
- (NSMutableURLRequest *)request
{
if (!_private->loader->frameLoader()->frameHasLoaded())
FrameLoader* frameLoader = _private->loader->frameLoader();
if (!frameLoader || !frameLoader->frameHasLoaded())
return nil;
// FIXME: this cast is dubious
......
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