cef
cef copied to clipboard
mac: chrome: Print preview fails with no associated browser
Original report by me.
What steps will reproduce the problem?
- Run
cefclient --enable-chrome-runtime - Select Tests > Print
- In the print preview dialog, set Destination to “Save as PDF”
- Click the Save button
What is the expected output? What do you see instead?
The PDF file should be created. Instead, the following messages are printed to console:
[4990:259:1014/144057.559321:WARNING:file_dialog_runner.cc(97)] No browser associated with top-level native window
[4990:259:1014/144057.559418:WARNING:file_dialog_runner.cc(107)] No likely focused browser
[4990:259:1014/144057.559447:ERROR:file_dialog_runner.cc(112)] Failed to identify associated browser; canceling the file dialog
What version of the product are you using? On what operating system?
M107 on macOS Monterey.
Will need to debug SelectFileImpl to figure out what’s failing.
Print preview is supported with Views in issue #3681.
Actually not fixed yet.
Still reproduces at M128 with both Chrome style (default) and Alloy style (--use-alloy-style --enable-print-preview).