mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00: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:
@@ -42,6 +42,7 @@
|
|||||||
9. Add new handler, for new command that responds with page details in response callback
|
9. Add new handler, for new command that responds with page details in response callback
|
||||||
10. Handle sandbox iframe and sandbox rule in CSP
|
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
|
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) {
|
function collect(document, undefined) {
|
||||||
@@ -50,11 +51,6 @@
|
|||||||
// END MODIFICATION
|
// END MODIFICATION
|
||||||
|
|
||||||
document.elementsByOPID = {};
|
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) {
|
function getPageDetails(theDoc, oneShotId) {
|
||||||
// start helpers
|
// start helpers
|
||||||
@@ -279,8 +275,6 @@
|
|||||||
addProp(field, 'title', getElementAttrValue(el, 'title'));
|
addProp(field, 'title', getElementAttrValue(el, 'title'));
|
||||||
|
|
||||||
// START MODIFICATION
|
// START MODIFICATION
|
||||||
addProp(field, 'userEdited', !!el.dataset['com.browser.browser.userEdited']);
|
|
||||||
|
|
||||||
var elTagName = el.tagName.toLowerCase();
|
var elTagName = el.tagName.toLowerCase();
|
||||||
addProp(field, 'tagName', elTagName);
|
addProp(field, 'tagName', elTagName);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user