On GTK, the context menu of WebKit is wrongly positioned when the browser window is near the bottom of the screen. Instead of showing the menu above the mouse cursor, the context menu is shown below and since there is no room to display it, GTK shrinks the menu height (and adds scroll arrows to access non visible menu items). See the attached screenshots. The attached patch simply removes the positioning function for the context menu and let GTK position the menu. This works fine here however I guess there was a reason for the custom position function.
Created attachment 28137 [details] Current behaviour: menu is positioned wrongly and scroll arrows are added
Created attachment 28138 [details] Expected behaviour: the menu is positioned above the mouse cursor when there is no room below (at the bottom of the screen)
Created attachment 28139 [details] Possible solution by letting GTK position the menu
*** This bug has been marked as a duplicate of 25373 ***