Bug 1719463 - Part 6: Remove the Library item from the pre-proton appMenu view. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D121806
This commit is contained in:
Sam Foster 2021-08-10 05:29:32 +00:00
Родитель d81c1b741c
Коммит 7e355195be
4 изменённых файлов: 2 добавлений и 9 удалений

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

@ -6,11 +6,6 @@
<panelview id="appMenu-mainView" class="PanelUI-subView" <panelview id="appMenu-mainView" class="PanelUI-subView"
descriptionheightworkaround="true"> descriptionheightworkaround="true">
<vbox class="panel-subview-body"> <vbox class="panel-subview-body">
<toolbarbutton id="appMenu-library-button"
class="subviewbutton subviewbutton-iconic subviewbutton-nav"
label="&places.library.title;"
closemenu="none"
oncommand="PanelUI.showSubView('appMenu-libraryView', this)"/>
<toolbarbutton id="appMenu-logins-button" <toolbarbutton id="appMenu-logins-button"
class="subviewbutton subviewbutton-iconic" class="subviewbutton subviewbutton-iconic"
label="&logins.label;" label="&logins.label;"

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

@ -159,7 +159,6 @@ var UITour = {
], ],
["help", { query: "#appMenu-help-button" }], ["help", { query: "#appMenu-help-button" }],
["home", { query: "#home-button" }], ["home", { query: "#home-button" }],
["library", { query: "#appMenu-library-button" }],
[ [
"logins", "logins",
{ {

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

@ -27,10 +27,10 @@ add_UITour_task(async function test_highlight_help_and_show_help_subview() {
is( is(
getShowHighlightTargetName(), getShowHighlightTargetName(),
"help", "help",
"Should highlight the library button on the app menu" "Should highlight the help button on the app menu"
); );
// Click the library button to show the subview // Click the help button to show the subview
let ViewShownPromise = new Promise(resolve => { let ViewShownPromise = new Promise(resolve => {
appMenu.addEventListener("ViewShown", resolve, { once: true }); appMenu.addEventListener("ViewShown", resolve, { once: true });
}); });

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

@ -16,7 +16,6 @@ function getExpectedTargets() {
"backForward", "backForward",
"devtools", "devtools",
"help", "help",
"library",
"logins", "logins",
"pageAction-bookmark", "pageAction-bookmark",
...(hasPocket ? ["pocket"] : []), ...(hasPocket ? ["pocket"] : []),