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

Unified Diff: third_party/WebKit/public/web/WebLocalFrame.h

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/public/web/WebLocalFrame.h
diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h
index 9296734f0a36adf1539b307f46caf5451785803b..8a4e6e671ef9e4cefc14cc9c9979b92db3d05685 100644
--- a/third_party/WebKit/public/web/WebLocalFrame.h
+++ b/third_party/WebKit/public/web/WebLocalFrame.h
@@ -110,6 +110,12 @@ class WebLocalFrame : public WebFrame {
// Get the highest-level LocalFrame in this frame's in-process subtree.
virtual WebLocalFrame* LocalRoot() = 0;
+ // Returns the frame identified by the given name. This method supports
+ // pseudo-names like _self, _top, and _blank. It traverses the entire
+ // browsing instance containing this frame, looking for a frame that matches
dcheng 2017/05/26 18:28:06 "browsing instance" isn't quite true today, is it?
Łukasz Anforowicz 2017/05/26 20:04:05 I've added a disclaimer to the comment above. Rig
dcheng 2017/05/26 20:16:19 Small nit: the web name for this is "same unit of
Łukasz Anforowicz 2017/05/26 20:51:19 In the end I've stopped talking about "browsing in
+ // the given name.
+ virtual WebFrame* FindFrameByName(const WebString& name) = 0;
+
// Navigation Ping --------------------------------------------------------
virtual void SendPings(const WebURL& destination_url) = 0;

Powered by Google App Engine
This is Rietveld 408576698