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

Unified Diff: Source/core/frame/Frame.cpp

Issue 967423005: <iframe sandbox> should inherit through <a target='_blank'>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix. Created 5 years, 10 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: Source/core/frame/Frame.cpp
diff --git a/Source/core/frame/Frame.cpp b/Source/core/frame/Frame.cpp
index 7194c8d8a7e560b002a84ca525112642ccfb2aa1..da10a9311e270162a9e519d8ba9a07809515d616 100644
--- a/Source/core/frame/Frame.cpp
+++ b/Source/core/frame/Frame.cpp
@@ -163,7 +163,7 @@ void Frame::finishSwapFrom(Frame* old)
Frame* Frame::findFrameForNavigation(const AtomicString& name, Frame& activeFrame)
Nate Chapin 2015/03/04 17:44:55 This unconditionally returns the result of tree().
{
Frame* frame = tree().find(name);
- if (!frame || !activeFrame.canNavigate(*frame))
+ if (!frame)
return nullptr;
return frame;
}

Powered by Google App Engine
This is Rietveld 408576698