Stop content shell opening multiple windows/tabs?

78 views
Skip to first unread message

Arran

unread,
Feb 4, 2015, 9:24:50 AM2/4/15
to chromi...@chromium.org
Hi, 

I'm working on an Android app which wraps the content shell. 

By default the content shell opens a new shell for links that would usually open in a new tab/window, e.g. links with target="blank".
The problem is that I want all links to open in the same shell, like the android webview does.

I've been reading through the code and trying various things with no success, I'm just lost in the vastness of the codebase.

If anyone could give any pointers/advice on how I can alter the content shell to force all content into a single shell that would be fantastic.

Thanks in advance,
Arran

Pankaj Goyal

unread,
Aug 18, 2015, 7:52:15 AM8/18/15
to Chromium-dev, arran....@gmail.com
Exactly same situation with me. Did you find a solution Arran?

Bartosz Chmura

unread,
Aug 23, 2016, 6:50:52 AM8/23/16
to Chromium-dev, arran....@gmail.com
content/shell/browser/shell_content_browser_client.cc

void ShellContentBrowserClient::OverrideWebkitPrefs(
    RenderViewHost* render_view_host, WebPreferences* prefs) {
  prefs->supports_multiple_windows = false;
Reply all
Reply to author
Forward
0 new messages