This part: + * html/HTMLPlugInElement.cpp: (WebCore::HTMLPlugInElement::defaultEventHandler): Call base + class default event handler, so that events on focused plug-in elements would fall through + to EventHandler::defaultKeyboardEventHandler. Plug-ins show their context menus from regular mouse event handlers, because they don't get a separate event for context menu. Additionally, browsers dispatch contextmenu event regardless of whether mousedown had a preventDefault, so after Flash shows its context menu, WebKit tries to show its own, causing trouble. The solution is to add a contextmenu event handler to plugins. Such a handler could display a menu itself, return false for default WebKit menu to be displayed, or just return true meaning that it has no idea about what the plug-in did, as it's the case with NPAPI plug-ins. <rdar://problem/10308827>
Created attachment 111825 [details] proposed fix
Comment on attachment 111825 [details] proposed fix Attachment 111825 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/10178525
Created attachment 111829 [details] patch for landing
Comment on attachment 111829 [details] patch for landing Attachment 111829 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/10177578
Created attachment 111844 [details] patch for landing D'oh!
Comment on attachment 111844 [details] patch for landing Clearing flags on attachment: 111844 Committed r98027: <http://trac.webkit.org/changeset/98027>
All reviewed patches have been landed. Closing bug.