Commit c733b946 authored by pkasting@chromium.org's avatar pkasting@chromium.org

2009-05-05 Peter Kasting <pkasting@google.com>

        Reviewed by Brady Eidson.

        Safety-check m_documentLoader before dereferencing.  While it seems
        unlikely this could fail (as Safari 3 shipped without this),
        technically almost any call can change or reset m_documentLoader.

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::receivedFirstData):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 62502aff
2009-05-05 Peter Kasting <pkasting@google.com>
Reviewed by Brady Eidson.
Safety-check m_documentLoader before dereferencing. While it seems
unlikely this could fail (as Safari 3 shipped without this),
technically almost any call can change or reset m_documentLoader.
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::receivedFirstData):
2009-05-05 Dan Bernstein <mitz@apple.com>
- Tiger build fix
......@@ -878,10 +878,12 @@ void FrameLoader::receivedFirstData()
dispatchDidCommitLoad();
dispatchWindowObjectAvailable();
String ptitle = m_documentLoader->title();
// If we have a title let the WebView know about it.
if (!ptitle.isNull())
m_client->dispatchDidReceiveTitle(ptitle);
if (m_documentLoader) {
String ptitle = m_documentLoader->title();
// If we have a title let the WebView know about it.
if (!ptitle.isNull())
m_client->dispatchDidReceiveTitle(ptitle);
}
m_workingURL = KURL();
......
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