2011-02-04 Maciej Stachowiak <mjs@apple.com>
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Feb 2011 20:47:07 +0000 (20:47 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Feb 2011 20:47:07 +0000 (20:47 +0000)
        Reviewed by Anders Carlsson.

        WebKit2: Crash in WebPageProxy::setPendingAPIRequestURL after web process crashed
        https://bugs.webkit.org/show_bug.cgi?id=53799
        <rdar://problem/8943956>

        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::reload):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77659 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/WebPageProxy.cpp

index b69e505..1b52a65 100644 (file)
@@ -1,3 +1,14 @@
+2011-02-04  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Anders Carlsson.
+
+        WebKit2: Crash in WebPageProxy::setPendingAPIRequestURL after web process crashed
+        https://bugs.webkit.org/show_bug.cgi?id=53799
+        <rdar://problem/8943956>
+
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::WebPageProxy::reload):
+
 2011-02-04  Anders Carlsson  <andersca@apple.com>
 
         Reviewed by Maciej Stachowiak.
index f977e61..38c5772 100644 (file)
@@ -380,7 +380,8 @@ void WebPageProxy::stopLoading()
 
 void WebPageProxy::reload(bool reloadFromOrigin)
 {
-    setPendingAPIRequestURL(m_backForwardList->currentItem()->url());
+    if (m_backForwardList->currentItem())
+        setPendingAPIRequestURL(m_backForwardList->currentItem()->url());
 
     if (!isValid()) {
         reattachToWebProcessWithItem(m_backForwardList->currentItem());