Closed
Bug 746620
Opened 13 years ago
Closed 7 years ago
No notification when a window is hidden via Option+H or Hide menuitem
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: mkaply, Unassigned)
Details
Per:
https://developer.mozilla.org/en/XUL/Events
There are three events related to windows:
activate
deactivate
sizemodechange
None of these are invoked when windows are hidden on Mac (not minimized, hidden).
To recreate:
add an event listener to your window for deactivate or sizemodechange.
Press apple+H or select File+Hide Firefox
No notifications.
Comment 1•13 years ago
|
||
Do you get an activate event from one of the windows when Firefox is refocused?
| Reporter | ||
Comment 2•13 years ago
|
||
Yes, I do get an activate.
I also seem the deactivate as well (that was a typo on my part).
The sizemodechange is the bigger issue.
For instance, if the Firefox window and the error console are up and focus is on the error console, and you press Apple+H, both windows hide, but there is no notification to the firefox window that it was hidden.
I think that should be a sizemodechange.
I'm honestly not sure what the right thing to do here is.
It seems like the concept of hiding on Mac is not included in sizemodechange. Minimizing does provide the right notifications.
Comment 3•13 years ago
|
||
To me, it's not really a sizemodechange though. You're not acting on a single window - it's an application wide event, in essence the same as cmd+tab'ing to a different application.
| Reporter | ||
Comment 4•13 years ago
|
||
> it's an application wide event, in essence the same as cmd+tab'ing to a different application.
Except with cmd+tab, the window is still onscreen.
But I see your point.
I guess since I have minimize to application window turned on on my dock, everythings looks the same to me.
Your call on what to do with this. Might be worth documenting on the events page though.
Comment 5•13 years ago
|
||
It's not my call, just sharing my 2 cents :) I think an application wide observer notification seems plausible (assuming we even find out that we were hidden).
Out of curiosity, what do you need it for?
| Reporter | ||
Comment 6•13 years ago
|
||
We have a XUL panel that can be displayed and when you hide Firefox and then bring it back, the panel goes to black and does some very strange things.
Our thought was that if we hide the panel as we're hidden, the strange things wouldn't happen.
Although we determined this still won't solve our problem. The strange panel things can be made to happen other ways.
Comment 7•7 years ago
|
||
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•