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: webview exiting fullscreen presentation mode #39616

Merged
merged 1 commit into from Aug 25, 2023

Conversation

codebytere
Copy link
Member

Description of Change

Closes #35304

Fixes an issue where escape keypresses were skipped in intermediate webContents. This tweaks the PreHandleKeyboardEvent keypress handling for fullscreen escaping such that we send the keypress to the primary webContents and then traverse through containing webContents if they need to react when leaving fullscreen. Here, PDFs did not properly exit Present mode when they were contained within WebViews because the existing logic skipped directly to the outermost webView.

Checklist

Release Notes

Notes: Fixed an issue where pressing the escape key did not properly trigger PDF presentation mode exit.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/25-x-y PR should also be added to the "25-x-y" branch. target/26-x-y PR should also be added to the "26-x-y" branch. target/27-x-y PR should also be added to the "27-x-y" branch. labels Aug 23, 2023
@codebytere codebytere requested a review from a team as a code owner August 23, 2023 07:48
@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels Aug 23, 2023
@jkleinsc jkleinsc merged commit d42a94d into main Aug 25, 2023
22 checks passed
@jkleinsc jkleinsc deleted the tweak-webview-fullscreen branch August 25, 2023 18:11
@release-clerk
Copy link

release-clerk bot commented Aug 25, 2023

Release Notes Persisted

Fixed an issue where pressing the escape key did not exit PDF presentation mode.

@trop
Copy link
Contributor

trop bot commented Aug 25, 2023

I was unable to backport this PR to "25-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot removed the target/25-x-y PR should also be added to the "25-x-y" branch. label Aug 25, 2023
@trop
Copy link
Contributor

trop bot commented Aug 25, 2023

I was unable to backport this PR to "26-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot added needs-manual-bp/25-x-y and removed target/26-x-y PR should also be added to the "26-x-y" branch. labels Aug 25, 2023
@trop
Copy link
Contributor

trop bot commented Aug 25, 2023

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

@trop trop bot added in-flight/27-x-y merged/27-x-y PR was merged to the "27-x-y" branch. and removed target/27-x-y PR should also be added to the "27-x-y" branch. in-flight/27-x-y labels Aug 25, 2023
@trop
Copy link
Contributor

trop bot commented Aug 31, 2023

@ckerr has manually backported this PR to "26-x-y", please check out #39705

@trop trop bot added in-flight/26-x-y merged/26-x-y PR was merged to the "26-x-y" branch. and removed in-flight/26-x-y labels Aug 31, 2023
@trop
Copy link
Contributor

trop bot commented Nov 1, 2023

@codebytere has manually backported this PR to "25-x-y", please check out #40411

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/25-x-y PR was merged to the "25-x-y" branch. merged/26-x-y PR was merged to the "26-x-y" branch. merged/27-x-y PR was merged to the "27-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Unable to exit pdf present mode in WebView
3 participants