Issue 234132 in chromium: Chrome doesn't allow JS moving window between dual monitors

705 views
Skip to first unread message

chro...@googlecode.com

unread,
Apr 22, 2013, 8:19:51 AM4/22/13
to chromi...@chromium.org
Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2

New issue 234132 by caiot...@gmail.com: Chrome doesn't allow JS moving
window between dual monitors
http://code.google.com/p/chromium/issues/detail?id=234132

Chrome Version : 26.0.1410.64 m

What steps will reproduce the problem?
1. open a window from JS (window.open())
2. try moving it from one monitor to other using window moveBy or moveTo
methods

What is the expected result?
The window should move between monitors

What happens instead?
The window is limited to its monitor boundaries

I understand some of the security implications. Someone could hide windows
beyond the boundaries, but considering a situation where the user has dual
monitors (or even more) the windows are not being hide, but moved across a
much larger desktop. Chrome already even consider negative coordinates to
extended monitors.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

chro...@googlecode.com

unread,
Oct 7, 2013, 4:49:06 PM10/7/13
to chromi...@chromium.org

Comment #2 on issue 234132 by megake...@gmail.com: Chrome doesn't allow JS
Is anybody working on this? We need to save the window's position and size.
window.moveTo and window.moveBy is not working beyond the monitor's
boundaries where the window opened.

What steps will reproduce the problem.
1. http://www.w3schools.com/js/tryit.asp?filename=try_win_moveby
2. Click "Open 'myWindow'"
3. click "move 'MyWindow'" multiple times

The window will keep moving to the right and bottom until you hit any of
the two boundaries.

I tested this with Chrome version 31.0.1650.8 (Official Build 226087)

chro...@googlecode.com

unread,
Oct 18, 2013, 7:16:06 PM10/18/13
to chromi...@chromium.org
Updates:
Cc: pshe...@chromium.org
Labels: Cr-UI-Browser-Core M-31 Needs-Bisect

Comment #3 on issue 234132 by ligim...@chromium.org: Chrome doesn't allow
JS moving window between dual monitors
http://code.google.com/p/chromium/issues/detail?id=234132

(No comment was entered for this change.)

chro...@googlecode.com

unread,
Nov 19, 2013, 1:32:20 PM11/19/13
to chromi...@chromium.org
Updates:
Cc: -pshe...@chromium.org srsrid...@chromium.org rponn...@chromium.org
ligim...@chromium.org
Labels: Needs-Feedback

Comment #4 on issue 234132 by ligim...@chromium.org: Chrome doesn't allow
JS moving window between dual monitors
http://code.google.com/p/chromium/issues/detail?id=234132

@megakendy , Are u still seeing the issue with the latest chrome ver-
31.0.1650.57, please fell free to update the thread.

chro...@googlecode.com

unread,
Dec 2, 2013, 4:20:54 AM12/2/13
to chromi...@chromium.org
Updates:
Cc: ashej...@chromium.org

Comment #5 on issue 234132 by ashej...@chromium.org: Chrome doesn't allow
JS moving window between dual monitors
http://code.google.com/p/chromium/issues/detail?id=234132

@megakendy , Could you please provide an update as per comment#4?

chro...@googlecode.com

unread,
Dec 2, 2013, 11:57:40 PM12/2/13
to chromi...@chromium.org

Comment #6 on issue 234132 by trent.ge...@gmail.com: Chrome doesn't allow
JS moving window between dual monitors
http://code.google.com/p/chromium/issues/detail?id=234132


Still a problem. Easy to test. use two monitors and try the link

http://www.w3schools.com/js/tryit.asp?filename=try_win_moveby

will not move to monitor #2
start on monitor two and edit the line to say
myWindow.moveBy(-250,250);
and will not move to monitor 1

related to
https://code.google.com/p/chromium/issues/detail?id=137681

still a problem on windows 8 64
chrome latest (31.0.1650.57 m)

chro...@googlecode.com

unread,
Dec 4, 2013, 5:21:38 AM12/4/13
to chromi...@chromium.org
Updates:
Status: Untriaged
Cc: ranjit...@chromium.org
Labels: -M-31 -Needs-Bisect -Needs-Feedback M-33 OS-Windows

Comment #7 on issue 234132 by ranjit...@chromium.org: Chrome doesn't allow
JS moving window between dual monitors
http://code.google.com/p/chromium/issues/detail?id=234132

Able to reproduce the issue on latest 33.0.1727.0 canary for Windows on a
dual monitor setup, issue exists from M26 26.0.1410.60. Not a regression
issue. Removing bisect label.

chro...@googlecode.com

unread,
Dec 12, 2013, 1:18:55 PM12/12/13
to chromi...@chromium.org

Comment #10 on issue 234132 by Bagrm1...@gmail.com: Chrome doesn't allow JS
Was able to reproduce this issue on a Windows 7 dual monitor setup on
version 31.0.1650.63. This issue is a significant concern when developing a
multi monitor web application for Chrome. A fix would be greatly
appreciated!

chro...@googlecode.com

unread,
Jan 2, 2014, 7:49:04 PM1/2/14
to chromi...@chromium.org

Comment #12 on issue 234132 by jwilsonm...@googlemail.com: Chrome doesn't
allow JS moving window between dual monitors
http://code.google.com/p/chromium/issues/detail?id=234132

Also suffering this issue building a web app.

Window needs to open at 0,0 on the monitor where 0,0 occurs. Instead, each
monitor appears to have its own coords so the window opens at 0,0 on which
ever monitor link is clicked. Tested in FF 26 and IE 11 - works as
expected.

chro...@googlecode.com

unread,
Aug 4, 2014, 6:58:04 PM8/4/14
to chromi...@chromium.org

Comment #18 on issue 234132 by tshi...@gmail.com: Chrome doesn't allow JS
This is standard functionality in IE. There is a permission to "Allow
script-initiated windows to open without size or position contraints".

Just do that - I rarely see desktops with just one monitor anymore. Its
time browsers start to leverage the second monitor. I am surprised Google
isn't leading the way here.

chro...@googlecode.com

unread,
Sep 12, 2014, 12:53:39 AM9/12/14
to chromi...@chromium.org

Comment #22 on issue 234132 by ramesh.m...@gmail.com: Chrome doesn't allow
JS moving window between dual monitors
https://code.google.com/p/chromium/issues/detail?id=234132

Any updates??

chro...@googlecode.com

unread,
Nov 11, 2014, 1:27:11 AM11/11/14
to chromi...@chromium.org

Comment #23 on issue 234132 by chsa...@gmail.com: Chrome doesn't allow JS
Seems Chrome still suffers from this issue. Firefox is opening the JS
opened windows in other monitors properly..

chro...@googlecode.com

unread,
Dec 31, 2014, 4:05:37 AM12/31/14
to chromi...@chromium.org

Comment #24 on issue 234132 by jan.re...@siteone.cz: Chrome doesn't allow
JS moving window between dual monitors
https://code.google.com/p/chromium/issues/detail?id=234132

Please, fix this issue. We develop a cashier's desk app, that needs open
window on second monitor in store (customer view).

Because of this bug, we need to use IE/FF now :-(

It would by fine to have a browser settings which control this.

Thank you!

chro...@googlecode.com

unread,
Oct 14, 2015, 3:02:01 AM10/14/15
to chromi...@chromium.org

Comment #25 on issue 234132 by rmbath...@gmail.com: Chrome doesn't allow JS
Can you confirm that Chrome is not going to address this issue?
If that is the case I won't bother trying to code my application to work
with chrome and move to IE instead

chro...@googlecode.com

unread,
Oct 21, 2015, 11:31:49 PM10/21/15
to chromi...@chromium.org

Comment #26 on issue 234132 by ad.gau...@gmail.com: Chrome doesn't allow JS
Please fix this issue.

chro...@googlecode.com

unread,
Oct 23, 2015, 3:37:41 PM10/23/15
to chromi...@chromium.org

Comment #28 on issue 234132 by llub...@gmail.com: Chrome doesn't allow JS
moving window between dual monitors
https://code.google.com/p/chromium/issues/detail?id=234132

Help?

chro...@googlecode.com

unread,
Oct 27, 2015, 7:34:33 PM10/27/15
to chromi...@chromium.org
Updates:
Owner: jsc...@chromium.org

Comment #29 on issue 234132 by ho...@chromium.org: Chrome doesn't allow JS
Justin, does this sound like a candidate for the fixit? Otherwise, scott or
rob should probably be the right people to look into this.

chro...@googlecode.com

unread,
Oct 28, 2015, 11:01:00 AM10/28/15
to chromi...@chromium.org
Updates:
Status: Available
Owner: ---
Labels: -Cr-UI-Browser-Core -OS-Windows -MovedFrom-33 -MovedFrom-34
-MovedFrom-35 -M-48 OS-All Cr-Blink-DOM

Comment #30 on issue 234132 by jsc...@chromium.org: Chrome doesn't allow JS
No, this isn't a Windows bug and appears to have been mistriaged. It's a
feature request, because moveBy and MoveTo are just not multi-monitor aware
in blink. I'm not even sure what the right approach to implementing this
would be, since multi-monitor setups often aren't simple rectangles.

chro...@googlecode.com

unread,
Oct 28, 2015, 2:22:17 PM10/28/15
to chromi...@chromium.org

Comment #31 on issue 234132 by daniel.a...@gmail.com: Chrome doesn't allow
JS moving window between dual monitors
https://code.google.com/p/chromium/issues/detail?id=234132

Just so everyone knows, if packaged as a chrome app, moveTo and moveBy will
let you move windows between monitors. When running as a regular web page
is when we see this restriction.

As for a richer api? That would be nice to add to Html5. Right now its
all 'blind' guessing, with heuristics to try and move a window to another
monitor and running some checks to see if it went.

chro...@googlecode.com

unread,
Oct 28, 2015, 5:28:33 PM10/28/15
to chromi...@chromium.org

Comment #32 on issue 234132 by llub...@gmail.com: Chrome doesn't allow JS
moveTo does not work properly at all when the parent window starts on the
2nd (non-primary) monitor. So if you use window.open with x/y parameters,
the x parameter doesn't seem to work. If you try to adjust the position
after the fact with moveTo, it doesn't work either. I can't get this
window positioned on the 2nd monitor no matter what I try. I'm not trying
to move it to the other monitor at all. Other browsers do not have this
issue.

chro...@googlecode.com

unread,
Nov 11, 2015, 2:11:13 AM11/11/15
to chromi...@chromium.org
Updates:
Labels: -Cr-Blink-DOM Cr-Blink-WindowDialog

Comment #33 on issue 234132 by tk...@chromium.org: Chrome doesn't allow JS
(No comment was entered for this change.)

chro...@googlecode.com

unread,
Nov 30, 2015, 9:20:47 PM11/30/15
to chromi...@chromium.org

Comment #35 on issue 234132 by domi...@chromium.org: Chrome doesn't allow
JS moving window between dual monitors
https://code.google.com/p/chromium/issues/detail?id=234132

I think I agree with comment 6 that this is related to Issue 137681. I'm
not sure it's a dup though, because this seems to be about moveBy and that
is about open. However because the underlying arguments are related, it
might make sense to make one block the other, or block both of them on a
third meta-bug about the policy, or retitle one of them to make it a bit
more general and de-dup them that way.
Reply all
Reply to author
Forward
0 new messages