diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 6 | ||||
-rw-r--r-- | embed/mozilla/EventContext.cpp | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index 56d4932d3..023350fce 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -219,9 +219,11 @@ EphyDOMLinkEventListener::HandleEvent (nsIDOMEvent* aDOMEvent) NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE); if (!shouldLoad) return NS_OK; #endif - + /* Hide password part */ - favUri->SetPassword (nsEmbedCString ()); + nsEmbedCString user; + favUri->GetUsername (user); + favUri->SetUserPass (user); nsEmbedCString spec; favUri->GetSpec (spec); diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp index 76da99c8c..04e1c1022 100644 --- a/embed/mozilla/EventContext.cpp +++ b/embed/mozilla/EventContext.cpp @@ -985,7 +985,9 @@ nsresult EventContext::SetURIProperty (nsIDOMNode *node, const char *name, const if (NS_SUCCEEDED (rv) && uri) { /* Hide password part */ - uri->SetPassword (nsEmbedCString()); + nsEmbedCString user; + uri->GetUsername (user); + uri->SetUserPass (user); nsEmbedCString spec; uri->GetSpec (spec); |