Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index 53d69df8b7bebd37217f1c7cac4ccafa9963ce8a..c7a8df4a374d98ce82e83be34ac22fb844d3a488 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -3417,18 +3417,16 @@ void Document::maybeHandleHttpRefresh(const String& content, |
return; |
double delay; |
- String refreshURL; |
+ String refreshURLString; |
if (!parseHTTPRefresh(content, httpRefreshType == HttpRefreshFromMetaTag |
? isHTMLSpace<UChar> |
: nullptr, |
- delay, refreshURL)) |
+ delay, refreshURLString)) |
return; |
- if (refreshURL.isEmpty()) |
- refreshURL = url().getString(); |
- else |
- refreshURL = completeURL(refreshURL).getString(); |
+ KURL refreshURL = |
+ refreshURLString.isEmpty() ? url() : completeURL(refreshURLString); |
- if (protocolIsJavaScript(refreshURL)) { |
+ if (refreshURL.protocolIsJavaScript()) { |
String message = |
"Refused to refresh " + m_url.elidedString() + " to a javascript: URL"; |
addConsoleMessage(ConsoleMessage::create(SecurityMessageSource, |