Open Bug 257775 Opened 20 years ago Updated 16 years ago

popped-up window can't be resized by edges (although can be by lower right corner)

Categories

(SeaMonkey :: UI Design, defect)

SeaMonkey 1.1 Branch
x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: dsb, Unassigned)

References

()

Details

(Keywords: helpwanted)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616

A window opened by a link can't be resized by its edges, although it can be
resized using the lower right corner.

The link HTML is:

  <a href="/jsp_utils/PrintPage.jsp" 
    target="printFriendlyView"     
     onclick="openPopup('','printFriendlyView',710,650,'no',1,1,0,0,0,0); return
true;"
    >
    <img src="/im/ic_print.gif" width="14" height="12" 
         alt="Print-friendly Version" border="0" hspace="4" />
     Print-friendly Version
  </a>

(Yes, Sun really depends on the Referer: header field.  Ugh!)

Reproducible: Always
Steps to Reproduce:
1. Go to http://java.sun.com/j2se/naming_versioning_5_0.html (as 
   of 2004-09-02, at least).
2. Click on the "Print-friendly Version" link
3. (Note that a new window pops up.  With my current browser settings,
   the window has no Back/Forward/Reload/Stop/location bar).
4. Try to resize the window using the top, left, right, or bottom
   edge of the window.
5. The cursor doesn't change when moved over the edge and trying to drag 
   the edge doesn't do anything.
6. Try to resize the window using the lower-right corner.  (The three
   diagonal lines, at least on my window (Windows XP with XP's
   cartoonishness turned off).
7. The cursor changes over the corner and resizing works as expected.

Actual Results:  
See above.

Expected Results:  
Either both methods should have worked to resize the window, or both 
methods should have done nothing.

(If the window is still resizable, all normal resizing methods should work.
_If_ Mozilla is honoring any request to make the window non-resizable, both
resizing methods should probably fail.  

That's not to say that Mozilla _should_ listen to web-page authors who 
don't keep their damn hands off the user's browser, but I believe that's
already a user-configurable option.)
Oh yeah:  Here's that page's definition of function openPopup:

function
openPopup(url,name,width,height,resizable,scrollbars,menubar,toolbar,location,directories,status)
{	
	popup = window.open(url, name, 'width=' + width + ',height=' + height +
',resizable=' + resizable + ',scrollbars=' + scrollbars
	+ ',menubar=' + menubar + ',toolbar=' + toolbar + ',location=' + location +
',directories=' + directories + ',status=' + status
	);
//popup.moveTo(((screen.availWidth-340)/2),((screen.availHeight-360)/2));
	popup.focus();
}
The bug is that there is a way to resize the window (the page sets resizable=no).

The resizer probably needs to know about the flags the window was opened with....
Perhaps we can set sizemode="fixed" on popup windows, and then we can hide the
resizer with a bit of CSS. As a bonus, if we can also get the window to restyle
us when it's maximized we can hide the resizer then too :-)
Product: Core → Mozilla Application Suite
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
Keywords: helpwanted
part of what you see is mentioned in bug 340932 - in FireFox the print friendly window opens in a smaller window and is (correctly) not resizeable. In suite the window simply isn't opening with the correct size.  see bug 340932

notabug? (neil)
Comment #2 was, of course, spot on the mark.
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9pre) Gecko/2008033101 SeaMonkey/2.0a1pre
It is work fine

SeaMonkey 1.1.9 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9
Daniel, do this bug still appear in SeaMonkey 1.1.9?
> Daniel, do this bug still appear in SeaMonkey 1.1.9?

Yes. 

(SeaMonkey 1.1.9

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9)

Version: Trunk → SeaMonkey 1.1 Branch
This bug is in SeaMonkey 1.1.9 only.

It's works fine in SeaMonkey 2.0a1. 
Status: UNCONFIRMED → NEW
Ever confirmed: true
Filter "spam" on "guifeatures-nobody-20080610".
Assignee: guifeatures → nobody
QA Contact: guifeatures
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.