Bug 1543449 - Follow-up to properly clear the password field in the doorhanger. r=intermittent
☠☠ backed out by 2f7d2b9798c2 ☠ ☠
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Fri, 19 Apr 2019 13:49:46 -0700
changeset 470299 33f6d42d7fa92c72b4adb78cf1e6f19932266bf6
parent 470298 3dec47dd1b9bd55ef81b52d39f18742ecd2c9c05
child 470300 e9be442c871e173a409f3b969f5bcea0e1ae4d71
push id35894
push userdvarga@mozilla.com
push dateSat, 20 Apr 2019 21:47:58 +0000
treeherdermozilla-central@72be82c6809e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersintermittent
bugs1543449
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1543449 - Follow-up to properly clear the password field in the doorhanger. r=intermittent
toolkit/components/passwordmgr/test/browser/browser_notifications_2.js
--- a/toolkit/components/passwordmgr/test/browser/browser_notifications_2.js
+++ b/toolkit/components/passwordmgr/test/browser/browser_notifications_2.js
@@ -30,16 +30,17 @@ add_task(async function test_empty_passw
     await promiseShown;
 
     let notificationElement = PopupNotifications.panel.childNodes[0];
     let passwordTextbox = notificationElement.querySelector("#password-notification-password");
 
     // Synthesize input to empty the field
     passwordTextbox.focus();
     await EventUtils.synthesizeKey("KEY_ArrowRight");
+    await EventUtils.synthesizeKey("KEY_ArrowRight");
     await EventUtils.synthesizeKey("KEY_Backspace");
     await EventUtils.synthesizeKey("KEY_Backspace");
 
     let mainActionButton = notificationElement.button;
     Assert.ok(mainActionButton.disabled, "Main action button is disabled");
   });
 });