Changeset 171129 in webkit


Ignore:
Timestamp:
Jul 15, 2014 6:29:18 PM (10 years ago)
Author:
mitz@apple.com
Message:

WKWebView’s FormClient::willSubmitForm should use CompletionHandlerCallChecker
https://bugs.webkit.org/show_bug.cgi?id=134951

Reviewed by Tim Horton.

  • UIProcess/API/Cocoa/WKWebView.mm:

(-[WKWebView _setFormDelegate:]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r171124 r171129  
     12014-07-15  Dan Bernstein  <mitz@apple.com>
     2
     3        WKWebView’s FormClient::willSubmitForm should use CompletionHandlerCallChecker
     4        https://bugs.webkit.org/show_bug.cgi?id=134951
     5
     6        Reviewed by Tim Horton.
     7
     8        * UIProcess/API/Cocoa/WKWebView.mm:
     9        (-[WKWebView _setFormDelegate:]):
     10
    1112014-07-15  Benjamin Poulain  <benjamin@webkit.org>
    212
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

    r171124 r171129  
    3030
    3131#import "APIFormClient.h"
     32#import "CompletionHandlerCallChecker.h"
    3233#import "FindClient.h"
    3334#import "LegacySessionStateCoding.h"
     
    19771978            }
    19781979
    1979             [formDelegate _webView:m_webView willSubmitFormValues:valueMap.get() userObject:userObject submissionHandler:^{
     1980            RefPtr<WebKit::CompletionHandlerCallChecker> checker = WebKit::CompletionHandlerCallChecker::create(formDelegate.get(), @selector(_webView:willSubmitFormValues:userObject:submissionHandler:));
     1981            [formDelegate _webView:m_webView willSubmitFormValues:valueMap.get() userObject:userObject submissionHandler:[listener, checker] {
     1982                checker->didCallCompletionHandler();
    19801983                listener->continueSubmission();
    19811984            }];
Note: See TracChangeset for help on using the changeset viewer.