-
adele authored
Reviewed by Darin. WebCore part of fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=10666 Password: Disallow Spelling, Font, Speech, and Writing Direction context menu * bridge/mac/WebCoreFrameBridge.h: * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge isSelectionInPasswordField]): Added. * page/Frame.cpp: (WebCore::Frame::isSelectionInPasswordField): Added. * page/Frame.h: WebKit: Reviewed by Darin. WebKit part of fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=10666 Password: Disallow Spelling, Font, Speech, and Writing Direction context menu * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]): Check that the selection isn't in a password field before adding these items to the default editing context menu. Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added. * WebView/WebHTMLViewPrivate.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
d51c0cfd