chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.34k stars 467 forks source link

mac: chrome: Print preview fails with no associated browser #3410

Open magreenblatt opened 2 years ago

magreenblatt commented 2 years ago

Original report by me.


What steps will reproduce the problem?

  1. Run cefclient --enable-chrome-runtime
  2. Select Tests > Print
  3. In the print preview dialog, set Destination to “Save as PDF”
  4. 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.

magreenblatt commented 2 years ago

Will need to debug SelectFileImpl to figure out what’s failing.

magreenblatt commented 6 months ago

Print preview is supported with Views in issue #3681.

magreenblatt commented 6 months ago

Actually not fixed yet.

magreenblatt commented 3 months ago

Still reproduces at M128 with both Chrome style (default) and Alloy style (--use-alloy-style --enable-print-preview).