We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Więcej informacji

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

  • 3 odpowiedzi
  • 2 osoby mają ten problem
  • 3 wyświetlenia
  • Ostatnia odpowiedź od 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!

Zmodyfikowany przez Peter Lane w dniu

Wszystkie odpowiedzi (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.