mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 598020 - Tabs for pages without titles are labeled "New Tab" instead of with the file name until they start restoring. r=zpao a=relanding-after-accidental-backout
This commit is contained in:
parent
9ab1f355f5
commit
92011af73a
@ -2378,8 +2378,15 @@ SessionStoreService.prototype = {
|
||||
browser.userTypedValue = activePageData ? activePageData.url || null : null;
|
||||
|
||||
// If the page has a title, set it.
|
||||
if (activePageData && activePageData.title)
|
||||
tab.label = activePageData.title;
|
||||
if (activePageData) {
|
||||
if (activePageData.title) {
|
||||
tab.label = activePageData.title;
|
||||
tab.crop = "end";
|
||||
} else if (activePageData.url != "about:blank") {
|
||||
tab.label = activePageData.url;
|
||||
tab.crop = "center";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!this._isWindowLoaded(aWindow)) {
|
||||
|
Loading…
Reference in New Issue
Block a user