RuidSiel / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

Allow a href links with targets to cause navigation in other CefBrowser instances #311

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if the target attribute of a href link could cause navigation 
to occur in another CefBrowser instance. For example:

<a href="some_url" target="some_instance" />

Clicking this link would cause "some_url" to be loaded in the CefBrowser 
instance named "some_instance." If nothing exists with this name it would 
follow the current logic and create a new popup window.

The target value in WebKit is called a "frame name." When a link is clicked 
WebKit internally calls FrameLoader.cpp createWindow() which searches the tree 
hierarchy for a frame that has the specified name. If a frame is found it 
navigates in that frame instead of creating a new window. We can set the frame 
name from the Chromium WebKit API using the WebFrame::setName() method. We can 
add a CefFrame::SetName() method for setting this value and the user can then 
call it in OnAfterCreated().

Original issue reported on code.google.com by magreenb...@gmail.com on 18 Aug 2011 at 1:39

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 11 Feb 2015 at 8:35

GoogleCodeExporter commented 9 years ago
CEF is transitioning from Google Code to Bitbucket project hosting. If you 
would like to continue receiving notifications on this issue please add 
yourself as a Watcher at the new location: 
https://bitbucket.org/chromiumembedded/cef/issue/311

Original comment by magreenb...@gmail.com on 14 Mar 2015 at 3:21