You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When viewing a PDF with the presentation mode jcef can't return to non presentation mode.
To Reproduce
Steps to reproduce the behavior:
Open detailed MainFrame application
Navigate to a PDF
In PDF Viewer go to the toolbar (right beside the print button)
Press "present" button
-> PDF Viewers Presentation Mode is activated and JCEF can't return from it to non presentation mode.
Also terminating the application behaves strange.
Expected behavior
Even presentation mode is not available or jcef can recover from that state.
Screenshots
See screenshots for better understanding:
Versions (please complete the following information):
Additional context
The problem reproduces with JCEFs simple and detailed sample application.
Does the problem reproduce with the CEF cefclient or cefsimple sample application at the same version?
cefclient.exe starts presentationMode but can recover from it the same way as chrome (shows the ESC message and pressing ESC returns to normal view).
Does the problem reproduce with Google Chrome at the same version?
No, Chrome shows a popup that presentationMode can be left with "ESC" button. Pressing ESC button leaves the presentation mode.
Add any other context about the problem here.
We currently worked around that bug by creating our own CEF build that simply doesn't contain the "Present" Button in the PDF toolbar.
After some additional research I found out that there already is a basic handling of the full screen mode that is also handled in the sample applications: org.cef.handler.CefDisplayHandler.onFullscreenModeChange(CefBrowser, boolean)
But you still cannot return to non presentation/fullscreen mode because either ESC button is not passed or not interpreted correctly.
Describe the bug
When viewing a PDF with the presentation mode jcef can't return to non presentation mode.
To Reproduce
Steps to reproduce the behavior:
-> PDF Viewers Presentation Mode is activated and JCEF can't return from it to non presentation mode.
Also terminating the application behaves strange.
Expected behavior
Even presentation mode is not available or jcef can recover from that state.
Screenshots



See screenshots for better understanding:
Versions (please complete the following information):
Additional context
The problem reproduces with JCEFs simple and detailed sample application.
Does the problem reproduce with the CEF cefclient or cefsimple sample application at the same version?
cefclient.exe starts presentationMode but can recover from it the same way as chrome (shows the ESC message and pressing ESC returns to normal view).
Does the problem reproduce with Google Chrome at the same version?

No, Chrome shows a popup that presentationMode can be left with "ESC" button. Pressing ESC button leaves the presentation mode.
Add any other context about the problem here.
We currently worked around that bug by creating our own CEF build that simply doesn't contain the "Present" Button in the PDF toolbar.
File of CEF build:

./src/chrome/browser/resources/pdf/elements/viewer_toolbar.html:
https://source.chromium.org/chromium/chromium/src/+/refs/tags/130.0.6723.70:chrome/browser/resources/pdf/elements/viewer_toolbar.html;l=137
The text was updated successfully, but these errors were encountered: