Skip to content
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

fix: requestFullscreen from WebContentsView #41966

Merged
merged 1 commit into from Apr 29, 2024

Conversation

codebytere
Copy link
Member

Description of Change

Closes #41941.

Fixes an issue where document.requestFullscreen didn't work when calling it from a webContents inside WebContentsView. This was happening because we weren't setting the owner window to the associated NativeWindow after the WebContentsView was added to one, and therefore the fullscreen transition wasn't being triggered.

Checklist

Release Notes

Notes: Fixed an issue where document.requestFullscreen didn't work when calling it from a webContents inside WebContentsView.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/30-x-y PR should also be added to the "30-x-y" branch. target/31-x-y PR should also be added to the "31-x-y" branch. labels Apr 25, 2024
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Apr 25, 2024
@codebytere codebytere changed the title fix: requestFullscreen from WebContentsView fix: requestFullscreen from WebContentsView Apr 25, 2024
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Apr 26, 2024
@jkleinsc jkleinsc merged commit f5fb44e into main Apr 29, 2024
25 checks passed
@jkleinsc jkleinsc deleted the fix-webcontentsview-fullscreen branch April 29, 2024 23:09
Copy link

release-clerk bot commented Apr 29, 2024

Release Notes Persisted

Fixed an issue where document.requestFullscreen didn't work when calling it from a webContents inside WebContentsView.

@trop
Copy link
Contributor

trop bot commented Apr 29, 2024

I have automatically backported this PR to "31-x-y", please check out #41995

@trop trop bot added in-flight/31-x-y and removed target/31-x-y PR should also be added to the "31-x-y" branch. labels Apr 29, 2024
@trop
Copy link
Contributor

trop bot commented Apr 29, 2024

I have automatically backported this PR to "30-x-y", please check out #41996

@trop trop bot added in-flight/30-x-y merged/31-x-y PR was merged to the "31-x-y" branch. merged/30-x-y PR was merged to the "30-x-y" branch. and removed target/30-x-y PR should also be added to the "30-x-y" branch. in-flight/31-x-y in-flight/30-x-y labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/30-x-y PR was merged to the "30-x-y" branch. merged/31-x-y PR was merged to the "31-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Fullscreen permission handling doesn't work for WebContentsView
2 participants