Details
Description
When clicking the "PDF File" link on https://projecteuclid.org/euclid.afm/1485893123 a HTML file gets downloaded instead. The download works fine with Qt 5.12 and with Chromium 76.
Looking at the requests made with mitmproxy, the following happens:
- There's a GET request for https://projecteuclid.org/download/pdf_1/euclid.afm/1485893123 with the correct "Referer: https://projecteuclid.org/euclid.afm/1485893123" header.
- The server answers with the PDF file. With Qt 5.12 (or Chromium), that PDF file gets downloaded/displayed.
- With Qt 5.13, there's a second request mode without any Referer header.
- The server replies with a redirect to https://projecteuclid.org/euclid.afm/1485893123 which is the HTML page getting downloaded.
With simplebrowser, this causes the PDF not to be displayed in PDFium. With QWebEngineSettings::PdfViewerEnabled set to false, the HTML (rather than the PDF) gets downloaded.
Attachments
Issue Links
- depends on
-
QTBUG-80463 Switch extensions to guest views
- Closed
For Gerrit Dashboard: QTBUG-78114 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
273455,2 | Do not create a stream for a PDF document when the viewer is disabled | 5.13 | qt/qtwebengine | Status: ABANDONED | -1 | 0 |
282633,1 | Check if pdf viewer and plugins are enabled before creating a stream | 5.14 | qt/qtwebengine | Status: ABANDONED | 0 | 0 |
335189,4 | Implement PluginServiceFilterQt | 5.15 | qt/qtwebengine | Status: MERGED | +2 | 0 |