Open Bug 1233504 Opened 9 years ago Updated 2 years ago

Firefox shouldn’t change tab title to “Connecting…” when restoring pending tab

Categories

(Firefox :: Tabbed Browser, defect)

defect

Tracking

()

People

(Reporter: tabmix.onemen, Unassigned)

Details

when selecting a pending tab, the tab title change to Connecting… for a split second.

there is no reason to change the title to Connecting… when restoring a pending tab
(In reply to tabmix.onemen from comment #0)
> when selecting a pending tab, the tab title change to Connecting… for a
> split second.
> 
> there is no reason to change the title to Connecting… when restoring a
> pending tab

I'm a little confused - don't we request data from the server for the HTML of the toplevel page for these tabs? So why isn't "Connecting..." correct?
Flags: needinfo?(tabmix.onemen)
I didn't say that it is not correct, i say it is not necessary.

the tab title already set before by SessionStore, and the page content get loaded from cache most of the time for restored tab (as far as i know)

If you look at the title you will just see it flicker for a moment
Do you need any more information from me?
(In reply to tabmix.onemen from comment #3)
> Do you need any more information from me?

Well, it depends...

I *think*, but I could be wrong, that pages don't always load from cache, especially no-cache SSL pages might not, I would expect. But I don't believe there's any way for the frontend to know if we're going to be doing "actual" network access or not, and leaving the page title there and no indication that we're "connecting" when we are in fact waiting for the network and showing a blank content area seems wrong. Am I wrong and/or misunderstanding your request?

Mike, do you know something about the session store aspect of this?
Flags: needinfo?(mconley)
(In reply to :Gijs Kruitbosch from comment #4)
> 
> Mike, do you know something about the session store aspect of this?

I can't think of a good reason to hide the tab title with Connecting for this case, tbh - if the tab title _is_ out of date, then when the document loads, I believe a DOMTitleChanged event will be fired in any case, and the parent will be notified to update.
Flags: needinfo?(mconley)
Flags: needinfo?(tabmix.onemen)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.