Backed out changeset 3c4aab21b3a1 (bug 1559993) for ES Lint failure. CLOSED TREE

This commit is contained in:
Ciure Andrei 2019-07-13 01:36:23 +03:00
Родитель 97a432f01b
Коммит 30b9ffc37f
3 изменённых файлов: 2 добавлений и 32 удалений

Просмотреть файл

@ -1077,7 +1077,6 @@ confirmationHint.pageBookmarked.label = Saved to Library!
confirmationHint.addSearchEngine.label = Search engine added!
confirmationHint.pinTab.label = Pinned!
confirmationHint.pinTab.description = Right-click the tab to unpin it.
confirmationHint.passwordSaved.label = Password saved!
# LOCALIZATION NOTE (livebookmarkMigration.title):
# Used by the export of user's live bookmarks to an OPML file as a title for the file.

Просмотреть файл

@ -1210,11 +1210,9 @@ LoginManagerPrompter.prototype = {
"togglePasswordAccessKey2"
);
let popupNote = this._getPopupNote();
let notificationID = "password";
popupNote.show(
this._getPopupNote().show(
browser,
notificationID,
"password",
promptMsg,
"password-notification-icon",
mainAction,
@ -1296,12 +1294,6 @@ LoginManagerPrompter.prototype = {
options
)
);
if (options.notifySaved) {
let notification = popupNote.getNotification(notificationID);
let anchor = notification.anchorElement;
anchor.ownerGlobal.ConfirmationHint.show(anchor, "passwordSaved");
}
},
_removeLoginNotifications() {

Просмотреть файл

@ -137,12 +137,6 @@ add_task(async function autocomplete_generated_password_auto_saved() {
usernameInput.setUserInput("user1");
}
);
let confirmationHint = document.getElementById("confirmation-hint");
let hintPromiseShown = BrowserTestUtils.waitForEvent(
confirmationHint,
"popupshown",
);
await fillGeneratedPasswordFromACPopup(browser, passwordInputSelector);
await ContentTask.spawn(
browser,
@ -157,21 +151,6 @@ add_task(async function autocomplete_generated_password_auto_saved() {
}
);
// Make sure confirmation hint was shown
await hintPromiseShown;
Assert.equal(
confirmationHint.anchorNode.id,
"password-notification-icon",
"Hint should be anchored on the password notification icon"
);
let hintPromiseHidden = BrowserTestUtils.waitForEvent(
confirmationHint,
"popuphidden",
);
await hintPromiseHidden;
// check a dismissed prompt was shown with extraAttr attribute
let notif = getCaptureDoorhanger("password-save");
ok(notif && notif.dismissed, "Dismissed notification was created");