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

Unified Diff: third_party/WebKit/Source/core/frame/Location.cpp

Issue 2644633006: Add KURL::protocolIsJavascript member function (Closed)
Patch Set: Created 3 years, 11 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
Index: third_party/WebKit/Source/core/frame/Location.cpp
diff --git a/third_party/WebKit/Source/core/frame/Location.cpp b/third_party/WebKit/Source/core/frame/Location.cpp
index 46f2c1cd3c7e42f4d1208261b37c0223376cf3e3..9a1ebf41694440f2ae194ad213f68852924d19bb 100644
--- a/third_party/WebKit/Source/core/frame/Location.cpp
+++ b/third_party/WebKit/Source/core/frame/Location.cpp
@@ -255,7 +255,7 @@ void Location::replace(LocalDOMWindow* currentWindow,
void Location::reload(LocalDOMWindow* currentWindow) {
if (!m_frame)
return;
- if (protocolIsJavaScript(toLocalFrame(m_frame)->document()->url()))
+ if (toLocalFrame(m_frame)->document()->url().protocolIsJavaScript())
return;
FrameLoadType reloadType =
RuntimeEnabledFeatures::fasterLocationReloadEnabled()
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/html/HTMLFormElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698