-
Notifications
You must be signed in to change notification settings - Fork 470
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
alloy: Print preview fails to load PDF renderer (M124) #3686
Comments
Alloy bootstrap is deprecated (see #3685). Issues that only reproduce with Alloy bootstrap are being closed as WontFix. |
CEF plan to drop Alloy bootstrap mode support since CEF127+. chromiumembedded/cef#3685 This decision is affect to Chronos. E.g. An issue for print preview on Alloy bootstrap mode is decided to not fixed. chromiumembedded/cef#3686 So we should use Chrome bootstrap mode since CEF127+. Chrome bootstrap + Alloy runtime style is already supported from CEF125+. So we use Chrome bootstrap + Alloy runtime style in advance before CEF127 is released. If we don't use Alloy runtime style, at least the following issues have been confirmed: * Download popup like Chrome is displayed on right top corner. * Sometimes Chronos craches by clicking "oepn file" of the popup. * Context menus on right clicking are modified. * This is because menu item IDs are different between Alloy runtime mode and Chrome runtime mode. * We should modify Chronos in order to follow to the IDs of Chrome runtime mode. They are don't occur when we use Alloy runtime style. So we adopt Alloy runtime style.
CEF plan to drop Alloy bootstrap mode support since CEF127+. chromiumembedded/cef#3685 This decision is affect to Chronos. E.g. An issue for print preview on Alloy bootstrap mode is decided to not fixed. chromiumembedded/cef#3686 So we should use Chrome bootstrap mode since CEF127+. Chrome bootstrap + Alloy runtime style is already supported from CEF125+. So we use Chrome bootstrap + Alloy runtime style in advance before CEF127 is released. If we don't use Alloy runtime style, at least the following issues have been confirmed: * Download popup like Chrome is displayed on right top corner. * Sometimes Chronos craches by clicking "oepn file" of the popup. * Context menus on right clicking are modified. * This is because menu item IDs are different between Alloy runtime mode and Chrome runtime mode. * We should modify Chronos in order to follow to the IDs of Chrome runtime mode. They are don't occur when we use Alloy runtime style. So we adopt Alloy runtime style.
CEF plan to drop Alloy bootstrap mode support since CEF127+. chromiumembedded/cef#3685 This decision affects to Chronos. E.g. An issue for print preview on Alloy bootstrap mode is decided to not fixed. chromiumembedded/cef#3686 So we should use Chrome bootstrap mode since CEF127+. Chrome bootstrap + Alloy runtime style is already supported from CEF125+. So we use Chrome bootstrap + Alloy runtime style in advance before CEF127 is released. If we don't use Alloy runtime style, at least the following issues have been confirmed: * Download popup like Chrome is displayed on right top corner. * Sometimes Chronos craches by clicking "oepn file" of the popup. * Context menus on right clicking are modified. * This is because menu item IDs are different between Alloy runtime mode and Chrome runtime mode. * We should modify Chronos in order to follow to the IDs of Chrome runtime mode. They are don't occur when we use Alloy runtime style. So we adopt Alloy runtime style.
Reopening due to reports of this not working with Chrome runtime + Alloy style. https://magpcss.org/ceforum/viewtopic.php?f=6&t=19806 |
See also #3725 which can cause "Print preview failed" in M125+. |
Chrome bootstrap + Alloy style works for me using CEF official build 126.2.10 (64-bit on Windows 11):
Alloy bootstrap still has issues with the same build:
|
Contributions to debug/fix the remaining Alloy bootstrap issue are welcome. Otherwise, this issue will be closed as WontFix once M128 (Alloy bootstrap deletion) reaches beta channel. |
Hello, There are still issues with some websites when using print preview feature from cefclient. The ''Loading preview.." message never disappears. The issue reproduces with the latest 127 release for https://www.corriere.it/ website. Programmatically, in custom windowsless applications calling the PrintToPDF() function, the OnPdfPrintFinished() callback is never called and the printer process never finishes. I launched cefclient --use-alloy-style --enable-print-preview --disable-features=PrintCompositorLPAC as recommended and the print preview works for some websites, but not for https://www.corriere.it/ . For other websites, in custom windows less applications, when setting a viewer rectangle with a quite large height, like 25,000 pixels, makes the printer process to hang. Not sure if the issues are related. |
To Reproduce
Steps to reproduce the behavior:
cefclient --enable-print-preview
Expected behavior
The preview frame should load successfully. Instead, it shows "Loading preview..." until the dialog is canceled.
Versions (please complete the following information):
Additional context
Does not reproduce with Chrome runtime (Chrome or Alloy style). Does not reproduce with M123.
The text was updated successfully, but these errors were encountered: