Hi All,--I am working on implementing 'print preview' in Chromium Embedded Framework. I got it working properly in CEF 3071 which uses chromium 59.Now I am trying to merge my branch to mainline CEF which has chromium 62.0.3202.0.But after merging I am getting an issue. When I click on 'print' in the print preview dialog, the dialog is hidden but the print is not initiated.I have tracked the webui's message handling, the 'print' message is never passed from the front end to c++ code. And according to the front end js implementation, there will be a 'print' message fired as soon as onPreviewGenerationDone_ is triggered.I can see the preview generated on the print preview dialog so I guess the isPreviewGenerationInProgress_ showed already been set to false. Also I am confused why this happens in newer builds but not in the early versions.Walked through the js code, it seems like it might have been early returned in those conditions:var okToPrint = (this.uiState_ == PrintPreviewUiState_.PRINTING || this.uiState_ == PrintPreviewUiState_.OPENING_PDF_PREVIEW || this.uiState_ == PrintPreviewUiState_.FILE_SELECTION || this.isInKioskAutoPrintMode_) && this.destinationStore_.selectedDestination && this.destinationStore_.selectedDestination.capabilities;if (!okToPrint) { return print_preview.PrintAttemptResult_.NOT_READY; } if (this.isPreviewGenerationInProgress_) { return print_preview.PrintAttemptResult_.READY_WAITING_FOR_PREVIEW; }Therefore I would like to debug the front-end side of the print preview dialog to find out. But I couldn't seen to find a way to do it. Here are some questions I have:1. How can I launch webkit inspector in print preview dialog?2. Is there any particular change between 59 and 62 around print preview should I look into?Thanks,zhengzhou
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/02af9d08-1200-4b3b-ab00-4775e60bbefc%40chromium.org.