Closed
Bug 241398
Opened 21 years ago
Closed 20 years ago
Javascript "resizeTo" also executes a "moveTo"
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: tuttle_james, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7b) Gecko/20040421
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7b) Gecko/20040421
Examine the source of URL http://hypert.homelinux.net:8800/. There is a simple
Javascript "resizeTo" command to set the size of the browser window whenever the
page is loaded. The resizeTo should only change the size of the window, not the
position. For the past several builds of Mozilla and Firefox for MacOS X (but
not the builds for Windows!), resizeTo also does a moveTo.
Reproducible: Always
Steps to Reproduce:
1. Load URL http://hypert.homelinux.net:8800/ (or place code for "
window.resizeTo(730,640);" anywhere on an HTML page).
Actual Results:
The window resized, and it moved locations.
Expected Results:
The upper left corner of the browser window should have stayed in the same place.
This used to work!
Really? WFM on Windows, and a glance at the Macintosh widget code reveals no
likely culprit. You're not talking about the switch from Standard state to User
state when a window gets resized, are you?
Severity: normal → enhancement
| Reporter | ||
Comment 2•21 years ago
|
||
I don't know what you mean about Standard state and User state. This is a
simple piece of Javascript that I've used for years - and has worked on every
browser (I do use them all at some point!). It started breaking on MacOS X
within the last month or two (I often use nightly builds, but this was confirmed
with 1.7b ("RC1").
This isn't an "enhancement". This is functionality that was in Mozilla, and is
now broken. It violates http://www.mozilla.org/docs/dom/domref/dom_window_ref.html.
Severity: enhancement → normal
| Reporter | ||
Comment 3•21 years ago
|
||
This bug is still here in Firefox 1.0PR.
Any ideas? Can anyone reproduce, or does that URL not cause others' windows to jump around the
screen?
Thanks,
Jim
I can reproduce this in 1.0 ( Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O;
en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 )
My test document is here:
http://sitefoundry.com/misc/js_resize.html
Simply visiting the page causes my browser window to jump to the top left corner
of the main monitor.
| Reporter | ||
Comment 5•21 years ago
|
||
Thank you to "Matt" for confirming this! This is one of many bugs in Firefox that has stopped me from
using it on Mac OS X.
Of course, I'd rather have someone look into Bug #240127 that I submitted - that completely prevents
me from using Firefox on Mac OS X. Firefox works fine for me on many, many PCs, but not on my Mac.
:-(
| Reporter | ||
Comment 6•21 years ago
|
||
I just downloaded a nightly build from
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2004-11-13-07-trunk/, and
this problem seems to have gone away!
Once this makes it into an official release, someone can mark it as Fixed (or I
will).
I'm still curious as to WHY this snuck into the code and who fixed it. Anyone
want to own up to either event? :-)
| Reporter | ||
Comment 7•21 years ago
|
||
Oh, yeah. I forgot - it seems fixed in nightly Mozilla (non-Firefox), too
(build 2004111307).
| Reporter | ||
Comment 8•20 years ago
|
||
This seems fixed in nightly builds, but not in any of the releases (like Firefox
1.0.3). Can anyone shed any light on this? It's really annoying to have
Firefox windows jumping around the screen, and is one of the reasons why I'm
still using Safari on Mac OS X.
Comment 9•20 years ago
|
||
If it works fine in nightlys, then it must have been fixed as part of another
bug, and will be fixed in the next trunk release of Firefox, which is Firefox
1.1. Reopen if you can see this in a recent nightly.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•