X
點擊此處開啟此網站的行動版。

技術支援討論區

FireFox 7 javascript window.moveto not working

已張貼

When I create and then open an html file with FireFox 7, the window does not resize or move. This is the html in the file I open:

<script language="javascript">

window.location = 'http://www.google.com';
window.outerWidth = 1024;
window.outerHeight = 1136;
window.moveTo(0,0);
window.close;
</script>    

I create a file google.html with the above html data.

I open it using:

C:\Program Files (x86)\Mozilla Firefox\firefox.exe" '-new-window google.html

FireFox opens the webpage, but does not move or resize the window. This worked before I upgraded from FireFox 6 to FireFox 7.

When I create and then open an html file with FireFox 7, the window does not resize or move. This is the html in the file I open: <script language="javascript"> window.location = 'http://www.google.com'; window.outerWidth = 1024; window.outerHeight = 1136; window.moveTo(0,0); window.close; </script> I create a file google.html with the above html data. I open it using: C:\Program Files (x86)\Mozilla Firefox\firefox.exe" '-new-window google.html FireFox opens the webpage, but does not move or resize the window. This worked before I upgraded from FireFox 6 to FireFox 7.

額外的系統細節

這發生了

每當開啟 Firefox 的時候

問題發生於...

I upgraded to FireFox 7

已安裝的外掛程式

  • Shockwave Flash 10.3 r183
  • Facebook Video Calling Plugin
  • Google Update
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Next Generation Java Plug-in 1.6.0_26 for Mozilla browsers
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • iTunes Detector Plug-in
  • Adobe PDF Plug-In For Firefox and Netscape "9.4.5"
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.0
  • 4.0.60531.0
  • GEPlugin
  • Picasa plugin
  • Version 0.9.18, Copyright 2006-2009 Veetle Inchttp://www.veetle.com/
  • Version 0.9.18, copyright 2006-2010 Veetle Inchttp://www.veetle.com/
  • Version 0.9.17, copyright 2008-2010 Veetle Inchttp://www.veetle.com/
  • Version 1.0.5, copyright 1996-2010 The VideoLAN Teamhttp://www.videolan.org/
  • Coupons, Inc. Coupon Printer Plugin
  • 1.9.0042.0
  • np-mswmp

應用程式

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1

更多資訊

Create a file called google.html with the data I provided and try to open it with FireFox 7. I run Windows 7 with the latestet fixes on a Samsung laptop with 8GB of ram.

publickenemy 0 個解決方法 2 個答案

有幫助的回覆

This is probably related to this change in FF7:

https://bugzilla.mozilla.org/show_bug.cgi?id=565541

This is probably related to this change in FF7: https://bugzilla.mozilla.org/show_bug.cgi?id=565541
jwarren36 0 個解決方法 3 個答案

有幫助的回覆

Aside from capriciously damaging Firefox in this way being VERY inconvenient, it DIRECTLY CONTRADICTS the settings option for

Firefox>Preferences>Content>Enable JavaScript>Advanced !

I.e. FF7 Preferences implies that users CAN allow such [usefuil!] javascript windows resizing/repositioning ... while FF7 refuses to allow users that control! BLEGH!

Aside from capriciously damaging Firefox in this way being VERY inconvenient, it DIRECTLY CONTRADICTS the settings option for Firefox>Preferences>Content>Enable JavaScript>Advanced ! I.e. FF7 Preferences implies that users CAN allow such [usefuil!] javascript windows resizing/repositioning ... while FF7 refuses to allow users that control! BLEGH!