From f59dadc4d4a8528e26da48de52fa1e0f481da5ed Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Thu, 4 Sep 2014 16:29:43 +0200 Subject: [PATCH] Web+: Update URL on LoadFinished and LoadCommitted * LoadFinished is called after redirects have taken place, so we can show the final URL. It's also called for navigation inside a document (jumping to anchors), whereas LoadCommitted is not. * LoadCommitted is called earlier so we also want to set the URL there. --- src/apps/webpositive/BrowserWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apps/webpositive/BrowserWindow.cpp b/src/apps/webpositive/BrowserWindow.cpp index 92e225fc8a..5d6ff08d9a 100644 --- a/src/apps/webpositive/BrowserWindow.cpp +++ b/src/apps/webpositive/BrowserWindow.cpp @@ -1520,6 +1520,8 @@ BrowserWindow::LoadFinished(const BString& url, BWebView* view) if (view != CurrentWebView()) return; + fURLInputGroup->SetText(url.String()); + BString status(B_TRANSLATE_COMMENT("%url finished", "Loading URL " "finished. Don't translate variable %url.")); status.ReplaceFirst("%url", url);