<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Handle Open Panel Functions Are Unimplemented"
   href="https://bugs.webkit.org/show_bug.cgi?id=137759#c30">Comment # 30</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Handle Open Panel Functions Are Unimplemented"
   href="https://bugs.webkit.org/show_bug.cgi?id=137759">bug 137759</a>
              from <span class="vcard"><a class="email" href="mailto:brian.michel&#64;gmail.com" title="Brian Michel &lt;brian.michel&#64;gmail.com&gt;"> <span class="fn">Brian Michel</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=137759#c28">comment #28</a>)
<span class="quote">&gt; Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=267951&amp;action=diff" name="attach_267951" title="Patch">attachment 267951</a> <a href="attachment.cgi?id=267951&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=267951&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=267951&amp;action=review</a>
&gt; 
&gt; Added a few comments. I only did a very shallow review pass though.
&gt; 
&gt; &gt; Source/WebKit2/UIProcess/API/Cocoa/WKUIDelegate.h:40
&gt; &gt; +/*! A class conforming to WKOpenPanelResultListener provides methods methods
&gt; 
&gt; &quot;methods methods&quot;
&gt; 
&gt; &gt; Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm:253
&gt; &gt; +    if (!m_uiDelegate.m_webView) {
&gt; &gt; +        listener-&gt;invalidate();
&gt; &gt; +        return false;
&gt; &gt; +    }
&gt; &gt; +
&gt; &gt; +    NSWindow *window = [m_uiDelegate.m_webView window];
&gt; 
&gt; An explicit null check for m_uiDelegate.m_webView is not needed, please
&gt; remove it. In Objective-C, sending a message to a nil target is supported,
&gt; and results in a nil pointer in this case.
&gt; 
&gt; &gt; Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm:262
&gt; &gt; +    // If we have no delegate, invalide the listener and return false.
&gt; 
&gt; How is this possible, given that
&gt; m_uiDelegate.m_delegateMethods.
&gt; webViewRunOpenPanelWithResultListenerAllowsMultipleFiles is true?
&gt; 
&gt; &gt; Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm:268
&gt; &gt; +    [((id &lt;WKUIDelegate&gt;) delegate) webView:m_uiDelegate.m_webView runOpenPanelWithResultListener:(id &lt;WKOpenPanelResultListener&gt;)adoptNS([[WKConcreteOpenPanelResultListener alloc] initWithListenerProxy:listener]) allowsMultipleFiles:parameters-&gt;allowMultipleFiles()];
&gt; 
&gt; It shouldn't be necessary to typecast delegate here, m_delegate is &quot;id
&gt; &lt;WKUIDelegate&gt;&quot; already.
&gt; 
&gt; &gt; Tools/MiniBrowser/mac/WK2BrowserWindowController.m:452
&gt; &gt; +#if __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1090
&gt; 
&gt; Please remove this check, trunk WebKit doesn't support 10.9.</span >

Thank you so much for your feedback Alexey, I've made the changes asked for, and tests on my local seem to be passing, but waiting for the bots to say so.</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>