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

Unified Diff: third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp

Issue 2183423002: Only do security checks on javascript: URLs for frames for loading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/HTMLIFrameElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
index a68f5d7774d4e23cd38ff2668fc0550fc47c248b..87753c332dc4f19f9f334b5614627b4153a67fae 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
@@ -126,7 +126,7 @@ void HTMLIFrameElement::parseAttribute(const QualifiedName& name, const AtomicSt
bool HTMLIFrameElement::layoutObjectIsNeeded(const ComputedStyle& style)
{
- return isURLAllowed() && HTMLElement::layoutObjectIsNeeded(style);
+ return isURLAllowed(WillNotLoadURL) && HTMLElement::layoutObjectIsNeeded(style);
}
LayoutObject* HTMLIFrameElement::createLayoutObject(const ComputedStyle&)

Powered by Google App Engine
This is Rietveld 408576698