Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Unified Diff: third_party/WebKit/WebCore/page/Location.cpp

Issue 27342: Make KURLGoogle match webkit's query string parsing.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/WebCore/platform/KURLGoogle.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/page/Location.cpp
===================================================================
--- third_party/WebKit/WebCore/page/Location.cpp (revision 10557)
+++ third_party/WebKit/WebCore/page/Location.cpp (working copy)
@@ -123,7 +123,7 @@
return String();
const KURL& url = this->url();
- return url.query();
+ return url.query().isEmpty() ? "" : "?" + url.query();
}
String Location::hash() const
« no previous file with comments | « no previous file | third_party/WebKit/WebCore/platform/KURLGoogle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698