From c890cd0c5430f702d07bc3112ac5350af601a952 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 6 May 2005 18:21:07 +0000 Subject: Use the document's URL as tab address, not the info from the location 2005-05-06 Christian Persch * embed/mozilla/EphyBrowser.cpp: * src/ephy-tab.c: (ephy_tab_address_cb): Use the document's URL as tab address, not the info from the location changed signal. --- embed/mozilla/EphyBrowser.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'embed') diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index 0372fc13c..257624e95 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -229,8 +229,14 @@ EphyDOMLinkEventListener::HandleEvent (nsIDOMEvent* aDOMEvent) if (!shouldLoad) return NS_OK; #endif + /* Hide password part */ + favUri->SetPassword (nsEmbedCString ()); + + nsEmbedCString spec; + favUri->GetSpec (spec); + /* ok, we accept this as a valid favicon for this site */ - g_signal_emit_by_name (mOwner->mEmbed, "ge_favicon", faviconUrl.get()); + g_signal_emit_by_name (mOwner->mEmbed, "ge_favicon", spec.get()); } else if (g_ascii_strcasecmp (rel.get (), "alternate") == 0) { @@ -252,6 +258,9 @@ EphyDOMLinkEventListener::HandleEvent (nsIDOMEvent* aDOMEvent) rv = GetDocURI (linkElement, getter_AddRefs (docUri)); NS_ENSURE_TRUE (NS_SUCCEEDED (rv) && docUri, NS_ERROR_FAILURE); + /* Hide password part */ + docUri->SetPassword (nsEmbedCString ()); + nsEmbedCString resolvedLink; rv = docUri->Resolve (cLink, resolvedLink); NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE); -- cgit v1.2.3