Command line option "target" to open a URL in the same named tab or window
Reported by
mpiet...@gmail.com,
Nov 1 2016
|
|
Issue descriptionUserAgent: 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.
,
Nov 8 2016
Been after this fix/feature for years! Its absence breaks use of Chrom* as a drop-in replacement for other browsers.
,
Dec 11 2016
Looking forward for this feature in Chrome.
,
Feb 13 2017
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.
,
Mar 15 2017
Please add this, I've been waiting years for something Chromium obviously has to have.
,
Jul 23 2017
Please add this feature. Such ignore, much disappoint.
,
Aug 30 2017
Hi Ranjit, Anyone is working this? If not, I can add this feature. Please let me know.
,
Sep 4 2017
Can Some one from UI dev team address this. Thanks.!
,
Oct 18 2017
Do you have a --target to the command line added yet?
,
Oct 19 2017
+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.
,
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.
,
Dec 16 2017
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]"
,
May 11 2018
We are a bunch of developpers needing this feature, at least comment on it or give a status !
,
Nov 22
please add the command line option, there are many use cases!
,
Dec 12
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 |
|
Comment 1 by ranjitkan@chromium.org
, Nov 7 2016Labels: -Type-Bug Type-Feature
Status: Untriaged (was: Unconfirmed)