New issue
Advanced search Search tips

Issue 799595 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Dec 5
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

DevTools API does not respect Chrome launched in incognito mode

Reported by max.mais...@gmail.com, Jan 5 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36

Steps to reproduce the problem:
1. Launch Chrome in incognito mode:
          'chrome-versions/chrome-win32-65.0.3311.0/chrome.exe',
          '--remote-debugging-port=9222',
          '--incognito',
          '--user-data-dir=C:\\Users\\Corion\\AppData\\Local\\Temp\\GUfaccVLWY',

          '--no-first-run',
          '--disable-gpu',
          'about:blank'
2. observe that the Window gets the "incognito mode" decorations
3. Connect to this process using the DevTools API, opening a new tab:
2018/01/05 23:03:07 Created new tab $VAR1 = {
          'devtoolsFrontendUrl' => '/devtools/inspector.html?ws=127.0.0.1:9222/d
evtools/page/92B4C27257C09FF3984203C6679421FF',
          'description' => '',
          'id' => '92B4C27257C09FF3984203C6679421FF',
          'url' => 'about:blank',
          'title' => '',
          'webSocketDebuggerUrl' => 'ws://127.0.0.1:9222/devtools/page/92B4C2725
7C09FF3984203C6679421FF',
          'type' => 'page'
        };
4. Watch a new window open that is not in incognito mode

What is the expected behavior?
No new window opens but a new tab in the incognito mode browser window

What went wrong?
The new tab is opened in a named window instead of an incognito window

Did this work before? No 

Chrome version: 63.0.3239.84  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 

This behaviour is consistent since Chrome 59, which is the earliest version I test headless mode with.

A workaround is to use a temporary profile directory every time, but first-class support for incognito mode would be more welcome from the API.

Additionally, it would be great if the DevTools had a way to determine whether the browser is in incognito mode or not.
 
Owner: dgozman@chromium.org
Status: Assigned (was: Unconfirmed)
This is also present in

Chrome 63.0.3239.132
Chrome 66.0.3329.0
Status: WontFix (was: Assigned)
This is by design. However, using puppeteer [1] project, one can open incognito tabs in new browser contexts.

[1] https://github.com/GoogleChrome/puppeteer

Sign in to add a comment