Describe the bug
When there is a CefDialogHandler installed, it's possible to produce a crash due to an index out of bounds in CefFileDialogManager::MaybeRunDelegate. The Chromium code base doesn't always provide a description to match every entry in the extension vector. One such case is when saving a PDF via the print dialog.
Describe the bug When there is a CefDialogHandler installed, it's possible to produce a crash due to an index out of bounds in
CefFileDialogManager::MaybeRunDelegate
. The Chromium code base doesn't always provide a description to match every entry in the extension vector. One such case is when saving a PDF via the print dialog.To Reproduce Steps to reproduce the behavior:
cefsimple --enable-print-preview
Expected behavior No crash.
Versions (please complete the following information):
Additional context The code that adds an entry of "extensions" but not for "descriptions" is Chromium code located at:
PdfPrinterHandler::OnDirectorySelected()
: https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ui/webui/print_preview/pdf_printer_handler.cc;l=505