Changeset 234658 in webkit


Ignore:
Timestamp:
Aug 7, 2018 10:36:47 AM (6 years ago)
Author:
achristensen@apple.com
Message:

Fix things after r234640
https://bugs.webkit.org/show_bug.cgi?id=188133

Source/WebKit:

  • UIProcess/WebFramePolicyListenerProxy.cpp:

(WebKit::WebFramePolicyListenerProxy::use):
(WebKit::WebFramePolicyListenerProxy::download):
(WebKit::WebFramePolicyListenerProxy::ignore):
Fix assertions as I had in r234552. Also fix a possible race condition with fragment navigations by only keeping the first "use" response.

  • config.h:

Fix IOSMAC build.

LayoutTests:

  • platform/mac-sierra-wk2/http/tests/navigation/keyboard-events-during-provisional-navigation-expected.txt: Added.

Added test expectation for Sierra, which has no safe browsing framework.

Location:
trunk
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r234654 r234658  
     12018-08-07  Alex Christensen  <achristensen@webkit.org>
     2
     3        Fix things after r234640
     4        https://bugs.webkit.org/show_bug.cgi?id=188133
     5
     6        * platform/mac-sierra-wk2/http/tests/navigation/keyboard-events-during-provisional-navigation-expected.txt: Added.
     7        Added test expectation for Sierra, which has no safe browsing framework.
     8
    192018-08-07  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
    210
  • trunk/Source/WebKit/ChangeLog

    r234652 r234658  
     12018-08-07  Alex Christensen  <achristensen@webkit.org>
     2
     3        Fix things after r234640
     4        https://bugs.webkit.org/show_bug.cgi?id=188133
     5
     6        * UIProcess/WebFramePolicyListenerProxy.cpp:
     7        (WebKit::WebFramePolicyListenerProxy::use):
     8        (WebKit::WebFramePolicyListenerProxy::download):
     9        (WebKit::WebFramePolicyListenerProxy::ignore):
     10        Fix assertions as I had in r234552.  Also fix a possible race condition with fragment navigations by only keeping the first "use" response.
     11        * config.h:
     12        Fix IOSMAC build.
     13
    1142018-08-07  Per Arne Vollan  <pvollan@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/WebFramePolicyListenerProxy.cpp

    r234640 r234658  
    5858void WebFramePolicyListenerProxy::use(API::WebsitePolicies* policies, ShouldProcessSwapIfPossible swap)
    5959{
    60     ASSERT(!m_policyResult);
    6160    if (m_safeBrowsingResults) {
    6261        if (m_reply)
    6362            m_reply(WebCore::PolicyAction::Use, policies, swap, WTFMove(*m_safeBrowsingResults));
    64     } else
     63    } else if (!m_policyResult)
    6564        m_policyResult = {{ policies, swap }};
    6665}
     
    6867void WebFramePolicyListenerProxy::download()
    6968{
    70     ASSERT(!m_policyResult);
    7169    if (m_reply)
    7270        m_reply(WebCore::PolicyAction::Download, nullptr, ShouldProcessSwapIfPossible::No, { });
     
    7573void WebFramePolicyListenerProxy::ignore()
    7674{
    77     ASSERT(!m_policyResult);
    7875    if (m_reply)
    7976        m_reply(WebCore::PolicyAction::Ignore, nullptr, ShouldProcessSwapIfPossible::No, { });
  • trunk/Source/WebKit/config.h

    r234640 r234658  
    128128#endif
    129129
    130 #if ((PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)) && !defined(__i386__)
     130#if ((PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)) && !defined(__i386__) && !PLATFORM(IOSMAC)
    131131#define HAVE_SAFE_BROWSING 1
    132132#else
Note: See TracChangeset for help on using the changeset viewer.