mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-31 17:57:43 +01:00
[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:
parent
c06c0f9f2c
commit
91ff4fc00d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user