question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

At startup chrome open 2 about:blank tabs

See original GitHub issue

Windows: 10 x64 Node: v10.15.0 Chrome: 75.0.3770.142

When lauching llike this:

  // https://github.com/GoogleChrome/chrome-launcher#launch-options
  const opts = {
    port: 1111,
    logLevel: 'info',
    // logLevel: 'silent',
    output: 'json',
    disableDeviceEmulation: true,
    defaultViewport: {
      width: 1200,
      height: 900,
    },
    chromeFlags: [
      // https://github.com/GoogleChrome/chrome-launcher/blob/master/docs/chrome-flags-for-tools.md
      // '--headless',
      '--disable-mobile-emulation',
      '--no-sandbox',
      '--show-paint-rects',
      '--disable-extensions',
      '--disable-background-networking',
      '--disable-sync',
      '--disable-default-apps',
      '--mute-audio',
      '--no-first-run',
      '--enable-automation',
    ],
  };

  const chromeBrowser = await chromeLauncher.launch(opts);

I get the following:

ChromeLauncher No debugging port found on port 1111, launching a new Chrome. +0ms
ChromeLauncher Waiting for browser. +12ms
ChromeLauncher Waiting for browser... +3ms
ChromeLauncher Waiting for browser...√ +503ms

And a chrome window opens with two about:blank tabs

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16

github_iconTop GitHub Comments

2reactions
LeMousselcommented, Jul 17, 2019

I use lighthouse in my code 😃 If I set startingUrl option with an Url (eg. example.com), I have two tabs with with example.com site page…

0reactions
LeMousselcommented, Aug 18, 2019

It’s OK with version: 0.11.2 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stop Chrome opening two tabs when it starts - RAWinfopages
Here is a pic of the problem on my PC. There is an about:blank tab: Chrome opens tabs. The cause is either in...
Read more >
Fix: Chrome browser opens two tabs - Appuals.com
Method 1: Changing the startup settings of Chrome · Open Google Chrome, click the action icon (three dot icon) in the top right...
Read more >
What About:Blank in a Browser Means and How to Resolve It
From the menu, select Settings. From the left-sidebar, select On startup. On the right side of the window, click the three vertical dots...
Read more >
Change new tab to about:blank in chrome without any extension
Go to Chrome Settings · Change On Startup option to Open a specific page or set of pages. · Click on Set pages...
Read more >
What Is about:blank, and How Do You Remove It?
In Google Chrome, head to menu > Settings. Scroll down to the “On startup” section and select either “Open the New Tab page”...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found