Index: src/ephy-home-action.c
===================================================================
--- src/ephy-home-action.c	(revision 6980)
+++ src/ephy-home-action.c	(working copy)
@@ -74,7 +74,7 @@ ephy_home_action_with_clipboard (GtkActi
 	g_object_add_weak_pointer (ctx->weak_ptr, (gpointer *)object);
 
 	gtk_clipboard_request_text
-		(gtk_clipboard_get_for_display (gdk_display_get_default(), 
+		(gtk_clipboard_get_for_display (gdk_display_get_default (), 
 					        GDK_SELECTION_PRIMARY),
 		 (GtkClipboardTextReceivedFunc) clipboard_text_received_cb,
 		 ctx);
Index: src/popup-commands.c
===================================================================
--- src/popup-commands.c	(revision 6980)
+++ src/popup-commands.c	(working copy)
@@ -134,6 +134,7 @@ popup_cmd_bookmark_link (GtkAction *acti
 static void
 popup_cmd_copy_to_clipboard (EphyWindow *window, const char *text)
 {
+	g_print("%s yayayaya\n", text);
 	gtk_clipboard_set_text (gtk_clipboard_get (GDK_NONE),
 				text, -1);
 	gtk_clipboard_set_text (gtk_clipboard_get (GDK_SELECTION_PRIMARY),
Index: src/ephy-window.c
===================================================================
--- src/ephy-window.c	(revision 6980)
+++ src/ephy-window.c	(working copy)
@@ -2560,6 +2560,12 @@ notebook_page_close_request_cb (EphyNote
 	{
 		return;
 	}
+	if (gtk_notebook_get_n_pages (priv->notebook) == 1)
+	{
+		g_print("storing clipboard wi\n");
+		gtk_clipboard_store 
+			(gtk_clipboard_get (GDK_SELECTION_CLIPBOARD));
+	}
 
 	embed = ephy_tab_get_embed (tab);
 	g_return_if_fail (embed != NULL);
