-
-
Couldn't load subscription status.
- Fork 484
Enable fullscreen video on macOS #1456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
8e56519 to
f17d03d
Compare
|
Please clean up your commit history and post again to request a review. See here for guidelines. |
0482ace to
c4c4a2c
Compare
|
@alya I’ve cleaned up the commit history as per the guidelines and updated the branch. Could you please take another look? |
|
Could you please update your commit message to match the commit style guidelines? |
On macOS, videos embedded in Zulip Desktop could not enter fullscreen
mode because the app's permission handler did not explicitly grant
fullscreen permissions.
This commit updates the `ipcRenderer.on("permission-request")` handler
to include fullscreen, in addition to existing permissions such as
notifications. With this change, video players (e.g., YouTube and
Zulip-embedded media) can properly request fullscreen.
Tested on macOS to confirm fullscreen now works, and on Windows/Linux
to ensure no regressions.
Fixes zulip#1409.
c4c4a2c to
5f9a74d
Compare
|
@alya I've updated the commit message, Could you please take another look? |
|
@shubham-padia Could you please take a look at this one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution, please address the feedback noted in the comments.
| ); | ||
| }), | ||
| ) | ||
| ).some(Boolean); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I don't like how hasPermission works currently. Changes should be made in hasPermission instead and not here.
| "version": "5.4.19", | ||
| "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.19.tgz", | ||
| "integrity": "sha512-qO3aKv3HoQC8QKiNSTuUM1l9o/XX3+c+VTgLHbJWHZGeTPVAg2XwazI9UWzoxjIJCGCV2zU60uqMzjeLZuULqA==", | ||
| "version": "5.4.20", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this changed by mistake? We should not be updating package versions unless necessary.
Problem
On macOS, videos embedded in Zulip Desktop could not enter fullscreen mode.
This was caused by the app’s permission handler not explicitly granting the
fullscreenpermission.Solution
Updated the
ipcRenderer.on("permission-request")handler to grantfullscreenpermission in addition to existing ones (e.g., notifications).This ensures video players and other elements can properly request fullscreen.
Fixes: #1409
Screen Capture:-
Screen.Recording.2025-09-14.at.5.46.14.PM.mov
Embedding Check:-
Screen.Recording.2025-09-14.at.6.18.38.PM.mov
Platforms Tested
Self-review checklist
Code changes are minimal and scoped to permission handling.
Commit message explains the fix clearly.
Verified fullscreen works on macOS video players (tested on YouTube and Zulip-embedded media).
Tested on Windows/Linux to confirm no regressions.