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

Unified Diff: content/public/renderer/document_state.h

Issue 12713007: Fix the no password save issue for ajax login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Again Created 7 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
« no previous file with comments | « chrome/test/data/password/password_xhr_submit.html ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/document_state.h
diff --git a/content/public/renderer/document_state.h b/content/public/renderer/document_state.h
index 3168776091b29b201cc96eb423520d007bce50b2..d13be7f4b726dcbeeeca72e65160f900c08e2b32 100644
--- a/content/public/renderer/document_state.h
+++ b/content/public/renderer/document_state.h
@@ -169,6 +169,15 @@ class DocumentState : public WebKit::WebDataSource::ExtraData {
searchable_form_encoding_ = encoding;
}
+ // If set, contains the PasswordForm that we believe triggered the current
+ // navigation (there is some ambiguity in the case of javascript initiated
+ // navigations). This information is used by the PasswordManager to determine
+ // if the user should be prompted to save their password.
+ //
+ // Note that setting this field doesn't affect where the data is sent or what
+ // origin we associate it with, only whether we prompt the user to save it.
+ // That is, a false positive is a usability issue (e.g. may try to save a
+ // mis-typed password) not a security issue.
PasswordForm* password_form_data() const {
return password_form_data_.get();
}
« no previous file with comments | « chrome/test/data/password/password_xhr_submit.html ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698