Closed
Bug 888413
Opened 12 years ago
Closed 6 years ago
center, resizable and scroll options for window.showModalDialog don't work
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: obrufau, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20130627 Firefox/25.0 (Nightly/Aurora)
Build ID: 20130627031027
Steps to reproduce:
Typical `window.showModalDialog` statement, with options.
Actual results:
`center`, `resizable` and `scroll` options are ignored.
>> `center`
The dialog window is not centered when the value is `on`, `yes`, or `1`.
The dialog window is not hidden when the value is `off`, `no`, or `0`.
>> `resizable`
The dialog window has not a fixed size when the value is `off`, `no`, or `0`.
>> `scroll`
The dialog window has not a fixed size when the value is `off`, `no`, or `0`.
Expected results:
`center`, `resizable` and `scroll` options should not be ignored.
>> `center`
The dialog window should be centered when the value is `on`, `yes`, or `1`.
The dialog window should be hidden when the value is `off`, `no`, or `0`.
>> `resizable`
The dialog window should have a fixed size when the value is `off`, `no`, or `0`.
>> `scroll`
The dialog window should have a fixed size when the value is `off`, `no`, or `0`.
Moreover, https://developer.mozilla.org/en-US/docs/Web/API/window.showModalDialog says that if `scroll` is `on`, `yes`, or `1`, the dialog window has scroll bars. I'm not sure if that means a behavior like `overflow:scroll`. If that's the case, it should be fixed too because the behavior is like `overflow:auto`.
Updated•12 years ago
|
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Summary: `center`, `resizable` and `scroll` options for `window.showModalDialog` don't work → center, resizable and scroll options for window.showModalDialog don't work
![]() |
||
Comment 1•12 years ago
|
||
What makes you think any of these options should do anything, other than the obviously-bogus MDN page?
![]() |
||
Updated•12 years ago
|
Flags: needinfo?(obrufau)
Only the MDN page. Why is it obviously-bogus?
Well, there is also http://msdn.microsoft.com/en-us/library/ie/ms536759%28v=vs.85%29.aspx
Flags: needinfo?(obrufau)
![]() |
||
Comment 3•12 years ago
|
||
It's obviously-bogus because it doesn't match what browsers actually do.
Since window.showModalDialog is now deprecated, I guess WONTFIX
Comment 5•7 years ago
|
||
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
Comment 6•6 years ago
|
||
The showModalDialog API was disabled in Firefox 56 and removed later on. As a result, I believe this bug is no longer present in (more) recent versions of Firefox. Please reopen and needinfo me if you think this bug is still relevant.
Bugmail filter: showModalDialogClosure.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•