<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - [WK2] Keyboard menu key should show context menu"
   href="https://bugs.webkit.org/show_bug.cgi?id=72099#c26">Comment # 26</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - [WK2] Keyboard menu key should show context menu"
   href="https://bugs.webkit.org/show_bug.cgi?id=72099">bug 72099</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=72099#c24">comment #24</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=284771&amp;action=diff" name="attach_284771" title="Proposed patch">attachment 284771</a> <a href="attachment.cgi?id=284771&amp;action=edit" title="Proposed patch">[details]</a></span>
&gt; Proposed patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=284771&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=284771&amp;action=review</a>
&gt; 
&gt; Ah great, I noticed this was broken, it's nice to have a patch.
&gt; 
&gt; &gt; Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:827
&gt; &gt; +    if ((event-&gt;keyval == GDK_KEY_Menu) || (((event)-&gt;state &amp; GDK_SHIFT_MASK) &amp;&amp; GDK_KEY_F10))
&gt; 
&gt; Remove the extra parens around event here.
&gt; 
&gt; &gt; Source/WebKit2/UIProcess/WebPageProxy.cpp:4567
&gt; &gt; +void WebPageProxy::handleContextMenuKeyEvent()
&gt; 
&gt; Carlos, owners, do you think we should use PLATFORM(GTK) guards here, since
&gt; it's only used by GTK? It's not really platform specific, but only used by a
&gt; single platform, so I'm not sure.</span >

Cross-platform code that builds fine in all ports and doesn't cause other ports to do any extra work, like in this case, shouldn't have any ifdef in my opinion. 

<span class="quote">&gt; &gt; Source/WebKit2/WebProcess/WebPage/WebPage.cpp:2157
&gt; &gt; +    Frame&amp; frame = m_page-&gt;focusController().focusedOrMainFrame();
&gt; 
&gt; You have to adjust the #ifdefs here to avoid the unused variable build
&gt; failure on Mac. You should guard the entire implementation of the function
&gt; with #if !PLATFORM(MAC).
&gt; 
&gt; &gt; Source/WebKit2/WebProcess/WebPage/WebPage.cpp:2160
&gt; &gt; +#if !PLATFORM(MAC)
&gt; 
&gt; But TBH I'm not sure if it's the right #if, we have iOS nowadays after all.
&gt; Maybe !PLATFORM(COCOA)? Or maybe put the whole function in a PLATFORM(GTK)
&gt; guard? Let's see what Carlos and Apple say to use here.</span >

I don't understand why there's a platform ifdef there.</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>