Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How do webpage developers get Firefox to use the windows.resize or windows.moveTo javascript functions that seem to now be passed over?

  • 3 replies
  • 2 have this problem
  • 8 views
  • Last reply by Peter Lane

more options

Before V7, this code worked and did as requested every time the page was run. Now, it does not work and no error is reported. Google Chrome and Internet Explorer are able to produce th correct result.

<script type="text/javascript"> window.resizeTo(325,700); window.moveTo(1150,10); </script>

I have a site where I use window.open to create a login window with minimum chrome.

On successful login, the window that created the login window updates itself to another page. The login window is supposed to resize itself and move to create a console panel to the right of the screen.

I have tried to update the window from its parent at the point of successful login (flagged by a database change, checked frequently). I have also included code in the new window itself to resize itself to no avail.

The new code seems to be failing on both the conditions laid out!

Before V7, this code worked and did as requested every time the page was run. Now, it does not work and no error is reported. Google Chrome and Internet Explorer are able to produce th correct result. <script type="text/javascript"> window.resizeTo(325,700); window.moveTo(1150,10); </script> I have a site where I use window.open to create a login window with minimum chrome. On successful login, the window that created the login window updates itself to another page. The login window is supposed to resize itself and move to create a console panel to the right of the screen. I have tried to update the window from its parent at the point of successful login (flagged by a database change, checked frequently). I have also included code in the new window itself to resize itself to no avail. The new code seems to be failing on both the conditions laid out!

Modified by Peter Lane

All Replies (3)

more options

Some conditions were added in 7.0 to avoid abuse of the resize and move functions:


  1. Can't resize a window/tab that hasn't been created by window.open.
  2. Can't resize a tab if the tab is in a window with more than one tab.

There's still some discussion on the bug - including some solutions and troubleshooting for pages that were affected that shouldn't be - and it's being tracked to make sure it doesn't have any adverse effects.

more options

See this Thread - https://support.mozilla.com/en-US/questions/880032

Check and tell if its working.

more options

Looks like I have found a situation where the issue is not solved.