Daniel Schadt
7944217da4
Adjust pdfjs unit tests for new logging level
...
The script generation output was changed because we changed the logging
level, this adjusts the unit tests to match the new output.
2015-12-20 20:14:17 +01:00
Daniel Schadt
be0eb0b1cd
Add pdfjs.is_available to vulture whitelist
...
vulture reports it as a false-positive, it's used in the tests but not
picked up by vulture.
2015-12-20 20:08:24 +01:00
Daniel Schadt
6d02ef68ec
Add BDD tests for pdfjs integration
2015-12-20 20:00:56 +01:00
Daniel Schadt
4fdf318fda
pdfjs: Use "info" verbosity for pdf.js logging
2015-12-20 19:24:41 +01:00
Daniel Schadt
f2ed14a24a
Add unit tests for browser.pdfjs
2015-12-20 19:24:41 +01:00
Daniel Schadt
1279e418ee
pdfjs: Replace inline-removal with own function
...
Easier to unit-test and easier to understand for other programmers.
2015-12-20 19:24:41 +01:00
Daniel Schadt
c0b3160676
qutescheme: guess mimetype instead of 'text/html'
...
Since we're now using qute:// to serve files other than html
(see: pdfjs), it's a good idea to change the mimetype accordingly. This
also prevents warnings in the console, as QWebKit will complain e.g.
when stylesheets are served with 'text/html'.
2015-12-20 19:24:41 +01:00
Daniel Schadt
49ed04715e
Remove unused tempfile import
2015-12-20 19:24:41 +01:00
Daniel Schadt
a072cf0175
Fix update_3rdparty on windows
...
You cannot open a file twice on windows, so the call to
urllib.request.urlretrieve was invalid, since we already opened the
temporary file. urlretrieve without a filename will automatically create
and return a temp-file, so we're fine.
2015-12-20 19:24:41 +01:00
Daniel Schadt
384a9ad923
Call update_3rdparty before freezing
2015-12-20 19:24:41 +01:00
Daniel Schadt
3a13e46c25
disable pdfjs by default
2015-12-20 19:24:41 +01:00
Daniel Schadt
cab1d3c666
fully encode URL before passing it to pdfjs
2015-12-20 19:24:41 +01:00
Daniel Schadt
2f34bdf9b9
Add link to pylint bug
2015-12-20 19:24:41 +01:00
Daniel Schadt
8e4ca1fc23
pdfjs: use PDFView.open instead of PDFView.load
...
Now we get a nice loading bar at the top of the page.
2015-12-20 19:24:41 +01:00
Daniel Schadt
c3f2cb02c8
pdfjs: adjust path in scripts/dev/misc_checks.py
2015-12-20 19:24:41 +01:00
Daniel Schadt
d7d577b1fa
Fix pep8/pylint
2015-12-20 19:24:41 +01:00
Daniel Schadt
738fad50da
Adjust .eslintignore
2015-12-20 19:24:41 +01:00
Daniel Schadt
1c13a3cd68
pdfjs: search in ~/.local/share/qutebrowser
2015-12-20 19:24:41 +01:00
Daniel Schadt
623b6fba7e
pdfjs: open system file in binary read
2015-12-20 19:24:41 +01:00
Daniel Schadt
0095b72e03
Update pdfjs path in freeze.py
2015-12-20 19:24:41 +01:00
Daniel Schadt
b243acf172
Add a nice error page when pdfjs is not found
2015-12-20 19:24:41 +01:00
Daniel Schadt
9eb72bf08a
pdfjs: use system-wide installation if available
2015-12-20 19:24:41 +01:00
Daniel Schadt
ef85d1af4c
Move pdfjs and use original files
...
* No modified pdfjs installation needed
-> Groundwork for using a system-wide installation
* Script update_3rdparty.py to download and upack the latest pdfjs
release
2015-12-20 19:24:41 +01:00
Daniel Schadt
ccb8e31e78
exclude .eslintignore from MANIFEST
2015-12-20 19:24:41 +01:00
Daniel Schadt
58cc1e9202
Add pdfjs to eslintignore
2015-12-20 19:24:41 +01:00
Daniel Schadt
60b9d7e6c3
Fix lints
2015-12-20 19:24:41 +01:00
Daniel Schadt
0811418746
pdfjs: don't embed data in html
...
We don't need more than one copy of the pdf.
2015-12-20 19:24:41 +01:00
Daniel Schadt
d89b1f4125
Update README
2015-12-20 19:24:41 +01:00
Daniel Schadt
dc9cd47afc
pdfjs: add unittest for script generation
2015-12-20 19:24:41 +01:00
Daniel Schadt
e6548dd9e7
reorder pdfjs generation code
2015-12-20 19:24:41 +01:00
Daniel Schadt
3dfaab6194
pdfjs: actually wait until the file is loaded
...
Otherwise we get incomplete replies and thus no pdf to view.
2015-12-20 19:24:41 +01:00
Daniel Schadt
8b141037ef
Add setting value to enable/disable pdf.js
2015-12-20 19:24:41 +01:00
Daniel Schadt
1882fb6006
Add pdf.js in frozen distribution
2015-12-20 19:24:41 +01:00
Daniel Schadt
2887250641
Add pdfjs to the distribution
2015-12-20 19:24:41 +01:00
Daniel Schadt
a4f808f56b
Add pdf.js license to readme
2015-12-20 19:24:41 +01:00
Daniel Schadt
fcfc09f541
Revoke "LocalContentCanAccess*Urls"
...
Since we embed the content of the PDF directly, we no longer need the
permissions for pdf.js.
2015-12-20 19:24:41 +01:00
Daniel Schadt
ea4d9e884e
pdfjs: Remove debug output file
2015-12-20 19:24:41 +01:00
Daniel Schadt
5e0090d5b8
pdfjs: Use abosolute URLs
...
That allows us to use the "original" page URL when displaying with
pdf.js, which means yanking the URL etc works as intended.
2015-12-20 19:24:41 +01:00
Daniel Schadt
0ee13392e1
Basic pdfjs support
...
Working, but not very well.
Todo:
- remove pdf_file.html debug file
- set URL correctly
2015-12-20 19:24:41 +01:00
Florian Bruhin
fc3a3ea8c6
Add missing not_frozen mark in test_guiprocess.
...
This should fix test failures when frozen.
2015-12-20 18:40:57 +01:00
Florian Bruhin
fcf94fd527
Remove various deprecated commands/arguments.
2015-12-20 18:38:29 +01:00
Florian Bruhin
ffc76b2a5c
Fix spelling.
2015-12-20 17:39:36 +01:00
Florian Bruhin
84ed602b8d
tox: Update Werkzeug to 0.11.3.
...
- Fixed an issue with copy operations not working against
proxies.
- Changed the logging operations of the development server to
correctly log where the server is running in all situations
again.
- Fixed another regression with SSL wrapping similar to the
fix in 0.11.2 but for a different code path.
2015-12-20 17:26:19 +01:00
Florian Bruhin
3687011e09
tox: Update CherryPy to 5.0.0.
...
-----
5.0.0
-----
* Removed deprecated support for ``ssl_certificate`` and
``ssl_private_key`` attributes and implicit construction
of SSL adapter on Python 2 WSGI servers.
* Default SSL Adapter on Python 2 is the builtin SSL adapter,
matching Python 3 behavior.
-----
4.0.0
-----
* Drop support for Python 2.5 and earlier.
* No longer build Windows installers by default.
2015-12-20 17:25:08 +01:00
Florian Bruhin
6b89eb43a2
Allow any non-space char in search engine names.
...
Closes #1189 .
2015-12-20 17:22:54 +01:00
Florian Bruhin
5c769d8000
Report stdout/stderr of failed subprocesses.
2015-12-18 21:23:33 +01:00
Florian Bruhin
d3dc90cb2a
Revert "tests: Use urllib to load redirect-later-continue."
...
This reverts commit 1e43b882ae
.
Seems like this causes other trouble (the redirect-later request missing?!)
2015-12-18 20:24:03 +01:00
Florian Bruhin
f787f004af
Fix _BaseUserscriptRunner when env is None.
2015-12-18 20:23:39 +01:00
Florian Bruhin
1e43b882ae
tests: Use urllib to load redirect-later-continue.
...
This might avoid the EPROTOTYPE bug on OS X. See #1183 .
2015-12-18 19:57:15 +01:00
Florian Bruhin
b3e4ac8043
tests: Fix AttributeError in _wait_for_clipboard.
2015-12-18 07:18:27 +01:00