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

Unified Diff: chrome/browser/autofill/autofill_server_browsertest.cc

Issue 659793005: [Password Generation] Always query password forms via Autofill (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Done Created 6 years, 2 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 | components/autofill/core/browser/form_structure.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_server_browsertest.cc
diff --git a/chrome/browser/autofill/autofill_server_browsertest.cc b/chrome/browser/autofill/autofill_server_browsertest.cc
index 49c8bc973b59816c6c33875bc4e6e92bf9408b81..af8a3327edbd2e7168696731802c39f3b6425a1d 100644
--- a/chrome/browser/autofill/autofill_server_browsertest.cc
+++ b/chrome/browser/autofill/autofill_server_browsertest.cc
@@ -169,4 +169,32 @@ IN_PROC_BROWSER_TEST_F(AutofillServerTest,
upload_network_observer.Wait();
}
+// Verify that a site with password fields will query even in the presence
+// of user defined autocomplete types.
+IN_PROC_BROWSER_TEST_F(AutofillServerTest,
+ AlwaysQueryForPasswordFields) {
+ // Load the test page. Expect a query request upon loading the page.
+ const char kDataURIPrefix[] = "data:text/html;charset=utf-8,";
+ const char kFormHtml[] =
+ "<form id='test_form'>"
+ " <input type='text' id='one' autocomplete='username'>"
+ " <input type='text' id='two' autocomplete='off'>"
+ " <input type='password' id='three'>"
+ " <input type='submit'>"
+ "</form>";
+ const char kQueryRequest[] =
+ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
+ "<autofillquery clientversion=\"6.1.1715.1442/en (GGLL)\">"
+ "<form signature=\"8900697631820480876\">"
+ "<field signature=\"2594484045\"/>"
+ "<field signature=\"2750915947\"/>"
+ "<field signature=\"116843943\"/>"
+ "</form>"
+ "</autofillquery>";
+ WindowedNetworkObserver query_network_observer(kQueryRequest);
+ ui_test_utils::NavigateToURL(
+ browser(), GURL(std::string(kDataURIPrefix) + kFormHtml));
+ query_network_observer.Wait();
+}
+
} // namespace autofill
« no previous file with comments | « no previous file | components/autofill/core/browser/form_structure.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698