commit 727ea60cf0c026a677309be2a5aa4b94b870d4c6
Author: alex <alex@livonia.localdomain>
Date:   Fri Jan 8 17:48:10 2010 +0100

    Fix problem with the tab loading title
    
    Set NULL as the default title in order to identify the moment we
    receive a proper title for the window, until that moment we use the
    loading_title.
    
    Bug #606098

diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 6b717a0..d36b407 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1383,7 +1383,7 @@ ephy_web_view_class_init (EphyWebViewClass *klass)
                                    g_param_spec_string ("embed-title",
                                                         "Title",
                                                         "The view's title",
-                                                        EMPTY_PAGE,
+                                                        NULL,
                                                         G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
 
 /**
@@ -1968,7 +1968,7 @@ ephy_web_view_init (EphyWebView *web_view)
   priv->expire_address_now = TRUE;
   priv->is_blank = TRUE;
   priv->load_status = WEBKIT_LOAD_PROVISIONAL;
-  priv->title = g_strdup (EMPTY_PAGE);
+  priv->title = NULL;
   priv->document_type = EPHY_WEB_VIEW_DOCUMENT_HTML;
   priv->security_level = EPHY_WEB_VIEW_STATE_IS_UNKNOWN;
   priv->monitor_directory = FALSE;
@@ -3187,13 +3187,11 @@ ephy_web_view_get_title_composite (EphyWebView *view)
   loading_title = ephy_web_view_get_loading_title (view);
   title = ephy_web_view_get_title (view);
 
-  if (is_blank)
-  {
-    if (is_loading)
+  if (is_loading) {
+    if (title == NULL)
       title = loading_title;
-    else
-      title = _("Blank page");
-  }
+  } else if (is_blank)
+    title = _("Blank page");
 
   return title != NULL ? title : "";
 }
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 8dbb10e..d0ccbbc 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -537,7 +537,7 @@ sync_label (EphyWebView *view, GParamSpec *pspec, GtkWidget *label)
 {
 	const char *title;
 
-	title = ephy_web_view_get_title (view);
+	title = ephy_web_view_get_title_composite (view);
 
 	gtk_label_set_text (GTK_LABEL (label), title);
 
