[Webkit-unassigned] [Bug 174143] New: Crash in UIKit: +[UIViewController _viewControllerForFullScreenPresentationFromView:]

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 4 17:12:27 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=174143

            Bug ID: 174143
           Summary: Crash in UIKit:  +[UIViewController
                    _viewControllerForFullScreenPresentationFromView:]
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: adachan at apple.com

<rdar://problem/28384582>

The crash happens in WKActionSheet.mm:

- (void)willRotate
{
    .....
    UIView *view = [_sheetDelegate hostViewForSheet];
    UIViewController *presentingViewController = [UIViewController _viewControllerForFullScreenPresentationFromView:view];
    ...
}

We cannot guarantee that the action sheet belongs in a window, and view could be nil.  Passing nil to -[UIViewController _viewControllerForFullScreenPresentationFromView:] causes an exception to be thrown.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170705/7e453cf4/attachment.html>


More information about the webkit-unassigned mailing list