WebCore's implementation of context menus is rather static and focused on the Mac port's needs. The goal of this bug is to make context menus behave according to Gtk conventions.
Created attachment 18739 [details] Make context menu native This is an attempt to make the context menu feel native on the Gtk port. . The editable menu gains Delete and Select All items. Further more the Writing Direction menu was superseded by Input Methods and Insert Unicode Control Character. . Back, Forward, Stop and Reload are always visible but insensitive when unavailable. . Stock item labels provided by Gtk are preferred over custom strings. . A 'populate-popup' signal is emitted on WebKitWebView to allow clients to extend the context menu.
Sure this patch is complete? The new menu entries (Delete, Select All) don't appear for me.
Created attachment 18820 [details] Make context menu native, fixed Dunno what went wrong, uploading file anew.
*** Bug 15784 has been marked as a duplicate of this bug. ***
Comment on attachment 18820 [details] Make context menu native, fixed Needs better NULL safety and static WebCore strings for stock labels, and _ gettext should not be used for these strings, all as discussed on IRC. (I also wonder if there's a less intrusive way to support itemCount(), though this approach is OK I guess.)
Created attachment 18876 [details] Updated as discussed
Comment on attachment 18876 [details] Updated as discussed r=me Adding a couple of null checks as discussed, and a FIXME noting that the WebKit use should be removed from WebCore at some point.
Landed in r29958. Hope you'll be able to look into fixing the FIXMEs soon.