1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

Added autofill support for iframed login forms. #20

This commit is contained in:
Kyle Spearrin
2016-11-25 22:01:46 -05:00
parent 3f7f8b781c
commit 2b2794dd7e
5 changed files with 100 additions and 33 deletions

View File

@@ -81,7 +81,15 @@
chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
if (msg.command === 'collectPageDetails') {
var pageDetails = collect(document);
sendResponse(JSON.parse(pageDetails));
var pageDetailsObj = JSON.parse(pageDetails);
console.log(pageDetailsObj);
//sendResponse(pageDetailsObj);
chrome.runtime.sendMessage({
command: 'collectPageDetailsResponse',
tabId: msg.tabId,
details: pageDetailsObj
});
sendResponse();
return true;
}
else if (msg.command === 'fillForm') {