Closed Bug 229120 Opened 22 years ago Closed 21 years ago

window.minimize() does not work

Categories

(Core :: XUL, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jens.b, Assigned: hyatt)

References

Details

(Whiteboard: see commet 4)

When calling nsGlobalChromeWindow::Minimize() from chrome (by invoking window's minimize() method), you get the following error: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIDOMChromeWindow.minimize] This works fine on windows, where it's used for the fullscreen-mode's minimize window button ( http://lxr.mozilla.org/seamonkey/source/xpfe/browser/resources/content/navigator.xul#232 ). It seems the ability to minimize windows was deliberately left out of the macintosh port - see http://lxr.mozilla.org/seamonkey/source/widget/src/mac/nsMacWindow.cpp#1232 1237 if (aMode == nsSizeMode_Minimized) // unlikely on the Mac 1238 return NS_ERROR_UNEXPECTED; However, having this function available from chrome would be very convenient. For example, Optimoz Mouse Gestures currently allows the user to map this function to a gesture, and we recently received a report that it does not work on Mac. Note that bug 30529 ("Implement minimize/maximize/restore"), where this API was introduced, does not indicate in any way that the function won't work on the Mac.
The "unlikely on the Mac" comment predates OS X. Quite right, it's time to enable window minimization for the Mac. I believe all that needs to be done is simply remove the aforementioned no longer sane sanity check. I can't think of any pitfalls but someone with a Mac would be more likely to know for certain.
Well, and then there's actually implementing minimization. And it wouldn't hurt to hook in to listen for it when it's done by the user, either.
Does this have anything to do w/ hooking up bug 137523?
QA Contact: shrir → benc
This was fixed in bug 204636.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Whiteboard: see commet 4
There is a comment about fixed in trunk. I've looked at 1.7.5 and 1.8a5, and I don't see any visible changes in behavior.
Depends on: 204636
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: benc → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.