Changeset 235618 in webkit


Ignore:
Timestamp:
Sep 4, 2018 10:28:28 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Bug 189190 - REGRESSION(r235398) ASSERTION failure !m_client.didFinishDocumentLoadForFrame
https://bugs.webkit.org/show_bug.cgi?id=189190

Patch by Frederic Wang <fwang@igalia.com> on 2018-09-04
Reviewed by Alex Christensen.

Assertions to prevent use of the deprecated WKPageSetPageLoaderClient class are hit when
running system Safari with the current macOS/iOS releases, making impossible to launch it.
This patch conditionally skips these assertions so that they are only verified for
macOS > 10.14 or other platforms.

  • UIProcess/API/C/WKPage.cpp:

(WKPageSetPageLoaderClient): Only assert on future OS releases.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r235616 r235618  
     12018-09-04  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 Alex Christensen.
     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 or other platforms.
     12
     13        * UIProcess/API/C/WKPage.cpp:
     14        (WKPageSetPageLoaderClient): Only assert on future OS releases.
     15
    1162018-09-04  Alex Christensen  <achristensen@webkit.org>
    217
  • trunk/Source/WebKit/UIProcess/API/C/WKPage.cpp

    r235560 r235618  
    10441044            initialize(client);
    10451045           
     1046#if !PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED > 101400
    10461047            // WKPageSetPageLoaderClient is deprecated. Use WKPageSetPageNavigationClient instead.
    10471048            RELEASE_ASSERT(!m_client.didFinishDocumentLoadForFrame);
     
    10761077            RELEASE_ASSERT(!m_client.navigationGestureWillEnd);
    10771078            RELEASE_ASSERT(!m_client.navigationGestureDidEnd);
     1079#endif
    10781080        }
    10791081
Note: See TracChangeset for help on using the changeset viewer.