Closed Bug 309234 Opened 19 years ago Closed 19 years ago

resizeTo doesn't resize when it is called by another widnow

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 309251

People

(Reporter: glen.collins, Unassigned)

Details

(Whiteboard: WFM)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4

Example html where bug can be seen in Beta 1:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Window pop-up resize test</title>
</head>
<body>
<script language="javascript1.4" type="text/javascript">
    var w = 740;
    var h = 570;
    var id = "testwindow";
    var u = location.href ;
    var f =
"width=200,height=150,toolbar=yes,menubar=yes,scrollbars=yes,location=yes,status=yes,resizable=yes";
function runMe() {
    windowName = window.open(''+u+'',''+id+'',''+f+'');
    windowName.resizeTo(w,h);
    windowName.focus();		
		}
</script>

<a href="#" onclick="runMe()">Click me to test</a>

</body>
</html>

Reproducible: Always

Steps to Reproduce:
Use example html and click on link and ResizeTo doesn't work on new window.

Actual Results:  
No resize occurs

Expected Results:  
Resize the window
Do you have
Tools/Options.../Content/Advanced button/Move or resize existing windows 
checkbox checked?
In about:config, what is your value for
dom.disable_window_move_resize

I get the expected results when I try your Example html with Firefox 1.4 rv:
1.8b4 build 20050918 under XP Pro SP2 here.

WORKSFORME
Whiteboard: WFM
In a 1.5b1 build? We default to dom.disable_window_move_resize = true, so it
wouldn't be surprising if he does have it true.

*** This bug has been marked as a duplicate of 309251 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.