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 9f32ae842d3f42b64f2b27b2873f6b798c9a2fec..0a17887cad474fc5d48518e8cf5ad8aa1f9450dd 100644 |
--- a/components/autofill/content/renderer/autofill_agent.cc |
+++ b/components/autofill/content/renderer/autofill_agent.cc |
@@ -468,7 +468,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(); |