Closed Bug 1398465 Opened 7 years ago Closed 6 years ago

New tab title not properly updated when opening a new tab; this prevents userChrome.css styling of New Tab page

Categories

(Firefox :: New Tab Page, defect, P5)

57 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1423256
Tracking Status
firefox57 --- wontfix
firefox58 --- affected

People

(Reporter: alex.bock, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20170908220146

Steps to reproduce:

Edit userChrome.css to include these lines:

#main-window[title^="New Tab"] #PersonalToolbar {
  /* intentionally empty */
}

#main-window:not([title^="New Tab"]) #PersonalToolbar {
   visibility: collapse !important;
}


Actual results:

When I open a new tab, the bookmarks bar remains hidden. However, if I switch away from the new tab, and then back, it appears. So, the title is initially not properly updated when a new is opened, which prevents the application of the CSS above. 


Expected results:

The title should properly be applied right from the start such that the userChrome.css applies to the new tab page, so we can style it with CSS.
In fact, with the latest Nightly that I just downloaded, the title is erroneously displayed behind the tab bar and I can see that a new tab has the title "Nightly" rather than "New Tab".
Component: Untriaged → New Tab Page
Priority: -- → P5
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.