qutebrowser/tests
Florian Bruhin d80d9eb26c Allow downloading from PDF.js
When we click the download button in PDF.js, it downloads a blob://qute:...
URL. We can detect that and force a download rather than opening it in PDF.js
again.

Note that what actually happens depends on the Qt version and backend:

QtWebKit (any Qt version):
Downloads always work properly (regardless of Qt version).

QtWebEngine, Qt 5.7.1:
Downloads work.

QtWebEngine, Qt 5.9 - 5.11:
Downloads won't work as we need to tell PDF.js to not use blob: URLs:
https://bugreports.qt.io/browse/QTBUG-70420 - in theory, PDF.js could fall back
to downloading the existing qute:// URL, but it has a whitelist of schemes
which does not include qute://... Since it's not in that whitelist, it just
ends up doing nothing at all.

QtWebEngine, Qt 5.12:
Downloads should hopefully work properly again, as we can register the qute://
scheme with Chromium, which allows us to use blob:// URLs.
2018-09-10 13:15:39 +02:00
..
end2end Fix lint and test 2018-09-04 23:46:34 +02:00
helpers Use a shared web_history fixture 2018-09-06 20:08:32 +02:00
manual Update some more references to old config options 2017-07-04 16:46:02 +02:00
unit Allow downloading from PDF.js 2018-09-10 13:15:39 +02:00
conftest.py Turn off hypothesis deadline if on CI 2018-07-22 10:13:06 +02:00
test_conftest.py Update copyright years 2018-02-05 12:19:50 +01:00