New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 661125 link

Starred by 8 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Feature



Sign in to add a comment

Command line option "target" to open a URL in the same named tab or window

Reported by mpiet...@gmail.com, Nov 1 2016

Issue description

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

Steps to reproduce the problem:
1. open a URL with Chrome via command line with options.
2. specify a "target" just like you would via an anchor reference in a web page.
3. Chrome opens a new tab if the named target does not exist, or re-uses the existing tab if it does.

What is the expected behavior?
Chrome opens a new tab if the named target does not exist, or re-uses the existing tab if it does.  It should also understand the standard target parameter _blank which is the current behavior of just opening a new tab.  The other standard parameters _self, _parent, and _top are meaningless in this context and should provide the current behavior.

I'd also propose that the existing option --new-window does not open a new window if a window with the named target already exists (i.e. not tabbed) but rather re-uses the existing window.  Thus a user could re-use a target-named window or re-use a target-named tab via that switch.

What went wrong?
Chrome just opens a new tab regardless.

Did this work before? No 

Chrome version: 54.0.2840.71  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 23.0 r0

See previous  issue 141942  for more comments.  It was Automated-archive but clearly has continued interest.
 
Cc: ranjitkan@chromium.org
Labels: -Type-Bug Type-Feature
Status: Untriaged (was: Unconfirmed)
Appears more like a feature request, Untriaged it so that it gets addressed.

Thanks.!
Been after this fix/feature for years!

Its absence breaks use of Chrom* as a drop-in replacement for other browsers.
Looking forward for this feature in Chrome.
Any update?  I too need this feature.  While waiting, I think I will use an extension there are several that will ensure a single unique tab per URL.

Please add this, I've been waiting years for something Chromium obviously has to have. 

Comment 6 Deleted

Please add this feature. Such ignore, much disappoint.
Hi Ranjit,

Anyone is working this? If not, I can add this feature. Please let me know.
Can Some one from UI dev team address this.

Thanks.!

Comment 10 by kumar...@gmail.com, Oct 18 2017

Do you have a --target to the command line added yet?

+1
Indeed a very useful feature :)

Specially nowadays, when we use build tools that can automatically open the browser in the development address...reopening a new tab every time we start a server or build the application makes no sense.

Comment 12 by tart...@gmail.com, Oct 20 2017

My use case, just in case:

I have a Bash terminal which waits on filesystem events (eg. me hitting 'save' in my editor), on which it re-runs a given command (eg. First, "make html", to generate html, then second, open the new "index.html" in a browser to display it.) I'd love to be able to automatically open files like this in Chrome over and over again, every time updates happen, without creating loads of windows or tabs. I just want to reuse the existing tab.

This becomes a general and powerful pattern, allowing users to script up ad-hoc GUI applications in literally two lines of Bash, tying together their editor (or anything else that generates filesystem events) to arbitrary output GUI applications. I use it for everything, from rendering dot to svg, to re-running unit tests, forming a lovely tight feedback loop by producing visual output in fractions of a second, without the user needing to change window focus, fiddle with command-line history, etc.
I have a build system which automatically opens an HTML report of the build status, test results, and coverage analysis. It's annoying that it opens a new tab every time you build. 

This pushing me towards Firefox as with Firefox I can go to about:config, change browser.link.open_newwindow to 1, and then this page is opened in the same tab.

I second @tart: "This becomes a general and powerful pattern, allowing users to script up ad-hoc GUI applications [using chrome]"
We are a bunch of developpers needing this feature, at least comment on it or give a status !
please add the command line option, there are many use cases!
Waiting for this Also.

in our case Some tools open Chrome, and its opening multiple TABS.
any idea how to avoid this?

at least Can we get an answer about this?  (YES/Never/Maybe)

if never pls advice why maybe some security issue?

--targer="_new"
--targer="mywindow"


Sign in to add a comment