1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-29 17:38:04 +01:00

only skip username only fill when from autofiller

This commit is contained in:
Kyle Spearrin 2017-10-07 13:17:43 -04:00
parent 7561ae4996
commit 22e1c7d58d
2 changed files with 3 additions and 3 deletions

View File

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

View File

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