Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 0b5c733

Browse files
author
Emma Malysz
committed
Bug 1689437, respect bookmarks.toolbars.bookmarks pref values to display bookmarks toolbar in skeleton UI r=dthayer a=pascalc
Differential Revision: https://phabricator.services.mozilla.com/D103358
1 parent dbb2ef4 commit 0b5c733

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

xpfe/appshell/AppWindow.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1877,9 +1877,13 @@ nsresult AppWindow::MaybeSaveEarlyWindowPersistentValues(
18771877
}
18781878
settings.searchbarSpan = searchbar;
18791879

1880-
Element* bookmarksToolbar = doc->GetElementById(u"PersonalToolbar"_ns);
1881-
bookmarksToolbar->GetAttribute(u"collapsed"_ns, attributeValue);
1882-
settings.bookmarksToolbarShown = attributeValue.EqualsLiteral("false");
1880+
nsAutoString bookmarksVisibility;
1881+
Preferences::GetString("browser.toolbars.bookmarks.visibility",
1882+
bookmarksVisibility);
1883+
settings.bookmarksToolbarShown =
1884+
bookmarksVisibility.EqualsLiteral("always") ||
1885+
(Preferences::GetBool("browser.toolbars.bookmarks.2h2020", false) &&
1886+
bookmarksVisibility.EqualsLiteral("newtab"));
18831887

18841888
Element* menubar = doc->GetElementById(u"toolbar-menubar"_ns);
18851889
menubar->GetAttribute(u"autohide"_ns, attributeValue);

0 commit comments

Comments
 (0)