-
Lei Zhang authored
When calling chrome.fileSystem.chooseEntry() to perform saves, the PDF Viewer currently sets a suggested file name that ends with ".pdf". This is sufficient for the file pickers on Linux and Chrome OS to suggest saving using the suggested file name. However, the file pickers on Windows and Mac will only show the suggested file name without an extension. So trying to save "foo.pdf" and accepting the default results in a new file named "foo". Fix this by setting a value for the "accepts" key in the chooseEntry() parameter dictionary. Specify "pdf" as the extension here to get file pickers to make the correct suggestion. Bug: 1098072 Change-Id: I5b7a3ca7ffadfe14364fdc17b08d1a3133f8a747 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2259478 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by:
Sam McNally <sammc@chromium.org> Cr-Commit-Position: refs/heads/master@{#781367}
92334812