[Bug]: Fullscreen permission handling doesn't work for WebContentsView #41941
Labels
30-x-y
bug 🪲
component/WebContentsView
has-repro-gist
Issue can be reproduced with code at https://gist.github.com/
platform/all
status/confirmed
A maintainer reproduced the bug or agreed with the feature
Preflight Checklist
Electron Version
30.0.1
What operating system are you using?
Windows
Operating System Version
Windows 10 Enterprise version 22H2
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
When adding a permission request handler to a session used by a WebContentsView, then it is possible to allow elements to go into fullscreen mode.
Actual Behavior
The registered permission request handler is called but when the callback method is invoked nothing happens.
Testcase Gist URL
https://gist.github.com/8cebc0fe88155d5310930cfb3bcc25c7
Additional Information
Although the deprecated BrowserView is said to be a shim on top of the WebContentsView, the permission handling is working for the BrowserView. The provided gist contains buttons to request going into fullscreen mode for the main window and for two child views (one using a BrowserView, another using a WebContentsView).
I have only done tests specifically for fullscreen permission requests but it's possible that this is applicable to all types of permission requests.
The text was updated successfully, but these errors were encountered: