Changeset 253908 in webkit


Ignore:
Timestamp:
Dec 25, 2019 5:09:04 AM (4 years ago)
Author:
Wenson Hsieh
Message:

REGRESSION (r253282): Tests that use applyAutocorrection assert in UIScriptContext::requestUIScriptCompletion
https://bugs.webkit.org/show_bug.cgi?id=205588
<rdar://problem/58109942>

Reviewed by Tim Horton.

The change made in r253282 intended to defer completing the async task prepared in
UIScriptController::applyAutocorrection until after the current runloop; however, it ended up keeping the
synchronous call to asyncTaskComplete. Fix this by removing this code, so that we instead wait for the
dispatch_async block to invoke asyncTaskComplete.

  • WebKitTestRunner/ios/UIScriptControllerIOS.mm:

(WTR::UIScriptControllerIOS::applyAutocorrection):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r253899 r253908  
     12019-12-25  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        REGRESSION (r253282): Tests that use applyAutocorrection assert in UIScriptContext::requestUIScriptCompletion
     4        https://bugs.webkit.org/show_bug.cgi?id=205588
     5        <rdar://problem/58109942>
     6
     7        Reviewed by Tim Horton.
     8
     9        The change made in r253282 intended to defer completing the async task prepared in
     10        UIScriptController::applyAutocorrection until after the current runloop; however, it ended up keeping the
     11        synchronous call to asyncTaskComplete. Fix this by removing this code, so that we instead wait for the
     12        dispatch_async block to invoke asyncTaskComplete.
     13
     14        * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
     15        (WTR::UIScriptControllerIOS::applyAutocorrection):
     16
    1172019-12-24  Youenn Fablet  <youenn@apple.com>
    218
  • trunk/Tools/WebKitTestRunner/ios/UIScriptControllerIOS.mm

    r253465 r253908  
    666666            m_context->asyncTaskComplete(callbackID);
    667667        }).get());
    668         if (!m_context)
    669             return;
    670         m_context->asyncTaskComplete(callbackID);
    671668    }).get()];
    672669}
Note: See TracChangeset for help on using the changeset viewer.