Index: components/autofill/content/renderer/autofill_agent.cc |
diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc |
index a287c5b45270323e479fe6957215b14d7df04a02..5e31f9d392c6b4ddf4c30fe6dfa1fbb3e6f5dc85 100644 |
--- a/components/autofill/content/renderer/autofill_agent.cc |
+++ b/components/autofill/content/renderer/autofill_agent.cc |
@@ -466,7 +466,7 @@ void AutofillAgent::FirstUserGestureObservedInTab() { |
} |
void AutofillAgent::FillForm(int32_t id, const FormData& form) { |
- if (id != autofill_query_id_) |
+ if (id != autofill_query_id_ && id != kNoQueryId) |
return; |
was_query_node_autofilled_ = element_.isAutofilled(); |