Changeset 229841 in webkit


Ignore:
Timestamp:
Mar 21, 2018 6:49:27 PM (6 years ago)
Author:
Chris Dumez
Message:

Regression(r229831): ProcessSwap.Basic API test is crashing
https://bugs.webkit.org/show_bug.cgi?id=183884

Reviewed by Brady Eidson.

This code should only be called for navigation policy decisions.
It used to work without this check because of an early return, which
was dropped in r229831.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::receivedPolicyDecision):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r229837 r229841  
     12018-03-21  Chris Dumez  <cdumez@apple.com>
     2
     3        Regression(r229831): ProcessSwap.Basic API test is crashing
     4        https://bugs.webkit.org/show_bug.cgi?id=183884
     5
     6        Reviewed by Brady Eidson.
     7
     8        This code should only be called for navigation policy decisions.
     9        It used to work without this check because of an early return, which
     10        was dropped in r229831.
     11
     12        * UIProcess/WebPageProxy.cpp:
     13        (WebKit::WebPageProxy::receivedPolicyDecision):
     14
    1152018-03-21  Wenson Hsieh  <wenson_hsieh@apple.com>
    216
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r229831 r229841  
    23702370
    23712371    auto* activePolicyListener = frame.activePolicyListenerProxy();
    2372     if (activePolicyListener) {
     2372    if (activePolicyListener && activePolicyListener->policyListenerType() == PolicyListenerType::NavigationAction) {
    23732373        ASSERT(activePolicyListener->listenerID() == listenerID);
    23742374
Note: See TracChangeset for help on using the changeset viewer.