Open Bug 176320 Opened 19 years ago Updated 3 years ago
Width/inner Height values for popup windows (minimum size)
19.97 KB, image/png
In the Final note, I meant bug 161903 (not 161093).
Status: UNCONFIRMED → NEW
Ever confirmed: true
"innerHeight Specifies the vertical dimension, in pixels, of the window's content area. (...) Description To create a window smaller than 100 x 100 pixels, set this property in a signed script. Security To set the inner height of a window to a size smaller than 100 x 100 or larger than the screen can accommodate, you need the UniversalBrowserWrite privilege." found at http://developer.netscape.com/docs/manuals/js/client/jsref/window.htm#1202410
With many chrome bars (menubar, personalbar, locationbar, tab bar, statusbar), we see that NO CONTENT at all is displayed, the personalbar is clipped, the locationbar and the statusbar are not visible, etc... We see how awkward and irrelevant minimal values on outerWidth and outerHeight can be. Right now, one can create a popup window with an outerWidth of 113px and an outerHeight of 100px. I believe there should be only 1 set of minimal values: 100 pixels both applied only to innerWidth and innerHeight .
In the document "Signed Scripts in Mozilla" http://www.mozilla.org/projects/security/components/signed-scripts.html it is said that "resizeTo, resizeBy: To resize a window smaller than 100 x 100 pixels or larger than the screen can accommodate." but the parameters of resizeTo are outerWidth and outerHeight. Allowing outerWidth and outerHeight to be 100px is automatically allowing innerWidth and innerHeight to be LESS than 100px as the titlebar takes 16px and window [re-]sizing borders/handles take 4px each (+any additional chrome bars). IMO, only the specified or computed values of innerWidth and innerHeight should be considered for signed scripts. Same thing with setting them like window.open(strUrl, "WindowName", "titlebar=yes,menubar=yes,personalbar=yes,status=yes,outerWidth=100,outerHeight=100"); Once generated, it's blatant obvious that the innerHeight will be much less than 100px.
Mass-reassigning bugs to firstname.lastname@example.org
Assignee: jst → dom_bugs
The checkin for bug 239876 changes some things regarding the computation and min values of inner[width|height].
adding "minimum size" to summary to make finding with search more effective
Summary: Minimal innerWidth/innerHeight values for popup windows → Minimal innerWidth/innerHeight values for popup windows (minimum size)
Assignee: general → nobody
QA Contact: desale → 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
You need to log in before you can comment on or make changes to this bug.