<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - UIViewController with WkWebView presented modally causes the presented UIViewController to be dismissed."
   href="https://bugs.webkit.org/show_bug.cgi?id=165225#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - UIViewController with WkWebView presented modally causes the presented UIViewController to be dismissed."
   href="https://bugs.webkit.org/show_bug.cgi?id=165225">bug 165225</a>
              from <span class="vcard"><a class="email" href="mailto:bwright2&#64;apple.com" title="Brad Wright &lt;bwright2&#64;apple.com&gt;"> <span class="fn">Brad Wright</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=295902" name="attach_295902" title="Example Project that demonstrates the problem">attachment 295902</a> <a href="attachment.cgi?id=295902&amp;action=edit" title="Example Project that demonstrates the problem">[details]</a></span>
Example Project that demonstrates the problem

The example project that demonstrates the problem in the WKWebView that this change is trying to solve.

1. Compile and run the project in an iPhone Simulator.
2. When the simulator launches, click on the button in the main view called &quot;launch modal web view&quot;.
3. Click the &quot;Choose File&quot; button.
4. Select &quot;iCloud&quot; or &quot;Photo Library&quot; from the menu.
5. The modal web view gets dismissed by this WebKit bug.

The web view should not get dismissed.  The problem here is that the WebKit is trying to close a UIDocumentMenuViewController by calling dismissViewControllerAnimated.  The UIDocumentMenuViewController automatically dismisses itself.  This extra call to dismissViewControllerAnimated is dismissing the modally presented WkWebView.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>