summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-20 02:27:15 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-20 02:27:15 +0000
commit6ac4ed18157ae826245a4286981eeccbb30ec617 (patch)
treea585500494ea18ff1f885775a3391885801c3598 /chrome/renderer
parente031e0ad7fc61b98f0f38b821b7de08848de2024 (diff)
downloadchromium_src-6ac4ed18157ae826245a4286981eeccbb30ec617.zip
chromium_src-6ac4ed18157ae826245a4286981eeccbb30ec617.tar.gz
chromium_src-6ac4ed18157ae826245a4286981eeccbb30ec617.tar.bz2
Fix crash in PasswordAutofillManager
BUG=97165 TEST=none Review URL: http://codereview.chromium.org/7974002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101899 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/autofill/password_autofill_manager.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/renderer/autofill/password_autofill_manager.cc b/chrome/renderer/autofill/password_autofill_manager.cc
index 10c74bd..2793d54 100644
--- a/chrome/renderer/autofill/password_autofill_manager.cc
+++ b/chrome/renderer/autofill/password_autofill_manager.cc
@@ -460,7 +460,11 @@ void PasswordAutofillManager::GetSuggestions(
bool PasswordAutofillManager::ShowSuggestionPopup(
const webkit_glue::PasswordFormFillData& fill_data,
const WebKit::WebInputElement& user_input) {
- WebKit::WebView* webview = user_input.document().frame()->view();
+ WebKit::WebFrame* frame = user_input.document().frame();
+ if (!frame)
+ return false;
+
+ WebKit::WebView* webview = frame->view();
if (!webview)
return false;