summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-07-18 19:09:05 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-07-18 19:21:07 +0200
commit7ae3ec2d4fc13c39824b893d3eb63129734c1e1e (patch)
tree9b9c63a801f3532f3b9d70d2d6e0eafe28c685f4 /toolkit
parent9e761c02f3334e3ad99ebccfe75c9ddd93064576 (diff)
downloaduxp-7ae3ec2d4fc13c39824b893d3eb63129734c1e1e.tar.gz
Revert "Capture delayed events and cancel as necessary."
Tag mcp-graveyard/UXP#1052 (backout). Backed out for creating issues like #1191 and other issue-less problems with e.g. losing the caret from text boxes. Of note: this was also backed out from m-c for similar reasons in Bug 1332433. This fixes #1191. This reverts commit 3424afccaebc71c4acd4fa9eadf519c408c5965b.
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/components/passwordmgr/test/subtst_master_pass.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/toolkit/components/passwordmgr/test/subtst_master_pass.html b/toolkit/components/passwordmgr/test/subtst_master_pass.html
index 14174726ac..20211866ae 100644
--- a/toolkit/components/passwordmgr/test/subtst_master_pass.html
+++ b/toolkit/components/passwordmgr/test/subtst_master_pass.html
@@ -2,6 +2,11 @@
This form triggers a MP and gets filled in.<br>
<form>
Username: <input type="text" id="userfield" name="u"><br>
-Password: <input type="password" id="passfield" name="p"
- oninput="parent.postMessage('filled', '*');"><br>
+Password: <input type="password" id="passfield" name="p"><br>
+<script>
+ // Only notify when we fill in the password field.
+ document.getElementById("passfield").addEventListener("input", function() {
+ parent.postMessage("filled", "*");
+ });
+</script>
</form>