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

Unified Diff: chrome/browser/ui/views/autofill/autofill_popup_base_view.cc

Issue 294043017: Thwart clickjacking in autofill popups by ignoring double clicks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: way simpler Created 6 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/autofill/autofill_popup_base_view.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc b/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc
index db527c8ec612dd7f1fcff05b1edf3de546b9ae51..ced38990ff6767f987a1b1b0563574168d155d8c 100644
--- a/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc
+++ b/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc
@@ -161,7 +161,7 @@ void AutofillPopupBaseView::OnMouseMoved(const ui::MouseEvent& event) {
}
bool AutofillPopupBaseView::OnMousePressed(const ui::MouseEvent& event) {
- return true;
+ return event.GetClickCount() == 1;
Ilya Sherman 2014/05/30 23:07:15 Should there be a corresponding change for Mac?
Evan Stade 2014/06/02 18:30:26 yes
Ilya Sherman 2014/06/02 22:08:08 I meant: Should this CL include a corresponding ch
Evan Stade 2014/06/02 22:19:30 I could take a stab at the mac code, but I have no
}
void AutofillPopupBaseView::OnMouseReleased(const ui::MouseEvent& event) {
@@ -240,5 +240,4 @@ gfx::NativeView AutofillPopupBaseView::container_view() {
return delegate_->container_view();
}
-
} // namespace autofill
« no previous file with comments | « no previous file | chrome/browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698