Cocoa behaves differently when minimizing in fullscreen. It exits fullscreen to a normal window and then minimizes (previously it did not allow minimizing while in fullscreen), but it notifies `SizeModeChanged` with `nsSizeMode_Minimized` directly. When restoring, it does not enter fullscreen again, and notifies `SizeModeChanged` with `nsSizeMode_Normal`. DOM could detect that and sync DOM fullscreen state while get the `nsSizeMode_Normal`, but which means DOM will still be in fullscreen state when minimizing. Or maybe Cocoa could notify `nsSizeMode_Normal` when it returns to a normal window before minimizing, so that the DOM can sync the fullscreen state with the widget earlier. Bradley, is there any specific reason for not notifying nsSizeMode_Normal in this case, or is it possible to have nsSizeMode_Normal notified before minimizing?
Bug 1823284 Comment 13 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Cocoa behaves differently when minimizing in fullscreen. It exits fullscreen to a normal window and then minimizes (previously it did not allow minimizing while in fullscreen), but it notifies `SizeModeChanged` with `nsSizeMode_Minimized` directly. When restoring, it does not enter fullscreen again, and notifies `SizeModeChanged` with `nsSizeMode_Normal`. DOM could detect that and sync DOM fullscreen state while get the `nsSizeMode_Normal`, but which means DOM will still be in fullscreen state when minimizing. Or maybe Cocoa could notify `nsSizeMode_Normal` when it returns to a normal window before minimizing, so that the DOM can sync the fullscreen state with the widget earlier. Bradley, is there any specific reason for not notifying nsSizeMode_Normal in this case, or is it possible to have nsSizeMode_Normal notified before minimizing?