Bug 208670

Summary: Add WKNavigationDelegatePrivate SPI to inform application of subframe navigations
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, berto, cdumez, cgarcia, ews-watchlist, gustavo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 209873    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
Patch beidson: review+

Alex Christensen
Reported 2020-03-05 15:47:29 PST
Add WKNavigationDelegatePrivate SPI to inform application of subframe navigations
Attachments
Patch (78.95 KB, patch)
2020-03-05 15:51 PST, Alex Christensen
no flags
Patch (78.96 KB, patch)
2020-03-05 16:07 PST, Alex Christensen
no flags
Patch (79.21 KB, patch)
2020-03-05 16:45 PST, Alex Christensen
beidson: review+
Alex Christensen
Comment 1 2020-03-05 15:51:19 PST
EWS Watchlist
Comment 2 2020-03-05 15:52:02 PST
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Alex Christensen
Comment 3 2020-03-05 16:07:36 PST
Alex Christensen
Comment 4 2020-03-05 16:45:13 PST
Brady Eidson
Comment 5 2020-03-05 17:38:39 PST
Comment on attachment 392648 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=392648&action=review > Source/WebKit/UIProcess/API/Cocoa/WKNavigationDelegatePrivate.h:112 > +- (void)_webView:(WKWebView *)webView didStartProvisionalLoadWithRequest:(NSURLRequest *)request inFrame:(WKFrameInfo *)frame WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); > +- (void)_webView:(WKWebView *)webView didFailProvisionalLoadWithRequest:(NSURLRequest *)request inFrame:(WKFrameInfo *)frame withError:(NSError *)error WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); > +- (void)_webView:(WKWebView *)webView didCommitLoadWithRequest:(NSURLRequest *)request inFrame:(WKFrameInfo *)frame WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); > +- (void)_webView:(WKWebView *)webView didFailLoadWithRequest:(NSURLRequest *)request inFrame:(WKFrameInfo *)frame withError:(NSError *)error WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); > +- (void)_webView:(WKWebView *)webView didFinishLoadWithRequest:(NSURLRequest *)request inFrame:(WKFrameInfo *)frame WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); If this is subframe only, I'd like that to be clear. "inSubframe:" or "inNonMainFrame:" etc.
Alex Christensen
Comment 6 2020-03-05 18:14:44 PST
These new SPI callbacks are called for main frame navigations and subframe navigations. It is correct as it is.
Chris Dumez
Comment 7 2020-04-01 13:35:27 PDT
This has been committed in http://trac.webkit.org/r257963 but this bug is still open for some reason. This also caused Bug 209873.
Radar WebKit Bug Importer
Comment 8 2020-04-01 13:36:13 PDT
Note You need to log in before you can comment on or make changes to this bug.