搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

  • 3 个回答
  • 2 人有此问题
  • 3 次查看
  • 最后回复者为 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!

由Peter Lane于修改

所有回复 (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.