Open Bug 331408 Opened 18 years ago Updated 2 years ago

JavaScript window resize should not affect default window size

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86
Windows XP
defect

Tracking

()

People

(Reporter: jpotter, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

Firefox updates its default window size and placement settings on ANY change to ANY open window. This means that any website which resizes the browser causes the default window size settings to be lost. Eg, see the URL provided.

IE is slightly better at this because it only updates default window size when the window is closed. Therefore, if your window size has been changed, you still have the chance to open a new window at the old default size, then close the resized window, and finally close the new window. In this way you can preserve your default size settings.

With Firefox, if your only open window gets resized, you have no chance at all to recover your default size.

Reproducible: Always

Steps to Reproduce:
1. Open Firefox
2. Go to URL provided
3. All new Firefox windows now open with new size

Actual Results:  
Default size is lost.


Expected Results:  
A much better way would be to make setting the default size a "definite action", by means of a "Set Default Window Size" menu command.

Failing that, Firefox should only update its default size when the window is closed.
Summary: Firefox should not update its default window size automatically → JavaScript window resize should not affect default window size
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
I don't see that http://www.youtube.com/watch_fullscreen?video_id=iVI6xw9Zph8&l=210&fs=1&title=Multi-Touch%20Interaction%20Research resizes the window.
Even if Tools > Options > Content > Javascript > Advanced > "Allow scripts to move or resize existing windows" is checked.
*** Bug 327205 has been marked as a duplicate of this bug. ***
I think Firefox should only save the default window size if you resize a window, and that window has never been sized or resized by JavaScript.  That would solve the problem of script resizes screwing up other windows, without confusing users or cluttering menus.

See also bug 186708, "don't allow web sites to resize windows with toolbars (by default)".
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking-firefox2?
Not a firefox blocker, this would be a core bug, not something in Firefox code.
Flags: blocking-firefox2?
Assignee: nobody → general
Component: General → DOM: Level 0
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
Flags: blocking1.8.1?
Nice to have, not a blocker.
Flags: blocking1.8.1? → blocking1.8.1-
With tabs on (including the option of always on- even if it's just 1 tab only) and firefox app window maximized-> I can search from webpage google.com 'Marco Polo EuroRoute' and click on https://www.markement.com/xtshop/popup_image.php?pID=54

Now I have javascript window resize feature. However, I'm not sure if this is a bug so I'm adding my comments to this bug number.

What happens is that the resize works for this image. This is not a popup window. This new page successfully takes firefox app window out of maximized mode. However, maximizing the app window (dbl-clicking titlebar) and going back one page resizes the google webpage to 'ugly'. I believe that this is a bug, since there is no resize javascript for the google webpage.

This is on windows, and this happens on 2.0.0.1 and 2.0.0.2. The resize occurrs   either you start with google.com on a maximized app window or not (always inclusively with 1 tab on) 

However I should elaborate about the sillydilly 'ugly' resize on the googlewebpage--> Resize occurs not on the window tab but leaves fat grey areas with scrollbars. The Maximized app window remains untouched, but the internal tab content gets all this grey zone stuff.

I believe this to be a minor bug and isn't urgent..also that the only javascript options i have on are->
"1st and 3rd option--> Move/resize and Disable/replace context menus"


"Resize occurs not on the window tab but leaves fat grey areas
with scrollbars."--> meant to say:"Resize occurs on the window tab which leaves fat grey areas with scrollbars on that tab window."

What should of been more clearly written - my apology- 
->is that resize does occur correctly for the marco polo page on the 'app window'<<--i'm assuming this is correct behaviour
->and resize should not occur on the google webpage..leaving grey zones

The google webpage is shown correctly after double-clicking the titlebar 2 times..


Assignee: general → nobody
QA Contact: ian → general
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.