Summary: | WKActionSheet tries to present on wrong view controller | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kevin Ballard <kevin> |
Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | Safari 9 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 9.3 |
Description
Kevin Ballard
2016-05-06 14:14:29 PDT
Another possible fix is instead of getting the window of the host view, it could instead walk the nextResponder chain until it finds a UIViewController and present on that. This is probably a better solution than walking the presentedViewController chain (and probably what the hypothetical `[_sheetDelegate hostViewControllerForSheet]` would have to do anyway since WKWebView doesn't know what view controller it's inside of). |