Status

RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: matthew.gertner, Assigned: matthew.gertner)

Tracking

Details

Attachments

(1 attachment)

(Assignee)

Description

9 years ago
Standard behavior for Mac applications is to keep running when their last window is closed, and open a new window when the dock icon is clicked in this case. Prism apps currently quit when the last app window is closed. There should be an option to use standard OS X behavior.
(Assignee)

Comment 1

9 years ago
Created attachment 430851 [details] [diff] [review]
Implement nsIApplicationIcon.HIDE_ON_CLOSE for Mac

Using this patch, nsIApplicationIcon.behavior can be set to HIDE_ON_CLOSE on Mac. In this case, closing the window (using the red button) causes it to be hidden and the app keeps running. When the dock icon is clicked, the window is shown again.

This isn't quite the same thing as closing the window and opening a new one, which is more common on OS X, but I think it makes more sense for a web app since the window is shown instantly when the dock icon is clicked and remembers its last state (since it was only really hidden, not closed).
Attachment #430851 - Flags: review?(mark.finkle)
Attachment #430851 - Flags: review?(mark.finkle) → review+
(Assignee)

Comment 2

9 years ago
Sending        chrome/content/webrunner.js
Sending        components/src/mac/nsDesktopEnvironmentMac.mm
Sending        components/src/mac/nsDockTile.h
Sending        components/src/mac/nsDockTile.mm
Transmitting file data ....
Committed revision 64107.
Status: ASSIGNED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.