Right-clicking on Flash contents in the Safari nightly build displays the context menu at the wrong location. I was able to reproduce it on: + Safari/WebKit nightly r147249 and subsequent updates. I got the sandboxed Safari/Webkit from http://nightly.webkit.org. + Mac OS 10.7.5 + Flash Player 11.6.602.180 + Any page with SWF content. I used http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html The problem seems to be with the PopUpContextMenu NPAPI when computing the menu origin coordinates. This problem is accentuated if I move Safari window and the SWF contents near the bottom of the screen and I right-click to display the context menu. It appears on the top of the screen. The problem doesn't exist on Safari 6.0.3 (7536.28.10).
<rdar://problem/13587624>
Regression URL for clicky convenience: <http://trac.webkit.org/changeset/145869>
Created attachment 197848 [details] Patch
Created attachment 197849 [details] Patch Incorporating some IRC comments from andersca.
Committed r148278: <http://trac.webkit.org/changeset/148278>