Description
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):
- Windows 11, Windows 10
- Java Version: OpenJDK 1.8.0_432, 32 bit
- JCEF Version: 7e0ef9d
- CEF Version: 130.1.9+gfc42567+chromium-130.0.6723.70
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