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

Unified Diff: third_party/WebKit/Source/core/html/HTMLPlugInElement.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/html/HTMLPlugInElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
index 5718ac82550f1d63e9b5574f9407988c554bf62c..ed05618b07ae7bac1f96455b39d745f2e253b58f 100644
--- a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
@@ -465,7 +465,7 @@ LayoutEmbeddedItem HTMLPlugInElement::layoutEmbeddedItem() const {
// depending on <param> values.
bool HTMLPlugInElement::allowedToLoadFrameURL(const String& url) {
KURL completeURL = document().completeURL(url);
- if (contentFrame() && protocolIsJavaScript(completeURL) &&
+ if (contentFrame() && completeURL.protocolIsJavaScript() &&
!document().getSecurityOrigin()->canAccess(
contentFrame()->securityContext()->getSecurityOrigin()))
return false;

Powered by Google App Engine
This is Rietveld 408576698