Source/WebKit/ChangeLog

 12018-09-03 Frederic Wang <fwang@igalia.com>
 2
 3 Bug 189190 - REGRESSION(r235398) ASSERTION failure !m_client.didFinishDocumentLoadForFrame
 4 https://bugs.webkit.org/show_bug.cgi?id=189190
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 Assertions to prevent use of the deprecated WKPageSetPageLoaderClient class are hit when
 9 running system Safari with the current macOS/iOS releases, making impossible to launch it.
 10 This patch conditionally skips these assertions so that they are only verified for
 11 macOS >= 10.14 and iOS >= 12.
 12
 13 * UIProcess/API/C/WKPage.cpp:
 14 (WKPageSetPageLoaderClient): Only assert on future OS releases.
 15
1162018-09-01 Darin Adler <darin@apple.com>
217
318 [CFNetwork] Update CFNetwork SPI use to use CFNetworkSPI.h more consistently

Source/WebKit/UIProcess/API/C/WKPage.cpp

@@void WKPageSetPageLoaderClient(WKPageRef pageRef, const WKPageLoaderClientBase*
10431043 {
10441044 initialize(client);
10451045
 1046#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000)
10461047 // WKPageSetPageLoaderClient is deprecated. Use WKPageSetPageNavigationClient instead.
10471048 RELEASE_ASSERT(!m_client.didFinishDocumentLoadForFrame);
10481049 RELEASE_ASSERT(!m_client.didSameDocumentNavigationForFrame);

@@void WKPageSetPageLoaderClient(WKPageRef pageRef, const WKPageLoaderClientBase*
10751076 RELEASE_ASSERT(!m_client.navigationGestureDidBegin);
10761077 RELEASE_ASSERT(!m_client.navigationGestureWillEnd);
10771078 RELEASE_ASSERT(!m_client.navigationGestureDidEnd);
 1079#endif
10781080 }
10791081
10801082 private: