From 896cc75f5771693f9f39fdffdcf37b518abd01a6 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Wed, 30 Jun 2010 09:51:54 -0400 Subject: [PATCH] Don't inject autosuggest bits where we dont need it --- data/autosuggestcontrol.js | 5 ++++- extensions/formhistory.c | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/data/autosuggestcontrol.js b/data/autosuggestcontrol.js index f045f0f5..85a506ab 100644 --- a/data/autosuggestcontrol.js +++ b/data/autosuggestcontrol.js @@ -295,7 +295,9 @@ FormSuggestions.prototype.requestSuggestions = function (oAutoSuggestControl /*: }; function initSuggestions () { - var inputs = document.getElementsByTagName("input"); + var inputs = document.getElementsByTagName ("input"); + if (inputs.length == 0) + return false; for (i=0;i