Bug 151658

Summary: Provide public WKWebView API for _committedURL
Product: WebKit Reporter: Stuart Morgan <stuartmorgan>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: iPhone / iPad   
OS: All   

Stuart Morgan
Reported 2015-11-30 09:24:04 PST
Knowing the committed URL of the page is critical for a variety of security purposes (knowing what to show for a render-initiated navigation, knowing the origin for integrating with native features such as password autofill, etc.) The "URL" property of WKWebView is unsuitable for those purposes, since it includes pending URLs as soon as a provisional navigation starts. Trying to track the committed URL via navigation delegates and KVO callbacks is quite complicated, and potentially error-prone, meaning the lack of this API increases the chances of security issues in software based on WKWebView. There is a private property called _committedURL, which is presumably exactly this information. It should be a public API so that clients can more easily write secure software.
Attachments
Note You need to log in before you can comment on or make changes to this bug.