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

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

Issue 2907663004: FrameTree::Find only searches relative to local frames. (Closed)
Patch Set: . Created 3 years, 7 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/Frame.cpp
diff --git a/third_party/WebKit/Source/core/frame/Frame.cpp b/third_party/WebKit/Source/core/frame/Frame.cpp
index 28a96d4a9feb27d840f133551d8a334524fcce92..8231f58b32d80161bbc1aec09c31a4604a1e3ea8 100644
--- a/third_party/WebKit/Source/core/frame/Frame.cpp
+++ b/third_party/WebKit/Source/core/frame/Frame.cpp
@@ -131,14 +131,6 @@ ChromeClient& Frame::GetChromeClient() const {
return GetEmptyChromeClient();
}
-Frame* Frame::FindFrameForNavigation(const AtomicString& name,
- Frame& active_frame) {
- Frame* frame = Tree().Find(name);
- if (!frame || !active_frame.CanNavigate(*frame))
- return nullptr;
- return frame;
-}
-
static bool CanAccessAncestor(const SecurityOrigin& active_security_origin,
const Frame* target_frame) {
// targetFrame can be 0 when we're trying to navigate a top-level frame

Powered by Google App Engine
This is Rietveld 408576698