From 81d7b87507243adf005f323496d696056922924f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 2 Oct 2017 10:32:49 -0400 Subject: [PATCH] Remove button from getFormElements query selector --- src/content/autofill.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/autofill.js b/src/content/autofill.js index d2d3a7e396..59feab793f 100644 --- a/src/content/autofill.js +++ b/src/content/autofill.js @@ -34,6 +34,7 @@ 1. Populate isFirefox 2. Remove isChrome and isSafari since they are not used. 3. Unminify and format to meet Mozilla review requirements. + 4. Remove button from getFormElements query selector */ function collect(document, undefined) { @@ -550,7 +551,7 @@ function getFormElements(theDoc) { var els = []; try { - els = theDoc.querySelectorAll('input, select, button'); + els = theDoc.querySelectorAll('input, select'); } catch (e) { } return els; }