Bug 142106

Summary: Make -[WKNavigationAction _isUserInitiated] method public
Product: WebKit Reporter: Eugene But <eugenebut>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: binlu, fpatel, stuartmorgan
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: iPhone / iPad   
OS: All   

Eugene But
Reported 2015-02-27 14:34:13 PST
Correct implementation of popups blocking functionality is not possible without using -[WKNavigationAction _isUserInitiated]. WKNavigationAction passed to webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures: delegate method does not say whether or not the window was open by a user-gesture. When delegate method is called a user may not be touching the view anymore. Popups blocking is a feature supported by every modern browser. rdar://19989909
Attachments
Eugene But
Comment 1 2015-06-03 09:00:44 PDT
Another case where _isUserInitiated information is useful is preventing web adds from opening AppStore apps from a Web Browser.
Eugene But
Comment 2 2019-04-22 08:56:52 PDT
Someone from Apple dev relationship requested we file a new radar. So we filed a new rdar://50095482
Note You need to log in before you can comment on or make changes to this bug.