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

Issue 732784 link

Starred by 9 users

Issue metadata

Status: Duplicate
Merged: issue 723655
Owner: ----
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Compat



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:
 

Comment 1 by tkent@chromium.org, Jun 13 2017

Components: -Blink Blink>WindowDialog
Labels: Needs-Bisect

Comment 2 by ajha@chromium.org, Jun 14 2017

Labels: Needs-Triage-M59

Comment 3 by ajha@chromium.org, Jun 14 2017

Labels: -Needs-Triage-M59 pre-stable-59.0.3071.86
Cc: ranjitkan@chromium.org
Labels: -Needs-Bisect -pre-stable-59.0.3071.86 M-61 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
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.!
Window.html
189 bytes View Download
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)

Comment 6 by phistuck@gmail.com, 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?
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.

Comment 8 by phistuck@gmail.com, 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).
I am trying to open a non-tabbed regular window and I might confused it with the pop-up window.

Comment 10 by phistuck@gmail.com, 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).

Comment 11 Deleted

Comment 12 Deleted

Comment 13 Deleted

Labels: -Pri-2 -Arch-x86_64 Hotlist-Interop Pri-1
Summary: window.open(..., ..., 'location=1') opens a new tab (was: window.open() is not able to open a new window)
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.

Comment 15 Deleted

Labels: -OS-Linux -Hotlist-Interop -Type-Bug-Regression -OS-Mac Type-Compat
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.
Labels: -Pri-1 Pri-2
I'll move my comments over to that ticket, thank you.

Comment 19 by a...@chromium.org, Jul 12 2017

Mergedinto: 723655
Status: Duplicate (was: Untriaged)

Sign in to add a comment