From 7932c121e0f8592aca5c78e637f04423c847b11a Mon Sep 17 00:00:00 2001 From: TorbjornTyridal Date: Mon, 6 Mar 2017 20:07:50 +0100 Subject: [PATCH] fire change event after password inject --- ext/webextension/src/bg/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/webextension/src/bg/background.js b/ext/webextension/src/bg/background.js index bffcaaf..2b32ecf 100644 --- a/ext/webextension/src/bg/background.js +++ b/ext/webextension/src/bg/background.js @@ -239,7 +239,7 @@ function update_page_password(pass, allow_subframe) { throw new Update_pass_failed("Not pasting to subframe"); return chrome.tabs.executeScript(r.tab.id, { - code: 'document.activeElement.value = ' + JSON.stringify(pass), + code: 'document.activeElement.value = ' + JSON.stringify(pass) + '; document.activeElement.dispatchEvent(new Event("change", {bubbles: true, cancelable: true}));', frameId: r.frameId, matchAboutBlank: true });