Bug 142106 - Make -[WKNavigationAction _isUserInitiated] method public
Summary: Make -[WKNavigationAction _isUserInitiated] method public
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-02-27 14:34 PST by Eugene But
Modified: 2019-04-22 08:56 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene But 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
Comment 1 Eugene But 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.
Comment 2 Eugene But 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