mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
only skip username only fill when from autofiller
This commit is contained in:
@@ -123,7 +123,7 @@ var bg_isBackground = true,
|
|||||||
else if (msg.sender === 'autofiller' || msg.sender === 'autofill_cmd') {
|
else if (msg.sender === 'autofiller' || msg.sender === 'autofill_cmd') {
|
||||||
bg_autofillService.doAutoFillForLastUsedLogin([{
|
bg_autofillService.doAutoFillForLastUsedLogin([{
|
||||||
frameId: sender.frameId, tab: msg.tab, details: msg.details
|
frameId: sender.frameId, tab: msg.tab, details: msg.details
|
||||||
}]);
|
}], msg.sender === 'autofill_cmd');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
clearTimeout(autofillTimeout);
|
clearTimeout(autofillTimeout);
|
||||||
|
|||||||
@@ -276,7 +276,7 @@ function initAutofill() {
|
|||||||
return deferred.promise;
|
return deferred.promise;
|
||||||
};
|
};
|
||||||
|
|
||||||
AutofillService.prototype.doAutoFillForLastUsedLogin = function (pageDetails) {
|
AutofillService.prototype.doAutoFillForLastUsedLogin = function (pageDetails, fromCommand) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
|
chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
|
||||||
@@ -305,7 +305,7 @@ function initAutofill() {
|
|||||||
fromBackground: true,
|
fromBackground: true,
|
||||||
skipTotp: true,
|
skipTotp: true,
|
||||||
skipLastUsed: true,
|
skipLastUsed: true,
|
||||||
skipUsernameOnlyFill: true
|
skipUsernameOnlyFill: !fromCommand
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user