Don't download pdf if it is a file URL and chrome is not the default
pdf viewer If chrome is not the default pdf viewer, clicking on a pdf will trigger a download. After download completes, Chrome will invoke the system viewer to auto-open the pdf file. However, the system viewer might be chrome itself, and that will trigger downloading the file URL, and causing an infinite number of download. This CL fixes the issue by blocking the pdf download if it is a file URL. An alternative to fix the issue is to block the auto-open if Chrome is not the default pdf viewer BUG=851650 Change-Id: Ie12105408f80650463a6eae4f57cb6de23d1a875 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2531217Reviewed-by:Xing Liu <xingliu@chromium.org> Commit-Queue: Min Qin <qinmin@chromium.org> Cr-Commit-Position: refs/heads/master@{#826137}
Showing
Please register or sign in to comment