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

Unified Diff: third_party/WebKit/Source/core/frame/DOMWindow.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/DOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/DOMWindow.cpp b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
index 3e4723950ddf5d5b5f8e47f46bf2669a907f6d40..0d85f6914c03d7e7c3eca2e647a6f1b27c238547 100644
--- a/third_party/WebKit/Source/core/frame/DOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
@@ -132,8 +132,8 @@ bool DOMWindow::isCurrentlyDisplayedInFrame() const {
}
bool DOMWindow::isInsecureScriptAccess(LocalDOMWindow& callingWindow,
- const String& urlString) {
- if (!protocolIsJavaScript(urlString))
+ const KURL& url) {
+ if (!url.protocolIsJavaScript())
return false;
// If this DOMWindow isn't currently active in the Frame, then there's no
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMWindow.h ('k') | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698