From 91ff4fc00daeb7180bb566302802c662d6b8ff2a Mon Sep 17 00:00:00 2001 From: Hunter Bertoson Date: Fri, 16 Dec 2022 10:02:13 -0600 Subject: [PATCH] [PS-1830] Updated the autofill.js file to no longer add the 'data.com' attribute to tags (#4001) * Updated the autofill.js file to no longer add the 'data.com' attribute to tags * Added Comments and removed empty lines --- apps/browser/src/content/autofill.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/browser/src/content/autofill.js b/apps/browser/src/content/autofill.js index ee4dfab1b0..f56a1f843e 100644 --- a/apps/browser/src/content/autofill.js +++ b/apps/browser/src/content/autofill.js @@ -42,6 +42,7 @@ 9. Add new handler, for new command that responds with page details in response callback 10. Handle sandbox iframe and sandbox rule in CSP 11. Work on array of saved urls instead of just one to determine if we should autofill non-https sites + 12. Remove setting of attribute com.browser.browser.userEdited on user-inputs */ function collect(document, undefined) { @@ -50,11 +51,6 @@ // END MODIFICATION document.elementsByOPID = {}; - document.addEventListener('input', function (inputevent) { - inputevent.a !== false && - inputevent.target.tagName.toLowerCase() === 'input' && - (inputevent.target.dataset['com.bitwarden.browser.userEdited'] = 'yes'); - }, true); function getPageDetails(theDoc, oneShotId) { // start helpers @@ -279,8 +275,6 @@ addProp(field, 'title', getElementAttrValue(el, 'title')); // START MODIFICATION - addProp(field, 'userEdited', !!el.dataset['com.browser.browser.userEdited']); - var elTagName = el.tagName.toLowerCase(); addProp(field, 'tagName', elTagName);