Stop content shell opening multiple windows/tabs?

閲覧: 78 回
最初の未読メッセージにスキップ

Arran

未読、
2015/02/04 9:24:502015/02/04
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

未読、
2015/08/18 7:52:152015/08/18
To: Chromium-dev、arran....@gmail.com
Exactly same situation with me. Did you find a solution Arran?

Bartosz Chmura

未読、
2016/08/23 6:50:522016/08/23
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;
全員に返信
投稿者に返信
転送
新着メール 0 件