summaryrefslogtreecommitdiff
path: root/toolkit/components/passwordmgr/test
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-04-26 14:13:32 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-04-26 14:13:32 +0200
commit818a3abca5e0ba25ada99085fd4169b35866f1a7 (patch)
treeb9c79b7f13f0fac5ad645c07e77892596cfb122a /toolkit/components/passwordmgr/test
parent5c1f92eb94465efa949f452b933ecfc5f2904cb5 (diff)
downloaduxp-818a3abca5e0ba25ada99085fd4169b35866f1a7.tar.gz
Capture delayed events and cancel as necessary.
Tag mcp-graveyard/UXP#1052
Diffstat (limited to 'toolkit/components/passwordmgr/test')
-rw-r--r--toolkit/components/passwordmgr/test/subtst_master_pass.html9
1 files changed, 2 insertions, 7 deletions
diff --git a/toolkit/components/passwordmgr/test/subtst_master_pass.html b/toolkit/components/passwordmgr/test/subtst_master_pass.html
index 20211866ae..14174726ac 100644
--- a/toolkit/components/passwordmgr/test/subtst_master_pass.html
+++ b/toolkit/components/passwordmgr/test/subtst_master_pass.html
@@ -2,11 +2,6 @@
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"><br>
-<script>
- // Only notify when we fill in the password field.
- document.getElementById("passfield").addEventListener("input", function() {
- parent.postMessage("filled", "*");
- });
-</script>
+Password: <input type="password" id="passfield" name="p"
+ oninput="parent.postMessage('filled', '*');"><br>
</form>