Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus
Archivé

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

Peter Lane a répondu
Peter Lane

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!

Modifié le par Peter Lane

Toutes les réponses (3)

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.

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

Check and tell if its working.

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