Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: third_party/WebKit/Source/core/editing/Editor.cpp

Issue 2740823003: [PasswordGeneration] Makes generated passwords copyable (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/Editor.cpp
diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
index e4e310ba992fcf14ebfbcff1c3287c593e68e7e1..ed213cad7d37b0806d87b7ec8f6c48243dd7fb79 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -325,7 +325,7 @@ bool Editor::canCopy() const {
return true;
FrameSelection& selection = frame().selection();
return selection.computeVisibleSelectionInDOMTreeDeprecated().isRange() &&
- !isInPasswordField(
+ !isInPasswordFieldWithUnrevealedPassword(
yosin_UTC9 2017/03/10 03:48:52 Could you add test in "EditorTest.cpp" for Editor:
kolos1 2017/03/10 12:50:55 Done.
frame().selection().computeVisibleSelectionInDOMTree().start());
}

Powered by Google App Engine
This is Rietveld 408576698