diff options
Diffstat (limited to 'WebKit/android/jni/WebCoreFrameBridge.cpp')
-rw-r--r-- | WebKit/android/jni/WebCoreFrameBridge.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/WebKit/android/jni/WebCoreFrameBridge.cpp b/WebKit/android/jni/WebCoreFrameBridge.cpp index a717301..c1cb907 100644 --- a/WebKit/android/jni/WebCoreFrameBridge.cpp +++ b/WebKit/android/jni/WebCoreFrameBridge.cpp @@ -120,6 +120,10 @@ #include "WebArchiveAndroid.h" #endif +#if ENABLE(WEB_AUTOFILL) +#include "autofill/WebAutoFill.h" +#endif + using namespace JSC::Bindings; static String* gUploadFileLabel; @@ -639,6 +643,13 @@ WebFrame::didFinishLoad(WebCore::Frame* frame) (int)loadType, isMainFrame); checkException(env); env->DeleteLocalRef(urlStr); +#if ENABLE(WEB_AUTOFILL) + // TODO: Need to consider child frames. + if (isMainFrame) { + EditorClientAndroid* editorClient = static_cast<EditorClientAndroid*>(mPage->editorClient()); + editorClient->getAutoFill()->searchDocument(frame->document()); + } +#endif } void |