Backed out changeset f15513c3ad0e (bug 1613731) for Mochitest perma failures. CLOSED TREE

This commit is contained in:
Razvan Maries 2020-02-07 21:12:16 +02:00
Родитель c26c7aeb90
Коммит fb4e88935e
3 изменённых файлов: 38 добавлений и 39 удалений

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

@ -233,32 +233,11 @@
data-l10n-id="main-context-menu-view-background-image"
oncommand="gContextMenu.viewBGImage(event);"
onclick="checkForMiddleClick(this, event);"/>
<menu id="fill-login"
label="&fillLoginMenu.label;"
label-login="&fillLoginMenu.label;"
label-password="&fillPasswordMenu.label;"
label-username="&fillUsernameMenu.label;"
accesskey="&fillLoginMenu.accesskey;"
accesskey-login="&fillLoginMenu.accesskey;"
accesskey-password="&fillPasswordMenu.accesskey;"
accesskey-username="&fillUsernameMenu.accesskey;"
hidden="true">
<menupopup id="fill-login-popup">
<menuitem id="fill-login-no-logins"
label="&noLoginSuggestions.label;"
disabled="true"
hidden="true"/>
<menuseparator id="saved-logins-separator"/>
<menuitem id="fill-login-saved-passwords"
label="&viewSavedLogins.label;"
oncommand="gContextMenu.openPasswordManager();"/>
</menupopup>
</menu>
<menuitem id="fill-login-generated-password"
data-l10n-id="main-context-menu-generate-new-password"
hidden="true"
oncommand="gContextMenu.useGeneratedPassword();"/>
<menuseparator id="fill-login-and-generated-password-separator"/>
<menuseparator id="generated-password-separator"/>
<menuitem id="context-undo"
data-l10n-id="text-action-undo"
command="cmd_undo"/>
@ -375,6 +354,28 @@
<menuitem hidden="true" id="context-bidi-page-direction-toggle"
data-l10n-id="main-context-menu-bidi-switch-page"
oncommand="gContextMenu.switchPageDirection();"/>
<menuseparator id="fill-login-separator" hidden="true"/>
<menu id="fill-login"
label="&fillLoginMenu.label;"
label-login="&fillLoginMenu.label;"
label-password="&fillPasswordMenu.label;"
label-username="&fillUsernameMenu.label;"
accesskey="&fillLoginMenu.accesskey;"
accesskey-login="&fillLoginMenu.accesskey;"
accesskey-password="&fillPasswordMenu.accesskey;"
accesskey-username="&fillUsernameMenu.accesskey;"
hidden="true">
<menupopup id="fill-login-popup">
<menuitem id="fill-login-no-logins"
label="&noLoginSuggestions.label;"
disabled="true"
hidden="true"/>
<menuseparator id="saved-logins-separator"/>
<menuitem id="fill-login-saved-passwords"
label="&viewSavedLogins.label;"
oncommand="gContextMenu.openPasswordManager();"/>
</menupopup>
</menu>
<menuseparator id="inspect-separator" hidden="true"/>
<menuitem id="context-inspect"
hidden="true"

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

@ -984,12 +984,10 @@ class nsContextMenu {
let insertBeforeElement = document.getElementById("fill-login-no-logins");
popup.insertBefore(fragment, insertBeforeElement);
} finally {
this.showItem("fill-login-separator", showFill);
this.showItem("fill-login", showFill);
this.showItem("fill-login-generated-password", showGenerate);
this.showItem(
"fill-login-and-generated-password-separator",
showFill || showGenerate
);
this.showItem("generated-password-separator", showGenerate);
}
}

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

@ -229,19 +229,6 @@ add_task(async function test_password_input() {
await test_contextmenu(
"#input_password",
[
"fill-login",
null,
[
"fill-login-no-logins",
false,
"---",
null,
"fill-login-saved-passwords",
true,
],
null,
"---",
null,
"context-undo",
false,
"---",
@ -258,6 +245,19 @@ add_task(async function test_password_input() {
null,
"context-selectall",
null,
"---",
null,
"fill-login",
null,
[
"fill-login-no-logins",
false,
"---",
null,
"fill-login-saved-passwords",
true,
],
null,
],
{
skipFocusChange: true,