Closed
Bug 554811
Opened 14 years ago
Closed 5 years ago
showModalDialog does not honor center and resize options
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: angelo.borsotti, Unassigned)
References
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2 window.showModalDialog can be told to center the dialog on the desktop and to make it non-resizable. However, these options do not produce the intended result. Reproducible: Always Steps to Reproduce: 1. take the example page from http://developer.mozilla.org/samples/domref/showModalDialog.html 2. add resizable: no; center: yes to the last argument of window.showModalDialog 3. open the page in the browser, and click on the button Actual Results: a dialog is displayed at the top left of the deskop. The dialog can be resized. Expected Results: the dialog placed at the center of the desktop, not resizable.
Comment 1•14 years ago
|
||
I believe that we don't allow untrusted content to set those features by default; this applies to all window opening, not just modal dialogs. Or do those features work with window.open?
Reporter | ||
Comment 2•14 years ago
|
||
These are the arguments to the window.showModalDialog function call, see: https://developer.mozilla.org/en/DOM/window.showModalDialog This page tells what arguments this function supports, and does not mention that some are allowed only by some kind of content. As a matter of fact, the width and height can be specified, and they function properly. There are no reasons then that the centering could instead be restricted to some content. Centering is told to be the default too.
Comment 3•5 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: 5 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•