Title: [222809] trunk/Source/WebKit
Revision
222809
Author
achristen...@apple.com
Date
2017-10-03 14:10:49 -0700 (Tue, 03 Oct 2017)

Log Message

Fix API tests after r222794.
https://bugs.webkit.org/show_bug.cgi?id=177825

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::willGoToBackForwardListItem):
Sometimes there's no navigation client.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (222808 => 222809)


--- trunk/Source/WebKit/ChangeLog	2017-10-03 21:10:24 UTC (rev 222808)
+++ trunk/Source/WebKit/ChangeLog	2017-10-03 21:10:49 UTC (rev 222809)
@@ -1,5 +1,14 @@
 2017-10-03  Alex Christensen  <achristen...@webkit.org>
 
+        Fix API tests after r222794.
+        https://bugs.webkit.org/show_bug.cgi?id=177825
+
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::WebPageProxy::willGoToBackForwardListItem):
+        Sometimes there's no navigation client.
+
+2017-10-03  Alex Christensen  <achristen...@webkit.org>
+
         Add ObjC equivalent of WKPageLoaderClient.pluginDidFail
         https://bugs.webkit.org/show_bug.cgi?id=177787
         <rdar://problem/22387633>

Modified: trunk/Source/WebKit/UIProcess/WebPageProxy.cpp (222808 => 222809)


--- trunk/Source/WebKit/UIProcess/WebPageProxy.cpp	2017-10-03 21:10:24 UTC (rev 222808)
+++ trunk/Source/WebKit/UIProcess/WebPageProxy.cpp	2017-10-03 21:10:49 UTC (rev 222809)
@@ -1209,7 +1209,7 @@
     PageClientProtector protector(m_pageClient);
 
     if (auto* item = m_process->webBackForwardItem(itemID)) {
-        if (m_navigationClient->willGoToBackForwardListItem(*this, *item, inPageCache, m_process->transformHandlesToObjects(userData.object()).get()))
+        if (m_navigationClient && m_navigationClient->willGoToBackForwardListItem(*this, *item, inPageCache, m_process->transformHandlesToObjects(userData.object()).get()))
             return;
         m_loaderClient->willGoToBackForwardListItem(*this, *item, m_process->transformHandlesToObjects(userData.object()).get());
     }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to