1
0
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:
Kyle Spearrin
2017-10-17 22:52:56 -04:00
parent 3d45cfc7b8
commit 9fe35a9aef
3 changed files with 19 additions and 8 deletions

View File

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

View File

@@ -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,