mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
filter senders for autofill
This commit is contained in:
@@ -40,10 +40,13 @@ angular
|
||||
return;
|
||||
}
|
||||
|
||||
chrome.tabs.sendMessage(tabs[0].id,
|
||||
{ command: 'collectPageDetails', tab: tabs[0], sender: 'currentController' }, function () {
|
||||
canAutofill = true;
|
||||
});
|
||||
chrome.tabs.sendMessage(tabs[0].id, {
|
||||
command: 'collectPageDetails',
|
||||
tab: tabs[0],
|
||||
sender: 'currentController'
|
||||
}, function () {
|
||||
canAutofill = true;
|
||||
});
|
||||
|
||||
var otherTypes = [constantsService.cipherType.card, constantsService.cipherType.identity];
|
||||
cipherService.getAllDecryptedForDomain(domain, otherTypes).then(function (ciphers) {
|
||||
|
||||
@@ -78,7 +78,7 @@ angular
|
||||
$state.go('home');
|
||||
});
|
||||
}
|
||||
else if (msg.command === 'collectPageDetailsResponse') {
|
||||
else if (msg.command === 'collectPageDetailsResponse' && msg.sender === 'currentController') {
|
||||
$scope.$broadcast('collectPageDetailsResponse', {
|
||||
frameId: sender.frameId,
|
||||
tab: msg.tab,
|
||||
|
||||
Reference in New Issue
Block a user