What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

If I navigate to my user summary page via the link up top, the <title> of the page shows (Untitled). If I refresh the page, though, it shows the correct title.

This happens on Terra(iPad 1, iOS 5.latest), and Chrome dev/beta.

It sorta makes it hard to keep track of tabs.

This also happens if I click my rep on the top of the page.

share|improve this question
Can't reproduce (Chrome here as well) - when you view the page HTML source when it happens what do you see? Anything abnormal? –  Shadow Wizard May 2 '12 at 7:39
@Sha hmm, I'll check back on chrome (no laptop atm) –  Manishearth May 2 '12 at 7:42
@TheE nope, tablets take the desktop theme. –  Manishearth May 2 '12 at 7:42
Then...no repro on Chrome. The <title> tag is there, and so is the title. –  Cody Gray May 2 '12 at 7:42
@TheE probably got fixed in a millisecond-chrome-update. I remember seeing this before I left for vacation, and I still see it on Terra. Probably a Terra bug then, closing as too localized. –  Manishearth May 2 '12 at 7:44
What version of Chrome do you have? I have 18.0.1025.168 on this computer. –  Cody Gray May 2 '12 at 7:45
@TheE like I said, no laptop access atm.. I'll check it out once I get back to a laptop. –  Manishearth May 2 '12 at 7:47
Sorry, I didn't realize you queued your bug reports. :-) –  Cody Gray May 2 '12 at 7:47
@TheE was out of town, intermittent Net access. I'd kept forgetting to post this. ;-) –  Manishearth May 2 '12 at 7:49
Confirmed for Opera (Win 7 and Xubuntu): Sometimes the title has content in source view but the actual rendered title is empty. There seems to be a script that changes the title. –  toscho May 2 '12 at 9:18
add comment

1 Answer

It seems that the history plugin assassinates the title when the page loads:

history plugin killing title

Presumably this is caused by the weird behaviour that goes on in setTitle, where a blank c.title is meant to be replaced when getStateByIndex(0) returns a value...only it never does, because it's defined as

a.getStateByIndex = function(a) {
    return null

...which certainly doesn't appear to be the current implementation. Presumably updating the plugin would fix the problem by allowing it to at least branch to the part that conditionally assigns the title as a.options.initialTitle (which is set correctly), but I'd have to test to be positive.

Of course, this isn't a problem for Firefox since it doesn't fire the initial popstate event that causes this code to be called on load in Chrome (and Opera, based on the comments above).

share|improve this answer
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .