https://bugs.webkit.org/show_bug.cgi?id=77733
Patch by Bernhard Bauer <bauerb@google.com> on 2012-02-08
Reviewed by Adam Barth.
* src/ContextMenuClientImpl.cpp:
(WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107115
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-02-08 Bernhard Bauer <bauerb@google.com>
+
+ [Chromium] Don't add selection from password fields to context menu.
+ https://bugs.webkit.org/show_bug.cgi?id=77733
+
+ Reviewed by Adam Barth.
+
+ * src/ContextMenuClientImpl.cpp:
+ (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
+
2012-02-08 Nico Weber <nicolasweber@gmx.de>
[chromium] Let -Wglobal-constructors hack in shared build metastasize to mac
data.frameHistoryItem = WebHistoryItem(historyItem);
}
- if (r.isSelected())
- data.selectedText = selectedFrame->editor()->selectedText().stripWhiteSpace();
+ if (r.isSelected()) {
+ if (!r.innerNonSharedNode()->hasTagName(HTMLNames::inputTag) || !static_cast<HTMLInputElement*>(r.innerNonSharedNode())->isPasswordField())
+ data.selectedText = selectedFrame->editor()->selectedText().stripWhiteSpace();
+ }
if (r.isContentEditable()) {
data.isEditable = true;