diegomura / diegomura/react-pdf
PDF not openable when using "Download PDFs" settings for PDF documents in Chrome
- Dominant language
- TypeScript
- Stars
- 16.8k
- Forks
- 1.3k
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 52
Description
**Describe the bug**
PDF not openable when using "Download PDFs" settings for PDF documents in Chrome - the Open button's link (blob:...) is invalid and points not to the blob but to the iframe's own URL.
**To Reproduce**
Steps to reproduce the behavior including code snippet (if applies):
1. Go to 'chrome://settings/content/pdfDocuments?search=pdf'
2. Set behaviour to "Download PDFs':
3. Open the page with PDFViewer
4. Click on Open
5. Boom

**Expected behavior**
Should either download the document or open it.
**Desktop (please complete the following information):**
- OS: MacOS Ventura
- Browser: Chrome
- React-pdf version "@react-pdf/renderer": "^3.1.3"
Contributor guide
Assessment
This issue has not been assessed yet.