Skip to content

Commit

Permalink
fire change event after password inject
Browse files Browse the repository at this point in the history
  • Loading branch information
ttyridal committed Mar 6, 2017
1 parent 3595cf6 commit 7932c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/webextension/src/bg/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down

0 comments on commit 7932c12

Please sign in to comment.