New issue
Advanced search Search tips

Issue 901214 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Feature



Sign in to add a comment

command line to open url in existing tab if possible

Reported by tito.bou...@gmail.com, Nov 2

Issue description

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

Steps to reproduce the problem:
1. chrome.exe http://localhost
2. chrome.exe http://localhost
3. chrome.exe http://localhost

You will have now 3 tabs named http://localhost . It looks like there's no way to tell chrome to focus the same time that we already have open.  So in processed where chrome is used as browser and these trigger opening urls, you may end with a lot of tabs with the same thing. 

What is the expected behavior?
As the location bar already has a "switch to tab" button when you try to open an url, it would be nice if you add command line flag to switch to a tab if its already opened.
This will be consistent with the location bar behaviour of suggesting to focus the tab instead of trying to open a new one.

so maybe something like 

1. chrome.exe -open-or-switch-to http://localhost
2. chrome.exe -open-or-switch-to  http://localhost
3. chrome.exe -open-or-switch-to http://localhost

and you end with just 1 tab opened instead of 3

What went wrong?
1. not consistent with location bar behaviour of "switch to"
2. memory consumption
3. clutter of tabbar

Did this work before? No 

Chrome version: 70.0.3538.77  Channel: stable
OS Version: 10.0
Flash Version:
 
Labels: Needs-Triage-M70
I just created an extension to close old tabs when new tabs are added and the url matches one of the opened tabs. https://chrome.google.com/webstore/detail/prevent-duplicate-tabs/kejenjhnfnhodfiiipapielfoebmpclk 

BTW this is not good because this is deduplicating all of my tabs. I suggest to add the flag
Cc: phanindra.mandapaka@chromium.org
Components: UI
Labels: Triaged-ET Target-72 FoundIn-72 M-72 FoundIn-71 FoundIn-70 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Reporter@ Thanks for the issue.

As per comment #0, it seems to be a feature request. Hence, marking it as untriaged for further updates from Dev. 

Thanks..!
Cc: k...@chromium.org
Components: -UI UI>Browser
Labels: -Pri-2 Pri-3
Summary: command line to open url in existing tab if possible (was: command line to open url )
I'm not sure how to triage this, so I'm just going to leave a high-level component and CC an interested party.

Ideally I would triage it to the two possible solutions:
* add an -open-or-switch-to command line option
* add an ability to tell Chrome to focus / come to foreground when opening it from the command line.  (Frankly, I'm surprised it doesn't do that automatically.)
Yup, this is crazy...no question, Chrome developers should be looking for useful command line options to include...the and first one would be to open a URL in the current active tab so that repeated calls to open a URL do not result in opening endless more tabs...THIS SHOULD BE ADDED ASAP!!

I have to support usage of Mozilla and IE because of this flaw and foolish unwillingness to fix by Google...

Also, would help if Chrome had a minimum memory usage model option...probably the single thread approach Mozilla apparently has...or to make a tab "go to sleep" and not use any memory or other computer resources...aka processor...

WHAT IS THE DEV SCHEDULE FOR CHROME COMMAND LINE OPTIONS?????

Sign in to add a comment