Bug 142106
| Summary: | Make -[WKNavigationAction _isUserInitiated] method public | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Eugene But <eugenebut> |
| Component: | WebKit2 | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Eugene But
Another case where _isUserInitiated information is useful is preventing web adds from opening AppStore apps from a Web Browser.
Eugene But
Someone from Apple dev relationship requested we file a new radar. So we filed a new rdar://50095482