diff options
author | Steve Block <steveblock@google.com> | 2012-03-27 18:37:04 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2012-03-28 16:47:03 +0100 |
commit | 6ed1fdfa7999878a811b09cdd647fbeace4353b8 (patch) | |
tree | ad88503212f21676929335576967232e5b63477d /Source/WebCore/page/Location.cpp | |
parent | db951b2c4c8fce1304a13d97dec4ae14be629380 (diff) | |
download | external_webkit-6ed1fdfa7999878a811b09cdd647fbeace4353b8.zip external_webkit-6ed1fdfa7999878a811b09cdd647fbeace4353b8.tar.gz external_webkit-6ed1fdfa7999878a811b09cdd647fbeace4353b8.tar.bz2 |
Cherry-pick WebKit change r87623 to fix use of KURL::prettyURL()
This is a prerequisite for http://trac.webkit.org/changeset/96779 to fix
window.location.
Note that a conflict occurred in
Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp but the
change is not required.
See http://trac.webkit.org/changeset/87623
Bug: 2159848
Change-Id: I5614b3588f30508f81b562aa7fb2f9027c2bda72
Diffstat (limited to 'Source/WebCore/page/Location.cpp')
-rw-r--r-- | Source/WebCore/page/Location.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/WebCore/page/Location.cpp b/Source/WebCore/page/Location.cpp index 4835a83..5af48cf 100644 --- a/Source/WebCore/page/Location.cpp +++ b/Source/WebCore/page/Location.cpp @@ -64,7 +64,8 @@ String Location::href() const return String(); const KURL& url = this->url(); - return url.hasPath() ? url.prettyURL() : url.prettyURL() + "/"; + // FIXME: Stop using deprecatedString(): https://bugs.webkit.org/show_bug.cgi?id=30225 + return url.hasPath() ? url.deprecatedString() : url.deprecatedString() + "/"; } String Location::protocol() const @@ -153,7 +154,8 @@ String Location::toString() const return String(); const KURL& url = this->url(); - return url.hasPath() ? url.prettyURL() : url.prettyURL() + "/"; + // FIXME: Stop using deprecatedString(): https://bugs.webkit.org/show_bug.cgi?id=30225 + return url.hasPath() ? url.deprecatedString() : url.deprecatedString() + "/"; } void Location::setHref(const String& urlString, DOMWindow* activeWindow, DOMWindow* firstWindow) |