qutebrowser/tests/unit/browser
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
..
webengine Add missing str() 2018-06-28 13:26:45 +02:00
webkit Fix lint and tests 2018-09-09 18:35:09 +02:00
test_adblock.py Use config_stub.val instead of config_stub.set_obj in tests 2018-09-02 14:42:47 +02:00
test_hints.py Update copyright years 2018-02-05 12:19:50 +01:00
test_history.py Use a shared web_history fixture 2018-09-06 20:08:32 +02:00
test_pdfjs.py Allow downloading from PDF.js 2018-09-10 13:15:39 +02:00
test_qutescheme.py Add missing tests for qute://pdfjs 2018-09-09 19:22:39 +02:00
test_shared.py Fix test_shared.py 2018-06-24 22:31:27 +02:00
test_signalfilter.py Refactor TabbedBrowser from inheritance to composition 2018-02-19 14:29:05 +01:00
urlmarks.py Remove unused import and TODO from urlmarks test. 2018-02-12 19:25:24 -05:00