mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-20 16:07:45 +01:00
only skip username only fill when from autofiller
This commit is contained in:
parent
7561ae4996
commit
22e1c7d58d
@ -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
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user