9 years ago
9 years ago


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




(1 attachment)



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.

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+

Comment 2

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