summaryrefslogtreecommitdiffstats
path: root/toolkit/components/passwordmgr/test/mochitest/test_autofocus_js.html
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/passwordmgr/test/mochitest/test_autofocus_js.html')
-rw-r--r--toolkit/components/passwordmgr/test/mochitest/test_autofocus_js.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/toolkit/components/passwordmgr/test/mochitest/test_autofocus_js.html b/toolkit/components/passwordmgr/test/mochitest/test_autofocus_js.html
index 803197c2a2..ae4586f1bb 100644
--- a/toolkit/components/passwordmgr/test/mochitest/test_autofocus_js.html
+++ b/toolkit/components/passwordmgr/test/mochitest/test_autofocus_js.html
@@ -22,6 +22,8 @@ const iframe = document.getElementsByTagName("iframe")[0];
let iframeDoc, hostname;
add_setup(async () => {
+ SpecialPowers.pushPrefEnv({"set": [["signon.webauthn.autocomplete", false]]});
+
const origin = window.location.origin;
await setStoredLoginsAsync(
[origin, origin, null, "name", "pass"],
@@ -96,9 +98,9 @@ add_task(async function test_not_reopened_after_selecting() {
listenForUnexpectedPopupShown();
await SpecialPowers.spawn(getIframeBrowsingContext(window), [], function() {
- let formFillController = SpecialPowers.getFormFillController();
+ const actor = content.windowGlobalChild.getActor("AutoComplete");
let usernameField = this.content.document.getElementById("form-basic-username");
- formFillController.markAsLoginManagerField(usernameField);
+ actor.markAsAutoCompletableField(usernameField);
});
info("Waiting to see if a popupshown occurs");