Commit Graph

17398 Commits

Author SHA1 Message Date
Florian Bruhin
99c8b80a46 Use i- as prefix for the IPC path on macOS
With Qt 5.12, standarddir.runtime() gives us a path in /private/var/folders/...
instead of /var/folders/... like before. Due to that change, the path length is
105 chars, which is too long for a named socket (104 seems to be okay).

The complete name is just slightly too long, so using i- instead of ipc- fixes
things...

Fixes #4471
See #888
2019-02-22 10:22:09 +01:00
Florian Bruhin
81889dd7bd Update user agent completion
Fixes #4575
2019-02-21 17:10:15 +01:00
Florian Bruhin
b10d84f31a Warn when combining Qt 5.12 with older Qt
Fixes #4581
2019-02-21 14:11:30 +01:00
Florian Bruhin
03e7fdf507 Update _chromium_version comment 2019-02-21 13:31:10 +01:00
Florian Bruhin
be26efddd3 Disallow PAC proxies with QtWebEngine
See #4577
2019-02-21 13:29:06 +01:00
Florian Bruhin
17846ea386 Skip flaky test 2019-02-17 22:39:58 +01:00
Florian Bruhin
31c2fe2c72 travis: Remove allow_failures 2019-02-17 21:41:56 +01:00
Florian Bruhin
2b262f6f78 travis: Install libxkbcommon for PyQt 5.12
See https://www.riverbankcomputing.com/pipermail/pyqt/2019-February/041363.html
Fixes #4478
2019-02-17 21:04:37 +01:00
Florian Bruhin
e027c3056c Update macOS commandline in travis_run 2019-02-17 21:04:14 +01:00
Florian Bruhin
34b2e5bec1 travis: Use PyPI PyQt for macOS
The Homebrew PyQt is quite out of date (5.10), and this is probably faster.
2019-02-17 21:04:14 +01:00
Florian Bruhin
ed6ca97397 travis: Restructure 2019-02-17 21:04:14 +01:00
Florian Bruhin
194cf85ab7 Remove useless suppression
Now my local pylint and Travis suddenly agree again?
2019-02-17 18:59:58 +01:00
Florian Bruhin
a2c7908414 Remove unused import 2019-02-17 18:53:47 +01:00
Florian Bruhin
04764b9c39 Adjust filename suffix matching for Qt 5.12
https://codereview.qt-project.org/#/c/247517/
https://chromium-review.googlesource.com/c/chromium/src/+/1278137
https://cs.chromium.org/chromium/src/base/time/time_to_iso8601.cc

Fixes #4478
Fixes #4580
2019-02-17 17:53:17 +01:00
Florian Bruhin
d97a186992 Use qtutils.version_check to check for signal availability
With Qt 5.12 but an older PyQt, it looks like the attributes are available, but
connecting fails with:

    TypeError: C++ type 'QWebEngineClientCertificateSelection' is not supported
    as a signal argument type

Let's ensure we require both a new Qt and PyQt instead.
2019-02-17 17:29:27 +01:00
Florian Bruhin
64f7692d74 Update qute://settings CSRF tests for Qt 5.12
See #4478
2019-02-17 17:15:03 +01:00
Florian Bruhin
39cc352253 Refactor qute://settings CSRF tests 2019-02-17 17:15:01 +01:00
Florian Bruhin
4c54ebf70f Allow unique initiator requests to qute://testdata
In tests/unit/browser/test_caret.py in the test
TestFollowSelected::test_follow_selected_with_link we follow a link from
qute://testdata/data/caret.html to qute://testdata/data/hello.txt.

For some reason, Qt 5.12 treats that as an unique/opaque origin with Qt 5.12,
causing the request to be blocked and the test to fail.

To avoid this, we now allow all opaque requests to qute://testdata URLs. This
isn't a problem because a qute://testdata handler is only registered inside
tests anyways.

See #4478
2019-02-17 17:14:58 +01:00
Florian Bruhin
152abb0d64 Update docs 2019-02-17 16:03:55 +01:00
Florian Bruhin
0aa3a280f2 Consistent spacing 2019-02-17 16:03:14 +01:00
Florian Bruhin
6305eb7860 Add comment in render_widget() 2019-02-17 16:02:38 +01:00
Florian Bruhin
82f8fc658d Expose abort_questions signal in WebEngineTab 2019-02-17 16:02:38 +01:00
Florian Bruhin
bbfdf1f6fa
Merge pull request #4567 from jgkamat/jay/512-settings
Add setting for DnsPrefetchEnabled
2019-02-17 16:02:23 +01:00
Florian Bruhin
e9908c1d0b
Merge pull request #4528 from blueyed/doc
doc: link CVE  [ci skip]
2019-02-17 15:27:18 +01:00
Florian Bruhin
267537d58a Implement basic client certificate support
Certificate selection when there are multiple matches isn't implemented yet.

See #3992, #3011, #4587.
2019-02-17 15:01:06 +01:00
Florian Bruhin
0599e11dd4 Update _chromium_version comment 2019-02-17 00:40:40 +01:00
Florian Bruhin
8d5aef6f6e Add new warning to qt_log_ignore
This gets shown from time to time in test_take_a_tab_from_the_same_window in
tabs.feature.
2019-02-17 00:01:32 +01:00
Florian Bruhin
b3e1bac11b travis: Allow Qt 5.12 to fail for now
See #4478
2019-02-16 23:19:28 +01:00
Florian Bruhin
05f22796f7 travis/tox: Add PyQt 5.12
See #4478
2019-02-16 23:16:08 +01:00
Florian Bruhin
64dc28c568 Remove pylint suppression for sip.assign
We can control the installed sip version nowadays
2019-02-16 21:14:27 +01:00
Florian Bruhin
2214fd63b5 Merge branch 'pyup-scheduled-update-2019-02-11' 2019-02-16 21:02:39 +01:00
Florian Bruhin
b31e5642de Fix double PyQt5 requirement
PyQt5-stubs tries to pull in PyQt5 5.11.3 but we want PyQt 5.12 (which works
fine) from requirements-pyqt.txt.
2019-02-16 21:01:55 +01:00
Florian Bruhin
9ce8e40a90 Fix flake8 again 2019-02-16 20:58:59 +01:00
Florian Bruhin
a001fd1099 Re-add some deprecation warning filters
Turns out there never was a PyPEG2 release...
2019-02-16 20:19:59 +01:00
Florian Bruhin
22b58e011d Update requirements 2019-02-16 20:17:52 +01:00
Florian Bruhin
5a319cc505 Be more strict about Python deprecation warnings again
The warnings caught in earlyinit.py got fixed in the affected dependencies.
The collections.abc warning also seems to be fixed in everything but PyYAML.
2019-02-16 20:10:29 +01:00
Florian Bruhin
94f998ac3a Adjust for new pytest import handling
See #4511
2019-02-16 20:00:01 +01:00
Florian Bruhin
b6a7fc5984 Update pytest warnings ignore
We don't need the one for pytest-benchmark anymore, but we need one for
pytest-bdd.

See https://github.com/pytest-dev/pytest-bdd/pull/288
See #4511
2019-02-16 19:59:55 +01:00
Florian Bruhin
3fd7b58107 Fix pylint on CI
For some reason, we get an error here on Travis but not locally. This happens
even with the same Python/pylint/astroid versions...
2019-02-16 19:51:58 +01:00
Florian Bruhin
2d996baea0 Fix remaining new flake8 issues 2019-02-16 19:51:58 +01:00
Florian Bruhin
7c87f4e3d0 s/qApp/q_app/g 2019-02-16 19:51:58 +01:00
Florian Bruhin
62059c27f3 Use per-file-ignores built into the new flake8 2019-02-16 18:00:10 +01:00
Florian Bruhin
018d207941 Update requirements-pyqt properly for Qt 5.12 2019-02-16 17:24:23 +01:00
Florian Bruhin
823a0de884 Check for updated docs in all affected tests
Fixes #4576
2019-02-16 01:43:20 +01:00
Florian Bruhin
a8910f5ef5 Fix up _asciidoc_fallback_path
Note to self: Don't do coding in bed at 1 AM.
See #4576
2019-02-16 01:10:03 +01:00
Florian Bruhin
0de43e3438 _asciidoc_fallback_path: Remove reading from parent directories
Reading paths from outside the Python package worked in pkg_resources < 40.8.0
but got deprecated afterwards: https://github.com/pypa/setuptools/pull/1640

Since this isn't really any critical functionality, let's just not try reading
from there. We can still revisit this when the switch to Sphinx is complete.

Fixes #4576 (hopefully)
See #345
2019-02-16 01:05:27 +01:00
Florian Bruhin
6519ac5cca Add normpath in _asciidoc_fallback_path
See #4576
2019-02-16 00:46:41 +01:00
Florian Bruhin
6ca6271170 Add additional asserts to utils.read_file
See #4576
2019-02-16 00:23:52 +01:00
Florian Bruhin
ac1e8a4efe Add window.print() support for Qt 5.12
See #3992
2019-02-15 23:25:59 +01:00
Florian Bruhin
e1f0d994fd Use /bin/bash for format_json userscript
The pipefail option is undefined in POSIX sh:
https://github.com/koalaman/shellcheck/wiki/SC2039
2019-02-15 23:25:59 +01:00