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 b69e505bbbbe6fd522c0af123933eeb063f4d499..1b52a6527f17fb92534775ba0a2fe6ff74a322c4 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 f977e61248e49652d0d119d6da0f6d87f7a73d9f..38c57728b8f782c971a6d62bd82ff4a8b75690d3 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());