svn r14845 has a fix for <rdar://problem/4498606> REGRESSION (417.8-420+): 3 missing items (but extra separators) in context menu in Mail message body However if the context menu delegate returns no items, as in: - (NSArray *)webView:(WebView *)sender contextMenuItemsForElement:(NSDictionary *)element defaultMenuItems:(NSArray *)defaultMenuItems { return [NSArray array]; } the patch above crashes because it doesn't check for zero menu items. The fix is trivial, attaching the patch.
Created attachment 9762 [details] Patch
Comment on attachment 9762 [details] Patch Change looks great. Needs a test case and a change log entry.
Created attachment 9769 [details] Patch with changelog No automated test, because there's no way to programmatically open a context menu, no manual test because there's no way to customize the context menu delegate.
Comment on attachment 9769 [details] Patch with changelog r=me
Landed in r15726.