[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
This commit is contained in:
Hunter Bertoson 2022-12-16 10:02:13 -06:00 committed by GitHub
parent c06c0f9f2c
commit 91ff4fc00d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -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);