Bug 171018

Summary: Add asynchronous equivalent of -[<WKUIDelegate> webView:createWebViewWithConfiguration:...]
Product: WebKit Reporter: Brady Eidson <beidson>
Component: WebKit2Assignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, aestes, buildbot, commit-queue, mitz, thorton
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Brady Eidson 2017-04-19 15:41:21 PDT
Add asynchronous equivalent of -[<WKUIDelegate> webView:createWebViewWithConfiguration:...]

<rdar://problem/30699851>
Comment 1 Brady Eidson 2017-04-19 16:12:07 PDT
Created attachment 307518 [details]
Patch
Comment 2 Build Bot 2017-04-19 16:13:51 PDT
Attachment 307518 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/Cocoa/UIDelegate.h:79:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/UIProcess/Cocoa/UIDelegate.h:80:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm:173:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm:192:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm:228:  Extra space before ( in function call  [whitespace/parens] [4]
Total errors found: 5 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 WebKit Commit Bot 2017-04-19 17:44:03 PDT
Comment on attachment 307518 [details]
Patch

Clearing flags on attachment: 307518

Committed r215545: <http://trac.webkit.org/changeset/215545>
Comment 4 WebKit Commit Bot 2017-04-19 17:44:04 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 mitz 2017-04-19 19:32:51 PDT
Comment on attachment 307518 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=307518&action=review

> Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm:192
> +        [(id <WKUIDelegatePrivate>)delegate _webView:m_uiDelegate.m_webView createWebViewWithConfiguration:configuration.get() forNavigationAction:wrapper(apiNavigationAction) windowFeatures:wrapper(apiWindowFeatures) completionHandler:^void(WKWebView *webView) {

Should this be using a CompletionHandlerCallChecker like other calls that pass a completion handler to the delegate?
Comment 6 Brady Eidson 2017-04-20 11:31:12 PDT
(In reply to mitz from comment #5)
> Comment on attachment 307518 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=307518&action=review
> 
> > Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm:192
> > +        [(id <WKUIDelegatePrivate>)delegate _webView:m_uiDelegate.m_webView createWebViewWithConfiguration:configuration.get() forNavigationAction:wrapper(apiNavigationAction) windowFeatures:wrapper(apiWindowFeatures) completionHandler:^void(WKWebView *webView) {
> 
> Should this be using a CompletionHandlerCallChecker like other calls that
> pass a completion handler to the delegate?

Sure probably
Comment 7 Brady Eidson 2017-04-20 12:09:27 PDT
(In reply to Brady Eidson from comment #6)
> (In reply to mitz from comment #5)
> > Comment on attachment 307518 [details]
> > Patch
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=307518&action=review
> > 
> > > Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm:192
> > > +        [(id <WKUIDelegatePrivate>)delegate _webView:m_uiDelegate.m_webView createWebViewWithConfiguration:configuration.get() forNavigationAction:wrapper(apiNavigationAction) windowFeatures:wrapper(apiWindowFeatures) completionHandler:^void(WKWebView *webView) {
> > 
> > Should this be using a CompletionHandlerCallChecker like other calls that
> > pass a completion handler to the delegate?
> 
> Sure probably

Doing that over in https://bugs.webkit.org/show_bug.cgi?id=171067