summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-25 22:04:37 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-25 22:04:37 +0000
commit7e2639413fc87b91d1327a57303493d84823f070 (patch)
tree2c8f494e45fbd787ca2c1efbbbbee72826afd045 /webkit
parent7fe2c0b8630fabd9919dc61757392ea2aac9d72b (diff)
downloadchromium_src-7e2639413fc87b91d1327a57303493d84823f070.zip
chromium_src-7e2639413fc87b91d1327a57303493d84823f070.tar.gz
chromium_src-7e2639413fc87b91d1327a57303493d84823f070.tar.bz2
Append a trailing slash on file directory URLs. Thus a link to /directory will work just as well as a link to /directory/
Review URL: http://codereview.chromium.org/12620 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5999 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/test_shell/test_webview_delegate.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc
index e9d60e2..28e6a29 100644
--- a/webkit/tools/test_shell/test_webview_delegate.cc
+++ b/webkit/tools/test_shell/test_webview_delegate.cc
@@ -223,10 +223,11 @@ void TestWebViewDelegate::DidFailProvisionalLoadWithError(
bool replace = extra_data && extra_data->pending_page_id != -1;
scoped_ptr<WebRequest> request(failed_request.Clone());
- request->SetURL(GURL("testshell-error:"));
std::string error_text =
- StringPrintf("Error loading url: %d", error.GetErrorCode());
+ StringPrintf("Error %d when loading url %s", error.GetErrorCode(),
+ request->GetURL().spec().c_str());
+ request->SetURL(GURL("testshell-error:"));
frame->LoadAlternateHTMLString(request.get(), error_text,
error.GetFailedURL(), replace);