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

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

Issue 2502783004: Don't skip security checks for javascript: URLs when the JS stack is empty. (Closed)
Patch Set: Created 4 years, 1 month 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 f9cb5ee6cdfe3cdde6310d1d929f7657aac149d7..a22c8d7a78ba26d4e081a0f6b4e64613feaf8e56 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
@@ -146,7 +146,7 @@ void HTMLIFrameElement::parseAttribute(const QualifiedName& name,
}
bool HTMLIFrameElement::layoutObjectIsNeeded(const ComputedStyle& style) {
- return isURLAllowed() && HTMLElement::layoutObjectIsNeeded(style);
+ return isURLAllowed(true) && HTMLElement::layoutObjectIsNeeded(style);
}
LayoutObject* HTMLIFrameElement::createLayoutObject(const ComputedStyle&) {

Powered by Google App Engine
This is Rietveld 408576698