Issue metadata
Sign in to add a comment
|
window.open(..., ..., 'location=1') opens a new tab
Reported by
kinjalta...@gmail.com,
Jun 13 2017
|
||||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36
Steps to reproduce the problem:
1. Write a html script for opening a new window using window.open("url") as given below
<!DOCTYPE html>
<html>
<body>
<button onclick="ClickFunction()">Click me</button>
<script>
function ClickFunction() {
window.open("https://www.google.ca/");
}
</script>
</body>
</html>
2. run that script in Chrome 59 (stable)
What is the expected behavior?
New window should be opened with the given url and name of the window
What went wrong?
Instead of New Window, new tab is getting opened.
This worked fine with the older version.
Did this work before? Yes 58 stable
Chrome version: 59.0.3071.86 Channel: stable
OS Version: 10.0
Flash Version:
,
Jun 14 2017
,
Jun 14 2017
,
Jun 15 2017
Able to reproduce the issue on Windows 10, MAC 10.12.5, Ubuntu 14.04 using the above sample code provided. But issue is also observed on Firefox and Safari browsers as well and issue is observed from M24 build 24.0.1300.0. Untriaging it so that it gets addressed. Attached is the script file created using the sample code provided. Thanks.!
,
Jun 15 2017
I also observed similar issue with window.open which caused window to be opened in new tab. Changing location value to 0 solved issue for me. below is sample code:
Opens in new Tab: (This worked well in previous versions)
window.open('about:blank', 'WindowName', 'location=1, status=1, toolbar=0, menubar=0, resizable=1, scrollbars=1');
Opens in new Window:
window.open('about:blank', 'WindowName', 'location=0, status=1, toolbar=0, menubar=0, resizable=1, scrollbars=1');
Chrome Version 59.0.3071.86 (Official Build) (64-bit)
,
Jun 15 2017
@kinjalta... - 1. Are you calling this from an extension page by any chance? That used to behave differently (I do not know whether it was changed, but your expectation would be understandable in that context, perhaps), or maybe it only behaved differently in a background page. 2. What kind of window did it open when it worked? Was it a pop-up window, or a regular browser window with a single tab?
,
Jun 15 2017
1. No there is no extension page from where I am calling this function. It is a simple JavaScript function and I want to open a pop-up window by clicking on a button. 2. When it worked, it was a pop-up window without any particular tabs. @sachaudh... - Thank you for this workaround. It worked fine for me. But it is not working without those parameters (location=0, status=1, toolbar=0, menubar=0, resizable=1, scrollbars=1) and it used to work previously.
,
Jun 15 2017
#7 - sounds like you actually experienced a bug before. window.open(url) has never, ever, opened a pop-up window in Chrome (or in any other browser), as far as I know. It was always either a regular window (non-tabbed browsers and Internet Explorer until some version) or a tab (the rest of the tabbed browsers).
,
Jun 16 2017
I am trying to open a non-tabbed regular window and I might confused it with the pop-up window.
,
Jun 16 2017
:) There is also no non-tabbed regular window in Chrome. There are only - - Regular windows (if it is a new window, then it has a single tab). - Pop-up windows (no tabs or tab-strip, only a location bar).
,
Jun 29 2017
Now, I can definitely reproduce this (location=1). http://output.jsbin.com/wuwazigole/1 Click anywhere on that page. Every desktop browser except Chrome 59+ and Opera 46+ opens a popup window. Desktop Chrome 59+ and Opera 46+ open a new tab.
,
Jun 29 2017
Scratch that. Issue 723655 was opened (and is being handled) for location=1. I am reverting this issue back to the original description (which is not a regression, nor is it an interoperability as it seems to have never worked, not using Chrome and not using any other browser, ever). I am not sure what to do with this issue. I think it is a WontFix.
,
Jun 29 2017
,
Jun 29 2017
I'll move my comments over to that ticket, thank you.
,
Jul 12 2017
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by tkent@chromium.org
, Jun 13 2017Labels: Needs-Bisect