<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:beidson&#64;apple.com" title="Brady Eidson &lt;beidson&#64;apple.com&gt;"> <span class="fn">Brady Eidson</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement displaying context menu asynchronously"
   href="https://bugs.webkit.org/show_bug.cgi?id=163292">bug 163292</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #291651 Flags</td>
           <td>review?
           </td>
           <td>review-
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement displaying context menu asynchronously"
   href="https://bugs.webkit.org/show_bug.cgi?id=163292#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement displaying context menu asynchronously"
   href="https://bugs.webkit.org/show_bug.cgi?id=163292">bug 163292</a>
              from <span class="vcard"><a class="email" href="mailto:beidson&#64;apple.com" title="Brady Eidson &lt;beidson&#64;apple.com&gt;"> <span class="fn">Brady Eidson</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=291651&amp;action=diff" name="attach_291651" title="Patch">attachment 291651</a> <a href="attachment.cgi?id=291651&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=291651&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=291651&amp;action=review</a>

<span class="quote">&gt; Source/WebKit2/UIProcess/API/C/WKPage.cpp:857
&gt; +            if (m_client.base.version &lt;= 3 || !m_client.getContextMenuFromProposedMenuAsync)</span >

How about:
m_client.base.version &lt; 4

It reads better, I think, referencing the version where the new bits were added.

<span class="quote">&gt; Source/WebKit2/UIProcess/WebContextMenuListenerProxy.cpp:2
&gt; + * Copyright (C) 2010 Apple Inc. All rights reserved.</span >

Update copyright for new files

<span class="quote">&gt; Source/WebKit2/UIProcess/WebContextMenuListenerProxy.h:2
&gt; + * Copyright (C) 2010 Apple Inc. All rights reserved.</span >

Update the copyright date for new files

<span class="quote">&gt; Source/WebKit2/UIProcess/WebContextMenuListenerProxy.h:27
&gt; +#ifndef WebContextMenuListenerProxy_h
&gt; +#define WebContextMenuListenerProxy_h</span >

#pragma once

<span class="quote">&gt; Source/WebKit2/UIProcess/WebContextMenuListenerProxy.h:47
&gt; +    void useProposedContextMenuItems(WKArrayRef items);</span >

The initial call out to the WK client is &quot;get context menu from proposed menu&quot;.

So I wouldn't call the returned menu the &quot;proposed menu&quot; as it has assumedly undergone changes.

I'd suggest &quot;useContentMenuItems&quot;

<span class="quote">&gt; Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.mm:470
&gt; +    if (m_contextMenuListener) {
&gt; +        m_contextMenuListener-&gt;invalidate();
&gt; +        m_contextMenuListener = nullptr;
&gt; +    }</span >

Very important to invalidate this in the destructor as well.</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>