Aaron Gorodetzky
6ffd3edb5d
Revert :quit to previous behavior, remove -all, alias :q to :close
2018-07-12 06:10:01 -04:00
Aaron Gorodetzky
49b9144cf0
Change quit to only close the current window.
...
Adds the --all option to quit to behave the same as before.
Also changes wq to wqa to reflect the change.
2018-07-12 06:10:01 -04:00
Florian Bruhin
0a882739c8
Update changelog
2018-07-10 16:08:32 +02:00
Florian Bruhin
14205ae14f
Make link_pyqt work with PyQt 5.11
2018-07-10 16:07:58 +02:00
Florian Bruhin
727b418d8b
Allow PyQt 5.10 to fail on Travis
...
See #4055
2018-07-10 16:01:25 +02:00
Florian Bruhin
b3adbec23e
Revert "travis: Try to install a font for PyQt 5.10"
...
This reverts commit 689f87d596 .
Doesn't seem to help...
2018-07-10 15:55:53 +02:00
Florian Bruhin
689f87d596
travis: Try to install a font for PyQt 5.10
...
For some reason, since a while this fails with a font related assertion error...
2018-07-10 15:25:13 +02:00
Florian Bruhin
048d8ef794
Go back to a release version of PyYAML
...
There's 3.13 now which supports Python 3.7
2018-07-10 15:22:51 +02:00
Florian Bruhin
53afa4275c
Merge remote-tracking branch 'origin/pr/4051'
2018-07-10 15:21:56 +02:00
Florian Bruhin
e24c723700
Update changelog
2018-07-10 15:16:33 +02:00
Florian Bruhin
3b59c35b35
Merge remote-tracking branch 'origin/pr/4048'
2018-07-10 15:14:23 +02:00
murchik
a5c1903247
OTP for qute-pass.
2018-07-10 20:42:28 +08:00
pyup-bot
40057c26f5
Update pyyaml from 3.13b1 to 4.2b4
2018-07-09 19:25:23 +02:00
pyup-bot
94f2b6bdb8
Update tox from 3.0.0 to 3.1.1
2018-07-09 19:25:21 +02:00
pyup-bot
df3e41db9b
Update vulture from 0.27 to 0.28
2018-07-09 19:25:20 +02:00
pyup-bot
d817818fb8
Update vulture from 0.27 to 0.28
2018-07-09 19:25:18 +02:00
pyup-bot
45da910d23
Update pytest from 3.6.2 to 3.6.3
2018-07-09 19:25:17 +02:00
pyup-bot
d1093d1c1d
Update hypothesis from 3.65.0 to 3.66.1
2018-07-09 19:25:15 +02:00
pyup-bot
ea026b5ecb
Update cheroot from 6.3.2 to 6.3.2.post0
2018-07-09 19:25:14 +02:00
pyup-bot
e102551f9f
Update setuptools from 39.2.0 to 40.0.0
2018-07-09 19:25:12 +02:00
Florian Bruhin
b9e3d3cab9
Add workaround for chrome-extension:// URLs
...
Fixes #4049
2018-07-09 12:29:35 +02:00
Florian Bruhin
274b66ec46
Strip trailing newlines from pastebin URL
2018-07-08 22:09:56 +02:00
Florian Bruhin
ae32b79d54
Add exam comments to contributing docs
2018-07-04 15:37:50 +02:00
Florian Bruhin
e80e695a56
Add a mkvenv-pypi-old environment
...
Fixes #4038
See #3662
2018-07-04 14:08:04 +02:00
Florian Bruhin
0a31e19eda
Handle download errors when the reply is already gone
...
Fixes #1270
2018-07-03 17:16:02 +02:00
Florian Bruhin
0f037fb415
Release v1.4.0
2018-07-03 15:44:44 +02:00
Florian Bruhin
85cc1e4f84
Update changelog for v1.4.0
2018-07-03 15:44:25 +02:00
Florian Bruhin
42a3622906
Ignore a new Qt 5.11 lowlevel message
2018-07-03 15:38:29 +02:00
Florian Bruhin
a0f36c5cbf
Skip JS test which is too flaky
2018-07-03 14:15:08 +02:00
Florian Bruhin
dfafab4cff
Update changelog
2018-07-03 13:52:50 +02:00
Florian Bruhin
8cf22c85e0
Merge remote-tracking branch 'origin/pr/4019'
2018-07-03 13:52:24 +02:00
Florian Bruhin
4d1e56a8c6
Ignore "Lost UI shared context" error happening on AppVeyor
2018-07-03 13:39:34 +02:00
Florian Bruhin
8c11c516b4
tox: Always allow setting python via envvar
2018-07-03 13:32:53 +02:00
Florian Bruhin
857288b283
Try importing QtWebEngine from AppVeyor
2018-07-03 13:28:18 +02:00
Florian Bruhin
24e93fe023
Remove AppVeyor debugging
2018-07-03 13:27:31 +02:00
Florian Bruhin
8115e109db
Update default env in tox.ini
2018-07-03 13:27:18 +02:00
Florian Bruhin
6abe8f2c97
Ignore QtNetwork warning on macOS
2018-07-03 13:22:05 +02:00
Florian Bruhin
7a9183d0b7
Remove 32-bit makensis call
...
I forgot to remove this in 0af8eec73a
2018-07-03 13:17:15 +02:00
Florian Bruhin
ba362de2c0
Turn on AppVeyor debugging
2018-07-03 13:15:07 +02:00
Florian Bruhin
d03b03f7cb
Use Python 3.7 on macOS
2018-07-03 13:13:58 +02:00
Florian Bruhin
7e8c741937
Set compiled=False for BDD Qt comparisons
...
We often check for bugs and not APIs there.
2018-07-03 13:10:15 +02:00
Florian Bruhin
641f7eb3c5
Don't import test_file on Windows
...
See https://github.com/pytest-dev/pytest/issues/3650
2018-07-03 13:08:54 +02:00
Florian Bruhin
38791a2386
Only import gen_versioninfo on Windows
2018-07-03 11:38:48 +02:00
Florian Bruhin
b8fb5d4590
Make sure we're using Python 3.6 in release instructions
2018-07-03 11:37:26 +02:00
Florian Bruhin
f65f3db747
appveyor: Make sure we get the Python we want
2018-07-03 11:17:27 +02:00
Florian Bruhin
5add2cd930
Update changelog
2018-07-03 11:15:59 +02:00
Florian Bruhin
0af8eec73a
build_release: Remove 32-bit support for Windows
...
QtWebEngine isn't available for 32-bit anymore:
https://blog.qt.io/blog/2018/05/22/qt-5-11-released/ (comments)
2018-07-03 11:08:56 +02:00
Florian Bruhin
49be92e047
Use 64-bit Python on AppVeyor
...
QtWebEngine isn't available in the 32-bit build.
2018-07-03 11:06:31 +02:00
Florian Bruhin
ec0bbe67f8
travis: Test with Python 3.7
...
See https://github.com/travis-ci/travis-ci/issues/9069
2018-07-03 11:00:33 +02:00
Florian Bruhin
e6e28c846f
Use PyYAML 3.13b1
...
It seems to be finished except for a missing wheel we don't need, and it makes
things work on Python 3.7
2018-07-03 10:30:59 +02:00
Florian Bruhin
efc4eb9069
Use PyYAML from git for requirements-tests-git
2018-07-03 10:30:30 +02:00
Florian Bruhin
26d6cf8ef6
Stabilize URL escaping test
2018-07-03 10:29:28 +02:00
Florian Bruhin
05531ddcf0
brew: Update instead of install libyaml
2018-07-03 10:27:38 +02:00
Florian Bruhin
1c8917b10e
Remove old brew_install line
2018-07-03 10:27:10 +02:00
pyup-bot
c33c019075
Update py from 1.5.3 to 1.5.4
...
(cherry picked from commit fa9698564af184e6e7cdddc96c9906442031197e)
2018-07-02 23:26:14 +02:00
pyup-bot
564cd3732b
Update py from 1.5.3 to 1.5.4
...
(cherry picked from commit 2006ad70e88cf5fffec75aa465f968ebba722758)
2018-07-02 23:26:12 +02:00
pyup-bot
1d91a3ac66
Update hypothesis from 3.61.0 to 3.65.0
...
(cherry picked from commit 98ecc7e77b7dd21037224a4f3b51d0cb654610e6)
2018-07-02 23:26:09 +02:00
Florian Bruhin
f6f713bbfe
Skip key forwarding tests on Qt 5.11.1
...
See #4036
2018-07-02 23:19:57 +02:00
Florian Bruhin
6ca11ed95b
Adjust SSL test for Qt 5.11
2018-07-02 23:15:04 +02:00
Florian Bruhin
41303ecfcf
Make sure temporary dir exists
...
This seems to be enforced with Qt 5.12
See #4025
2018-07-02 22:32:59 +02:00
Florian Bruhin
9a14574c9f
Skip invalid links on any Qt 5.11 version
...
See #3661
2018-07-02 22:32:59 +02:00
Florian Bruhin
d861c097b1
Support new dead keys added in Qt 5.11 properly
...
See https://codereview.qt-project.org/#/c/207231/
2018-07-02 22:32:59 +02:00
Florian Bruhin
77fe2e1c85
Fix test_set_wrong_backend
2018-07-02 22:32:59 +02:00
Florian Bruhin
ad19833e34
Revert "Add workaround for PyQt 5.11 headerDataChanged bug"
...
PyQt 5.11.1 has already been released, with the bug fixed.
This reverts commit 291763a55643342a6f977ce2a12dcc6f4badbe8a.
2018-07-02 22:32:59 +02:00
Florian Bruhin
eca08f064b
Add workaround for PyQt 5.11 headerDataChanged bug
...
https://www.riverbankcomputing.com/pipermail/pyqt/2018-June/040445.html
2018-07-02 22:32:59 +02:00
Florian Bruhin
c3455d9082
Add a wrapper around sip
...
Starting with PyQt 5.11, the sip module now is bundled with PyQt as PyQt.sip.
Having a qutebrowser.qt also helps with #3625 , see #995
2018-07-02 22:32:59 +02:00
Florian Bruhin
f7ae7e7d40
Update for PyQt 5.11
2018-07-02 22:32:59 +02:00
Florian Bruhin
e857400c2c
Add missing str()
2018-06-28 13:26:45 +02:00
Florian Bruhin
dbd4ce48e6
Downgrade and filter PyYAML 4.1
...
This reverts commit 96defc5dc2 .
With PyYAML 4.1 we don't have C extensions on Travis CI:
https://github.com/yaml/pyyaml/issues/179
https://github.com/yaml/pyyaml/issues/182
Unfortunately, cython isn't in the APT whitelist either:
https://github.com/travis-ci/apt-source-whitelist/issues/37
2018-06-28 11:46:03 +02:00
Florian Bruhin
a7af5195d1
Set title when showing PDF.js error page
...
Fixes #3894
2018-06-28 11:22:44 +02:00
Florian Bruhin
e9c78b29ed
Ignore Python 3.7 collections.abc warning
...
Related issues/PRs:
https://github.com/yaml/pyyaml/pull/181
https://github.com/pypa/setuptools/issues/1401
https://github.com/pallets/markupsafe/pull/98
https://github.com/yaml/pyyaml/pull/181
https://github.com/pallets/jinja/pull/867
2018-06-27 16:01:21 +02:00
Florian Bruhin
96defc5dc2
Update PyYAML to 4.1
2018-06-27 15:53:58 +02:00
Florian Bruhin
a804300dc0
Add missing tests for spell.init()
2018-06-26 16:56:22 +02:00
Florian Bruhin
2f612aa6df
Update comment
2018-06-26 15:54:56 +02:00
Florian Bruhin
aed964d9f5
Update changelog
2018-06-26 10:41:21 +02:00
Florian Bruhin
8519aa940f
Decorate slots properly
2018-06-26 10:40:13 +02:00
Florian Bruhin
ea4ee6f00b
Use the url_changed signal in the tab API
2018-06-26 10:39:33 +02:00
Florian Bruhin
1536843f33
Only get greasemonkey object once
2018-06-26 10:39:04 +02:00
Florian Bruhin
61da5d0c7c
Merge remote-tracking branch 'origin/pr/4017'
2018-06-26 10:37:17 +02:00
Florian Bruhin
3312c221c4
Stabilize ssl_strict test
2018-06-26 10:26:17 +02:00
Florian Bruhin
85a9f6a08a
Fix lint
2018-06-26 10:23:48 +02:00
Jimmy
c43d173197
greasemonkey: s/userscripts/greasemonkey_scripts/
...
No need to confuse developers as well as users.
2018-06-26 16:42:31 +12:00
Jimmy
ee2c765859
greasemonkey: check _widget is not deleted
...
Just for good luck.
No crash has been reported here but it is a common pattern for functions
called from signals.
2018-06-26 16:42:31 +12:00
Jimmy
6f1232e621
greasemonkey: move 5.7.1 injection method into _WebEngineScripts
...
Moves the 5.8 check to `_WebEngineScripts.init()`.
Changes `_inject_userscripts` to allow for the two code paths. With
5.7.1 we need to specify the injection point and not clear all scripts
for each call, since we have to call it three times.
Change the 5.8+ hook to call a new method which passes all the scripts
into `_inject_userscripts` so that doesn't have to have a fallback
conditional inside it because thats an inversion of responsibility!
Pulling the remove scripts part into a seperate function and making it
the callers responsibilty to call that first would tidy it up a little
more but meh.
I was worried about just doing `_widget.page().urlChanged.connect()`
once at tab init, where before it was connected at page init, because I
was under the impression that the child page can be replaced at any
time, eg when navigating to a new origin. But under manual testing I
didn't see that at all. Maybe I was mistaken or maybe that only started
in a later Qt version.
2018-06-26 16:42:31 +12:00
Jimmy
324966cfe7
greasemonkey: also support qute-js-world on 5.7.1
...
A straight copy from webengintab.
Yes I know I shouldn't be importing a private thing from webenginetab,
I'm working on refactoring now.
2018-06-26 15:00:35 +12:00
Jimmy
521268a1f7
Update comment.
2018-06-26 15:00:35 +12:00
Jimmy
54ca9b34e5
greasemonkey: enable running in isolated js worlds
...
QtWebEngine (via chromium) has the ability to run injected scripts in
isolated "worlds". What is isolated is just the javascript environment,
so variables and functions defined by the page and the script won't
clobber each other, or be able to interact (including variables saved to
the global `window` object). The DOM is still accessible from "isolated"
scripts.
This is NOT a security measure. You cannot put untrusted scripts in one
of these isolated worlds and expect it to not be able to do whatever
page js can do, it is just for namespacing convenience. See
https://stackoverflow.com/questions/9515704/insert-code-into-the-page-context-using-a-content-script
for some examples of how to inject scripts into the page scope using DOM
elements.
Now you can specify the world ID in a `@qute-js-world` directive like:
```
// ==UserScript==
// @name Do thing
// @match *://some.site/*
// @qute-js-world 1234
// ==/UserScript==
document.body.innerHTML = "<strong>overwritten</strong>"
```
The QtWebEngine docs say worldid is a `quint32` so you can put whatever
number (positive, whole, real) you want there. I have chosen to allow
the `qutebrowser.utils.usertypes` enum as aliases for IDs that are
predefined in
`qutebrowser.browser.webengine.webenginetab._JS_WORLD_MAP`. So you can
pass `main`, `application`, `user` or `jseval` in there too. `main` (0)
is the default one and is the only one in which JS disabled when
`content.javascript.enabled` is set to `false`. All others are still
enabled.
I'm not sure whether using any of those already-named worlds makes
sense, apart from `main`. We could stop people from using them I
suppose. Another option is to allow people to pass in `*` as a value to
have scripts put into their own little worlds, probably backed by a
counter in the GreaseMonkeyManager class.
Chrome docs: https://developer.chrome.com/extensions/content_scripts#execution-environment
Webengine docs: https://doc.qt.io/qt-5/qwebenginescript.html#details
2018-06-26 15:00:35 +12:00
Florian Bruhin
1bc3d444b6
Stabilize escaping URLs test
2018-06-25 23:02:50 +02:00
Florian Bruhin
876aa5a9b1
Fix lint
2018-06-25 22:51:55 +02:00
Florian Bruhin
87778277e0
Fix SSL error page tests
2018-06-25 22:51:48 +02:00
Florian Bruhin
81b3ef937e
Move handling of certificate errors to webenginetab
2018-06-25 21:04:32 +02:00
Florian Bruhin
8a4bba11ed
Disable certificate workaround on Qt >= 5.9
...
Fixes #4020
2018-06-25 20:35:48 +02:00
Florian Bruhin
3f923b41e0
Revert "Update pyqt5 from 5.10.1 to 5.11.1"
...
This reverts commit 1f19db0785 .
2018-06-25 20:08:50 +02:00
Florian Bruhin
158ccd7d54
Revert "Update pyqt5 from 5.10 to 5.11.1"
...
This reverts commit e1bc5389a2 .
2018-06-25 20:08:42 +02:00
Florian Bruhin
228ca732d5
Merge remote-tracking branch 'origin/pyup-scheduled-update-2018-06-25'
2018-06-25 20:08:24 +02:00
pyup-bot
b3790f7a7e
Update pytest from 3.6.1 to 3.6.2
2018-06-25 19:21:17 +02:00
pyup-bot
d6554a131e
Update hypothesis from 3.59.1 to 3.61.0
2018-06-25 19:21:15 +02:00
pyup-bot
1f19db0785
Update pyqt5 from 5.10.1 to 5.11.1
2018-06-25 19:21:14 +02:00
pyup-bot
e1bc5389a2
Update pyqt5 from 5.10 to 5.11.1
2018-06-25 19:21:12 +02:00
Jay Kamat
da0a6305df
Fix crash when tab is closed after a per-domain forced reload
2018-06-25 12:45:17 -04:00
Florian Bruhin
6c9e23af4a
eslint: Turn off max-lines-per-function
2018-06-25 08:14:02 +02:00
Florian Bruhin
13f765a000
Fix changelog formatting
2018-06-24 22:33:46 +02:00
Florian Bruhin
fc19262eaa
Fix test_shared.py
2018-06-24 22:31:27 +02:00
Florian Bruhin
f2f481d991
Support URL patterns for permissions and ssl_strict
...
See #3636
2018-06-24 21:38:37 +02:00
Florian Bruhin
f5e69b2174
Show inspector after creating it
2018-06-24 19:57:52 +02:00
Florian Bruhin
e6e844b039
Support URL patterns for content.headers settings
...
See #3636
2018-06-24 19:54:24 +02:00
Florian Bruhin
a02c25dfb1
Don't escape URLs for qute://history
...
We only use the URL to set a 'href' attribute, which does not need escaping.
See #4011
Fixes #4012
2018-06-23 14:27:07 +02:00
Florian Bruhin
d2254ca48b
Release v1.3.3
...
(cherry picked from commit ad9b50601c )
2018-06-21 23:32:56 +02:00
Florian Bruhin
66fc3a30dd
Update changelog
2018-06-21 23:30:27 +02:00
Florian Bruhin
0864ad4069
Fix shadowing of 'html' name
2018-06-21 22:28:27 +02:00
Florian Bruhin
9a5439e5d0
Re-add waiting for QQuickWidget
...
Apparently this is still needed on some PyQt versions.
2018-06-21 22:22:04 +02:00
Florian Bruhin
7a7e04a054
Move fix to v1.3.3 in changelog
2018-06-21 21:42:44 +02:00
Florian Bruhin
d961eab1d2
Update changelog for v1.3.3
2018-06-21 21:42:08 +02:00
Florian Bruhin
5a7869f2fe
Fix XSS issue on qute://history
...
Fixes #4011
2018-06-21 21:20:19 +02:00
Florian Bruhin
62d8b5b574
Don't depend on PyQt5.QtQuickWidgets to get RWHV
...
Some distributions (at least FreeBSD) don't package that module, so let's not
rely on it.
2018-06-21 17:14:29 +02:00
Florian Bruhin
c87757a913
Revert "Properly add QtQuickWidgets dependency"
...
Looks like FreeBSD doesn't have QtQuickWidgets packaged at all, so let's do the
same without requiring it...
This reverts commit e5405f0ae9 .
2018-06-21 16:35:29 +02:00
Florian Bruhin
9f5ca475c9
Don't try to set focus if prev_focus is None
2018-06-21 01:44:15 +02:00
Florian Bruhin
e7a300865c
Fix lint
2018-06-21 01:43:09 +02:00
Florian Bruhin
4887385bdd
Fix test_dictionary_dir
2018-06-21 01:40:36 +02:00
Florian Bruhin
1000a1eac2
Merge remote-tracking branch 'origin/pr/4005'
2018-06-21 01:01:27 +02:00
Florian Bruhin
e5405f0ae9
Properly add QtQuickWidgets dependency
2018-06-21 00:21:52 +02:00
pyup-bot
a73a778b9d
Update pytest-qt from 2.4.0 to 2.4.1
2018-06-18 19:11:20 +02:00
pyup-bot
7c4eaa80b0
Update hypothesis from 3.57.0 to 3.59.1
2018-06-18 19:11:19 +02:00
pyup-bot
c3b76d1d01
Update cheroot from 6.3.1 to 6.3.2
2018-06-18 19:11:17 +02:00
pyup-bot
fa0e8c1b51
Update requests from 2.18.4 to 2.19.1
2018-06-18 19:11:16 +02:00
pyup-bot
da8f76d082
Update requests from 2.18.4 to 2.19.1
2018-06-18 19:11:14 +02:00
pyup-bot
91c0aae05b
Update requests from 2.18.4 to 2.19.1
2018-06-18 19:11:13 +02:00
Florian Bruhin
3399f2df96
Always clear searches between page loads
...
Looks like this wasn't properly fixed in Qt for some reason.
Fixes #3693
See #2728 and bef372e5f5
2018-06-17 21:03:44 +02:00
Florian Bruhin
2029f52fdc
Show cause when ~/.netrc can't be read
2018-06-17 20:53:29 +02:00
Florian Bruhin
663d1a4d2f
Read dictionaries from /usr/share/qt on Qt >= 5.10
...
Fixes #3759
Supersedes #3762
See #2939 , #4003
2018-06-17 20:27:52 +02:00
Florian Bruhin
7b7e0c93f5
Update Chromium version in changelog
2018-06-16 11:54:53 +02:00
Florian Bruhin
e2ef39e872
Add Comment to .desktop file
2018-06-14 23:29:16 +02:00
Florian Bruhin
7654467f36
Remove unused import
2018-06-14 17:43:20 +02:00
Florian Bruhin
b1b06fcb43
Fix restore test
2018-06-14 17:42:33 +02:00
Florian Bruhin
746c2986f0
Fix test_stylesheet on Qt 5.11
2018-06-14 16:42:24 +02:00
Florian Bruhin
f4386fa9ea
Update changelog
2018-06-14 16:35:16 +02:00
Florian Bruhin
07cf2f5b60
Unconditionally restore mode after prompt
2018-06-14 16:09:30 +02:00
Florian Bruhin
4dddc07753
Make sure modeman.enter(KeyMode.normal) does something sensible
2018-06-14 16:09:26 +02:00
Florian Bruhin
11fce30ed0
Stabilize mode_on_change tests
2018-06-14 15:56:48 +02:00
Florian Bruhin
1335fccba1
Merge remote-tracking branch 'origin/pr/3590' into tab-mode
2018-06-14 15:40:58 +02:00
Florian Bruhin
e4e982c0a7
Remove unused variable
2018-06-14 14:58:07 +02:00
Florian Bruhin
7592186181
Update changelog
2018-06-14 14:58:07 +02:00
Florian Bruhin
868cd115be
Remove old focus handling code
2018-06-14 14:58:07 +02:00
Florian Bruhin
cec63ea449
Merge remote-tracking branch 'origin/pr/3906'
2018-06-14 14:49:30 +02:00
Jay Kamat
e5b6552568
Clean up and simplify some logic
2018-06-13 15:37:32 -07:00
Florian Bruhin
a0adee55c9
Quit hard on ignored exceptions
...
We can't realistically shut down cleanly because we most likely haven't init'ed
properly yet.
Fixes #3993
2018-06-13 21:13:39 +02:00
Florian Bruhin
389c1d11a0
Merge remote-tracking branch 'origin/pr/3990'
2018-06-13 20:28:08 +02:00
Florian Bruhin
b67733b781
Use ImportError for winreg import
...
This also satisfies pylint.
2018-06-13 20:15:16 +02:00
Florian Bruhin
bcc4bd22ee
Merge remote-tracking branch 'origin/pr/3991'
2018-06-13 20:15:06 +02:00
Florian Bruhin
cb2881e0d7
Use info loglevel for :debug-cache-stats
...
Closes #3994
2018-06-13 19:10:01 +02:00
Florian Bruhin
1541088e76
Use -webkit-filter on old Qt
2018-06-12 17:01:34 +02:00
Florian Bruhin
5435609552
Update changelog
2018-06-12 16:50:32 +02:00
Florian Bruhin
c37134861e
Use ES6 template strings
2018-06-12 16:49:54 +02:00
Florian Bruhin
772654bcae
Use calculated background color for newer Qt versions
2018-06-12 16:46:03 +02:00
Florian Bruhin
68a7387b6b
Merge remote-tracking branch 'origin/pr/3940'
2018-06-12 16:32:05 +02:00
Florian Bruhin
fd4ae2fabe
Fix test_set_wrong_backend
2018-06-12 14:17:50 +02:00
Florian Bruhin
a1a5885367
Set parents for tab sub-objects
2018-06-12 14:09:06 +02:00
Florian Bruhin
a6db700886
Fix HTML5 fullscreen
2018-06-12 13:44:47 +02:00
Florian Bruhin
d5dcec4320
Add changelog entry for Qt update
2018-06-12 13:44:41 +02:00
Slackhead
088c7b235d
fix for qt 5.7.1
2018-06-12 11:22:41 +01:00
Florian Bruhin
6faff11243
Improve error messages with backend conditionals
2018-06-12 11:10:03 +02:00
Florian Bruhin
2f97a597a4
travis: Run coverage with PyQt 5.10
2018-06-12 10:53:34 +02:00
Florian Bruhin
e066f83a7c
Make configinit tests run with all setups
2018-06-12 10:52:22 +02:00
Florian Bruhin
5b5657b0d5
Make sure debug_flags is available for unit tests
2018-06-12 10:38:19 +02:00
Florian Bruhin
3b0c8e46a3
Add an initial cookie filter for Qt 5.11
...
See #3010
2018-06-12 09:36:05 +02:00
Slackhead
35a1e118f8
combine style nodes
2018-06-12 04:25:13 +01:00
Florian Bruhin
093f07f552
Add content.canvas_reading setting
...
See #2377
Closes #2235
2018-06-11 23:28:04 +02:00
bitraid
b61c99687d
build_release.py: reformat
2018-06-12 00:27:43 +03:00
Florian Bruhin
ad7e080827
Fix lint
2018-06-11 21:47:38 +02:00
Florian Bruhin
67c67db230
Handle multiple visible children when finding lost focusProxy
...
When we click a QTBUG link (to open in a new tab) from Qt's codereview, we get
two RWHV objects which both are visible.
Experimenting with .setEnabled(False) it looks like it's (hopefully always...)
the last one which is the one to use.
2018-06-11 21:43:27 +02:00
Florian Bruhin
c328d54ebe
Add a lost-focusproxy debug flag
2018-06-11 21:27:08 +02:00
Florian Bruhin
a6b314ae91
Don't connect Qt 5.11 signals on PyQt 5.10
...
Apparently the signal attributes already exist with PyQt 5.10 (*sigh*) but PyQt
doesn't know what to do with the arguments, causing this to happen:
TypeError: unable to convert a C++ 'QWebEngineRegisterProtocolHandlerRequest'
instance to a Python object
2018-06-11 21:21:41 +02:00
Florian Bruhin
d42934af08
Turn off FocusOnNavigationEnabled on Qt 5.9
...
This way we get the same behavior with Qt 5.9 and 5.10 at least, leaving only
5.7 if we pretend that 5.8 never existed.
2018-06-11 20:28:00 +02:00
Florian Bruhin
e7659cea63
Update changelog
2018-06-11 20:24:00 +02:00
Florian Bruhin
141afff0c6
Add a content.desktop_capture setting
...
See #2939
2018-06-11 20:18:57 +02:00
bitraid
ddfbe255e7
build_release.py: Get python path from registry on Windows
2018-06-11 20:45:35 +03:00
Florian Bruhin
69abc9a1a1
Add a content.webrtc_public_interfaces_only option
...
See #3010
Fixes #2163
2018-06-11 19:44:45 +02:00
Florian Bruhin
3bf89bcea4
Add content.autoplay option
...
See #3010
Closes #1643
2018-06-11 19:32:34 +02:00
Florian Bruhin
c5b7ed350e
Make it possible to provide a converter for websettings
2018-06-11 19:14:31 +02:00
pyup-bot
a5447e0e94
Update vulture from 0.26 to 0.27
2018-06-11 19:06:46 +02:00
pyup-bot
4d026bde6f
Update vulture from 0.26 to 0.27
2018-06-11 19:06:39 +02:00
pyup-bot
6943677a90
Update pytest from 3.6.0 to 3.6.1
2018-06-11 19:06:37 +02:00
pyup-bot
37d3cf1e9c
Update pylint from 1.9.1 to 1.9.2
2018-06-11 19:06:36 +02:00
pyup-bot
21dba1ffda
Update astroid from 1.6.4 to 1.6.5
2018-06-11 19:06:34 +02:00
pyup-bot
82a0c94573
Update idna from 2.6 to 2.7
2018-06-11 19:06:33 +02:00
pyup-bot
72f0820204
Update idna from 2.6 to 2.7
2018-06-11 19:06:31 +02:00
pyup-bot
33ba47797d
Update idna from 2.6 to 2.7
2018-06-11 19:06:30 +02:00
Florian Bruhin
b7c1d7fe37
Fix broken tests
2018-06-11 18:38:22 +02:00
Florian Bruhin
263d298449
Remove the content.developer_extras setting
2018-06-11 18:09:24 +02:00
Florian Bruhin
e5fbb9f68a
Remove pyqtSlot annotations for new types
2018-06-11 18:09:24 +02:00
Florian Bruhin
54011782c8
webenginetab: Move scripts to separate object
2018-06-11 18:09:24 +02:00
Florian Bruhin
b3749df009
webenginetab: Move permissions to separate object
2018-06-11 18:09:18 +02:00
Florian Bruhin
4186577928
Add support for navigator.registerProtocolHandler
...
See #3010
2018-06-11 18:09:18 +02:00
Florian Bruhin
c020160f75
Add support for navigator.webkitPersistentStorage.requestQuota
...
See #3010
2018-06-11 18:09:18 +02:00
Florian Bruhin
4ea957b68b
Allow Qt 5.11 for backends in configdata.yml
2018-06-11 18:09:18 +02:00
Florian Bruhin
05e73872b6
Add blocking=True to shared.feature_permission
2018-06-11 16:37:53 +02:00
Florian Bruhin
be95d6f505
Remove moved audio API
2018-06-11 16:07:32 +02:00
Florian Bruhin
b954fd4b15
Move _on_feature_permission_requested to WebEngineTab
2018-06-11 16:06:58 +02:00
Florian Bruhin
6e90465cdd
Update docs
2018-06-11 15:38:01 +02:00
Florian Bruhin
98c82859b5
Skip "History with view-source URL" on QtWebKit
2018-06-11 15:36:48 +02:00
Florian Bruhin
8964845c18
Remove unused import
2018-06-11 15:30:01 +02:00
Florian Bruhin
c7f57bc111
Tell pylint to shut up about a shadowed argument
2018-06-11 15:29:35 +02:00
Florian Bruhin
09a5ef8140
pylint: Ignore ImportError for windows-specific import
2018-06-11 15:22:34 +02:00
Florian Bruhin
9f5a5a12ba
Break long line
2018-06-11 15:22:12 +02:00
Florian Bruhin
f052eff038
Stop using view-source: scheme for Pygments-highlighted URLs
...
Doing so causes QtWebEngine to load its own view-source: page even if we supply
custom data.
Instead we pass the original page's URL (to not regress #2948 ).
This partially reverts #3521 and reintroduces TabData.viewing_source.
However, on QtWebEngine we can still ":view-source --pygments" and then
":view-source" (with or without "--pygments") again, because the bit gets
cleaned in _on_load_started.
See #3654 .
2018-06-11 15:18:00 +02:00
Florian Bruhin
6e23a6b958
Merge remote-tracking branch 'origin/pr/3654'
2018-06-11 14:56:32 +02:00
Florian Bruhin
cbd9e36e0f
Fix typo
2018-06-11 14:13:11 +02:00
Florian Bruhin
12a7aaed95
flake8: Don't require docstrings for stuff under tests/
2018-06-11 14:12:47 +02:00
Florian Bruhin
2b0e89ab14
Update changelog
2018-06-11 14:01:42 +02:00
Florian Bruhin
b63e06561d
Only consider visible render widgets for lost focusProxy
...
Otherwise, when commenting out the focusProxy way above, and using "foo !npm"
with DuckDuckGo, we get two children (one visible, one invisible).
2018-06-11 14:00:02 +02:00
Florian Bruhin
49b6a512c2
Add missing docstring
2018-06-11 13:17:14 +02:00
Florian Bruhin
8949afc2bf
Reformat and document gen_versioninfo
2018-06-11 13:13:58 +02:00
Florian Bruhin
e6dd05a2c7
Merge remote-tracking branch 'origin/pr/3857'
2018-06-11 13:08:29 +02:00
Florian Bruhin
b5d1614c48
Add audio attribute to FakeWebTab
2018-06-11 12:41:55 +02:00
Florian Bruhin
bfae6b357a
Update changelog
2018-06-11 12:39:47 +02:00
Florian Bruhin
4dcba2343d
Add expected_names to test arguments
2018-06-11 12:37:48 +02:00
Florian Bruhin
e36b6b13e0
Edit docstring :D
2018-06-11 12:35:49 +02:00
Florian Bruhin
2934f4a1ca
Merge remote-tracking branch 'origin/pr/3973'
2018-06-11 12:34:18 +02:00
Florian Bruhin
8376278961
Update docs
2018-06-11 12:14:24 +02:00
Florian Bruhin
a1fcdbcfd1
Move muted/audible API to own ".audio" object
2018-06-11 12:12:37 +02:00
Florian Bruhin
1c8d470bd7
Merge remote-tracking branch 'origin/pr/3908'
2018-06-11 12:06:09 +02:00
Jimmy
b7929ef747
Add tests for suppressing debug log records.
...
For the LogFilter tests I just copied some of the examples that were
already being used and reversed them. To do that without even more
duplication I had to add another parameter to the test.
2018-06-11 21:56:59 +12:00
Florian Bruhin
c08c740793
Update changelog
2018-06-11 11:45:31 +02:00
Florian Bruhin
649c9f37cd
Fix import
2018-06-11 11:35:37 +02:00
Florian Bruhin
3999802c71
Add missing 'return'
2018-06-11 11:35:35 +02:00
Florian Bruhin
cf8dbd8bfd
Move pressing Enter into a method
2018-06-11 11:35:16 +02:00
Florian Bruhin
7f69920158
Merge remote-tracking branch 'origin/pr/3947'
2018-06-11 11:29:14 +02:00
Jimmy
addd2e74ce
Allow negating categories in --logfilter
...
Sometimes I want to see all the logs _except_ for the sql stuff and
"marked cookies as dirty". with this you should be able to pass
`--logfilter \!sql,save`.
2018-06-11 21:26:54 +12:00
Florian Bruhin
f034abe6a1
Handle showing/hiding of the inspector properly
2018-06-11 11:07:14 +02:00
Florian Bruhin
1ba2e3e24b
Implement Qt 5.11 devtools support
...
See #3010
2018-06-11 11:07:14 +02:00
Jay Kamat
315ed519ee
Use ctrl-enter in all cases
2018-06-10 16:27:56 -07:00
Florian Bruhin
20763a87c0
Update changelog
2018-06-10 17:34:17 +02:00
Florian Bruhin
c4add62301
Merge remote-tracking branch 'origin/pr/3825'
2018-06-10 17:30:44 +02:00
Florian Bruhin
50fa7743ba
Only use OS-specific line separator for hints
2018-06-10 17:21:31 +02:00
Florian Bruhin
3bffe1ccf8
Release v1.3.2
2018-06-10 15:59:50 +02:00
Florian Bruhin
bd26498f6e
Update changelog for v1.3.2
...
[ci skip]
2018-06-10 15:57:10 +02:00
Florian Bruhin
829a6855a3
Make sure test_env_vars restores variables correctly
...
Otherwise, we'd get a segfault inside Qt in test_stylesheet, since
88f2873a79 .
2018-06-10 15:49:24 +02:00
Florian Bruhin
ca8d3903e3
Improve configinit tests
2018-06-10 10:49:26 +02:00
Jay Kamat
11d8df0e3e
Simplify logic and resolve style issues
2018-06-09 16:45:42 -07:00
bitraid
00199ae60e
Corrections to gen_versioninfo.py script
...
- Use main() function
- Call utils.change_cwd()
- Import info text
- Don't use fstrings
2018-06-10 02:24:47 +03:00
Jay Kamat
de127497a2
Press enter to follow links instead of using js
...
This codepath may trigger a crash which was fixed by
0e75f3272d .
However, this commit does not make it more likely to happen, and this
patch was backported into arch (at least).
In the future, we may be able to use <enter> on qtwebkit with js,
without triggering this crash
2018-06-09 15:42:44 -07:00
Florian Bruhin
292d92d02e
Update changelog
2018-06-09 23:01:29 +02:00
Florian Bruhin
c9fddfe458
Fix lint
2018-06-09 23:00:57 +02:00
Florian Bruhin
7fdeeb25b7
Merge remote-tracking branch 'origin/pr/3793'
2018-06-09 22:59:52 +02:00
Florian Bruhin
6022fd2b26
Document how to run a qutebrowser development build
...
Fixes #3795
Supersedes #3798
2018-06-09 21:56:56 +02:00
Florian Bruhin
1d19a2ebbb
Fix typo
2018-06-09 21:54:32 +02:00
Florian Bruhin
7d11c3aa43
Update changelog
2018-06-09 21:32:09 +02:00
Florian Bruhin
96739d0013
Merge remote-tracking branch 'origin/pr/3864'
2018-06-09 21:29:15 +02:00
Florian Bruhin
dcb1191f93
Remove the deprecated :tab-detach
2018-06-09 21:25:09 +02:00
Florian Bruhin
cf3c200fcb
Update changelog
2018-06-09 20:50:35 +02:00
Florian Bruhin
a663c857cc
Merge remote-tracking branch 'origin/pr/3926'
2018-06-09 20:50:17 +02:00
Slackhead
c3771ca2b2
double quoted and className corrected
2018-06-09 19:45:48 +01:00
Florian Bruhin
c73cb7efad
Update changelog
2018-06-09 20:40:57 +02:00
Florian Bruhin
22f05e3ca5
Merge remote-tracking branch 'origin/pr/3929'
2018-06-09 20:40:32 +02:00
Florian Bruhin
9161aa6e17
Merge remote-tracking branch 'origin/pr/3930'
2018-06-09 20:36:28 +02:00
Florian Bruhin
313cc42d8a
Link to code.qt.io instead of GitHub for _chromium_version
2018-06-09 20:26:12 +02:00
Florian Bruhin
d486a056e7
Update docs
2018-06-09 20:20:46 +02:00
Florian Bruhin
7ce7176475
Fix lint
2018-06-09 20:20:08 +02:00
Florian Bruhin
1b48b67443
Rename reporter.escape_quits to input.escape_quits_reporter
2018-06-09 20:19:32 +02:00
Florian Bruhin
486a92a710
Merge remote-tracking branch 'origin/pr/3944'
2018-06-09 20:18:25 +02:00
Florian Bruhin
ec88c15390
Fix waiting for initial focus object with Qt 5.11 workarounds
...
This was broken in d32d541ac0 because now
apparently PyQt knows it's a QQuickWidget.
2018-06-09 20:05:26 +02:00
Florian Bruhin
40b1be6925
Fix test_disable_gpu with QtWebKit
2018-06-09 19:59:11 +02:00
Florian Bruhin
41b5fca9b7
Add additional test
2018-06-09 19:57:22 +02:00
Florian Bruhin
b0325e17b7
Add a YamlConfig._migrate_bool helper
2018-06-09 19:57:11 +02:00
Florian Bruhin
7949335a2b
Remove unused import
2018-06-09 19:51:05 +02:00
Florian Bruhin
6e954a1596
Allow to force software rendering with wayland on Qt 5.11
...
Closes #2932 (hopefully for the last time)
2018-06-09 16:50:48 +02:00
Florian Bruhin
88f2873a79
Allow more values for the qt.force_software_rendering setting
2018-06-09 16:21:10 +02:00
Jay Kamat
5d38d28fee
Fix incorrect usage of tab_id
2018-06-08 20:59:25 -07:00
Florian Bruhin
d32d541ac0
Further simplify getting focusProxy children
2018-06-08 17:10:47 +02:00
Florian Bruhin
cc497bf2ea
Improve RWHV typecheck for focusProxy
2018-06-08 15:13:48 +02:00
Florian Bruhin
9725d9ce33
Exclude QMenu when trying to find the missing focusProxy
2018-06-08 14:55:34 +02:00
Florian Bruhin
1531961aeb
Show children in focusProxy workaround
2018-06-08 14:40:59 +02:00
Florian Bruhin
4e6fede40d
Update changelog
2018-06-08 08:56:17 +02:00
Florian Bruhin
91b4106dcf
Fix check for reloads on Qt < 5.11
...
This was broken in 6ccd69dad2
2018-06-08 08:53:10 +02:00
Florian Bruhin
a13618fe2a
Merge branch 'pyup-scheduled-update-2018-06-04'
2018-06-07 22:57:48 +02:00
Florian Bruhin
8bf7cb539a
Mark modal window test as flaky
2018-06-07 22:57:16 +02:00
Florian Bruhin
d96a98a058
Mention other colorschemes as well
2018-06-07 20:31:27 +02:00
Florian Bruhin
5e6002fcdc
Merge remote-tracking branch 'origin/pr/3963'
2018-06-07 20:25:24 +02:00
Florian Bruhin
11b957f24b
tests: Adjust getting markers for pytest 3.6
2018-06-07 19:29:01 +02:00
Florian Bruhin
4614ad5063
Remove unused import
2018-06-07 18:01:29 +02:00
Florian Bruhin
6e48648033
Update changelog
2018-06-07 17:52:46 +02:00
Florian Bruhin
d541634a7c
Avoid hacks for changing per-domain settings on Qt 5.11.1
2018-06-07 17:51:21 +02:00
Florian Bruhin
b1506274c5
Implement a better workaround for chrome-error:// URLs
...
It looks like chrome-error://chromewebdata/ triggers another invalid scheme
load which is why the endless loop happens. When we install a custom scheme
handler for chrome-error:// we can at least show an error page.
2018-06-07 16:03:25 +02:00
Florian Bruhin
c6a1d729f4
Update the list of chrome:// URLs
...
See #3010
2018-06-07 15:42:58 +02:00
Florian Bruhin
596041c40e
Go back to using an invalid scheme for invalid_link.html
...
Otherwise, this breaks the tests on Qt 5.10
2018-06-07 15:30:28 +02:00
Florian Bruhin
9b795c5257
Update changelog
2018-06-07 14:35:09 +02:00
Florian Bruhin
89f4333df1
Make sure external schemes are clickable via hints
...
This issue was probably introduced in 545539f28d
- with JavaScript, we can't "click" on an external link.
There might be a better solution using
QWebEngineSettings::setUnknownUrlSchemePolicy(QWebEngineSettings::AllowAllUnknownUrlSchemes)
temporarily when using hints with PyQt 5.11.
Fixes #2833
2018-06-07 14:33:49 +02:00
Florian Bruhin
59e5a2a6f1
Update changelog
...
See #3661
2018-06-07 13:49:39 +02:00
Florian Bruhin
0c0d204fd4
Add a workaround for chrome-error:// loops on Qt 5.11
...
See #3661
2018-06-07 13:49:33 +02:00
Florian Bruhin
999513d5d8
Skip invalid link tests on Qt 5.11
...
Qt 5.11 just loads about:blank and doesn't let us catch this in
acceptNavigationRequest, but the same happens in Chromium as well.
See #3661
2018-06-07 13:49:28 +02:00
Florian Bruhin
d059197bc9
Use a valid scheme in invalid_link.html
...
This is to avoid triggering QTBUG-63378 which fails differently with a custom
scheme.
See #3661
2018-06-07 13:49:22 +02:00
Florian Bruhin
0e9159e8e8
Revert "Fix Qt 5.11 issues with clicking invalid links"
...
This reverts commit 1956590df84a72c7f9a516e805d01529291fccf8.
Turns out the actual issue wasn't due to *invalid* links - it's with links
which have an unknown scheme.
There's still a change in behavior between Qt 5.10 and 5.11 though: Invalid
links are apparently not passed to acceptNavigationRequest (sometimes?) so we
don't show an error message. Instead, we just load about:blank. However,
Chromium does that too and we can't handle a real click easily, so let's just
ignore that one.
See #3661
2018-06-07 13:49:13 +02:00
Florian Bruhin
3d53d0d2c5
Fix Qt 5.11 issues with clicking invalid links
...
See #3661
2018-06-07 13:48:04 +02:00
Florian Bruhin
eb6478dd3e
Reenable Qt 5.11 tests on Travis
...
Fixes #3661
2018-06-07 13:48:04 +02:00
Florian Bruhin
8cc3804119
Don't run test with failed download on Qt 5.11
...
Looks like we can't use an <a> tag with download-attribute to trigger a failed
download in the test on Qt 5.11...
See #2298 , #3661
2018-06-06 21:12:23 +02:00
Florian Bruhin
513591348c
Update changelog
2018-06-06 20:26:12 +02:00
Florian Bruhin
456fdc55cc
Only set PseudoLayout with Qt 5.11
2018-06-06 20:26:12 +02:00
Florian Bruhin
7e31897dcc
Fix lint
2018-06-06 20:26:12 +02:00
Florian Bruhin
5147fc832c
Handle resizing via PseudoLayout
...
This fixes the scenario where we just get a grey view when opening a link in a
tab from DuckDuckGo.
2018-06-06 20:26:12 +02:00
Florian Bruhin
ec6c5ebb69
Try harder to get the RenderWidgetHostViewQt
2018-06-06 20:26:12 +02:00
Florian Bruhin
34d054e8a5
Revert "Use WrapperLayout instead of PseudoLayout"
...
This reverts commit 6cc920472ee4170b257a0b588687b175162e83df.
Since self._widget can go stale in the layout, we need to somehow solve this differently...
2018-06-06 20:26:12 +02:00
Florian Bruhin
e0213e7447
Use WrapperLayout instead of PseudoLayout
2018-06-06 20:26:12 +02:00
Florian Bruhin
cee88cd7ca
Initial proof of concept for pseudo layout
...
Fixes #3920 - hopefully properly this time...
2018-06-06 20:26:12 +02:00
Florian Bruhin
5635639ed4
view-in-mpv: Remove --yes-playlist argument for youtube-dl
...
Reverts #3057
Fixes #3977
2018-06-06 09:59:03 +02:00
Florian Bruhin
982a42d453
Unbind Ctrl-Shift-Tab by default
2018-06-05 11:33:34 +02:00
pyup-bot
dc203d46de
Update pytest-rerunfailures from 4.0 to 4.1
2018-06-04 19:00:21 +02:00
pyup-bot
62e86e1482
Update pytest-qt from 2.3.2 to 2.4.0
2018-06-04 19:00:19 +02:00
pyup-bot
9f9a5d576b
Update pytest from 3.5.1 to 3.6.0
2018-06-04 19:00:18 +02:00
pyup-bot
46329b0f03
Update parse from 1.8.2 to 1.8.4
2018-06-04 19:00:16 +02:00
pyup-bot
454d026fdc
Update more-itertools from 4.1.0 to 4.2.0
2018-06-04 19:00:14 +02:00
pyup-bot
e30e08a04e
Update pyroma from 2.3 to 2.3.1
2018-06-04 19:00:13 +02:00
Slackhead
7858bb97d1
Change default bg colour to #000
2018-05-31 06:33:48 +01:00
Slackhead
8c1080de97
Change filter value to 85% to really darken it
2018-05-31 05:58:05 +01:00
Slackhead
d37b2713cf
Change min-width to 0.2em
2018-05-31 05:45:43 +01:00
Slackhead
41a092cd80
Tweak style/animation
2018-05-31 04:50:41 +01:00
Slackhead
0fcbc209bb
Add animation stopper/starter
2018-05-31 04:50:41 +01:00
Slackhead
1578a4836c
Add fallback colours if inherit fails
2018-05-31 04:50:41 +01:00
Slackhead
f34d1b6ce1
Remove inherit styles
2018-05-31 04:50:41 +01:00
Slackhead
4cc2b919fa
Change caret style
2018-05-31 04:50:41 +01:00
Florian Bruhin
5e99da5459
Remove broken shields.io badges
...
[ci skip]
2018-05-30 11:59:34 +02:00
theova
5543e75abd
Add base16-qutebrowser
2018-05-29 20:00:49 +02:00
Florian Bruhin
6fc3546923
travis: Allow Archlinux to fail for now
...
See #3661
2018-05-29 13:19:05 +02:00
Florian Bruhin
52c44d3da6
setup.py: Set long_description_content_type
...
Otherwise, Warehouse (new PyPI) refuses the upload...
2018-05-29 11:23:10 +02:00
Florian Bruhin
b3c95c1668
Release v1.3.1
...
(cherry picked from commit ac29c579ff )
2018-05-29 11:15:15 +02:00
Florian Bruhin
f78410ef2b
Update changelog for v1.3.1
2018-05-29 11:09:06 +02:00
Jay Kamat
28fce9a7cb
Add support for opening background tabs in 5.11
...
Adding more workarounds to 442bdd4a4f , *sigh*
2018-05-26 13:52:57 -07:00
Jay Kamat
3392d82f50
Merge branch 'master' of https://github.com/qutebrowser/qutebrowser into jay/tab-bg-focus
2018-05-26 13:52:12 -07:00
Jay Kamat
c33a887b2d
Add support for following tab selected elements to :follow-selected
2018-05-25 12:39:36 -07:00
Jay Kamat
cd56b97e7d
Add an option to disable escape in the report dialog
2018-05-24 11:50:27 -07:00
Florian Bruhin
12e0edbcd0
Fix lint
2018-05-24 08:47:31 +02:00
Jay Kamat
40e391e199
Prevent closing :report dialog when pressing <escape>
2018-05-23 21:25:43 -07:00
Florian Bruhin
17cfb0d39c
Add some more logging for #3920
2018-05-23 21:31:18 +02:00
Florian Bruhin
7162f15348
Use functools instead of a lambda for QTimer
...
It reads nicer, and this is also speculative fix for #3896 as PyQt5 is
hopefully better at disconnecting partial-objects from dead objects than it is
with lambdas.
2018-05-23 09:44:44 +02:00
Jay Kamat
74ea696a5c
Merge branch 'master' of https://github.com/qutebrowser/qutebrowser into jay/tab-bg-focus
2018-05-22 23:17:52 -07:00
Jay Kamat
2f76ef1e53
Revert "Only apply workaround for QTBUG-68076 on non-background tabs"
...
This reverts commit 77c8575a88 .
2018-05-22 23:17:43 -07:00
Florian Bruhin
26e37739e2
Fix typo
2018-05-22 23:07:31 +02:00
Florian Bruhin
e895ee8bdc
Update changelog
2018-05-22 12:28:55 +02:00
Florian Bruhin
29ad252278
Handle ² keypress correctly
...
Turns out str.isdigit() also handles ² as a digit, but int('²') causes a
ValueError.
Here we use `string.digits` instead, which is '0123456789'.
Fixes #3743
2018-05-22 12:25:45 +02:00
Florian Bruhin
db1287cb82
Update changelog
2018-05-22 09:40:54 +02:00
Florian Bruhin
71ad8bdb47
Properly work around Qt 5.11 keyboard focus issues
...
Please let this be the last attempt... :D
Fixes #3939
Supersedes #3921
Reverts ae295a7f65
See #3661
This should not regress #3872 . Might affect #3834 in some way.
2018-05-22 09:36:14 +02:00
Florian Bruhin
bc37af7c95
Document QtWebEngine internals
...
[ci skip]
2018-05-22 07:42:23 +02:00
Jay Kamat
3bf02aa62f
Clarify install command for Ubuntu 17.04
2018-05-21 17:29:23 -07:00
Florian Bruhin
ae06c2cdb7
Merge pull request #3938 from qutebrowser/pyup-scheduled-update-2018-05-21
...
Scheduled weekly dependency update for week 20
2018-05-21 21:31:03 +02:00
Florian Bruhin
89f019b710
Remove unneeded "except ... as e:" assignments
2018-05-21 20:03:18 +02:00
pyup-bot
228c86c799
Update virtualenv from 15.2.0 to 16.0.0
2018-05-21 18:53:26 +02:00
pyup-bot
c551e29f4c
Update pytest-qt from 2.3.1 to 2.3.2
2018-05-21 18:53:25 +02:00
pyup-bot
7596dbdd43
Update pytest-instafail from 0.3.0 to 0.4.0
2018-05-21 18:53:23 +02:00
pyup-bot
616371a3c1
Update hypothesis from 3.56.9 to 3.57.0
2018-05-21 18:53:22 +02:00
pyup-bot
725a133b9a
Update cheroot from 6.2.4 to 6.3.1
2018-05-21 18:53:20 +02:00
pyup-bot
f60c42b7fb
Update pylint from 1.8.4 to 1.9.1
2018-05-21 18:53:19 +02:00
pyup-bot
9dc9ec3435
Update astroid from 1.6.3 to 1.6.4
2018-05-21 18:53:17 +02:00
pyup-bot
e7a779ef90
Update setuptools from 39.1.0 to 39.2.0
2018-05-21 18:53:16 +02:00
pyup-bot
5ec3f1949a
Update pyflakes from 1.6.0 to 2.0.0
2018-05-21 18:53:14 +02:00
pyup-bot
5df4128e8d
Update pep8-naming from 0.6.1 to 0.7.0
2018-05-21 18:53:13 +02:00
Jimmy
47446baf29
s/obj/target/
...
Would a bit of consistency in variable names be too much to ask?
2018-05-21 21:23:38 +12:00
Jimmy
749b29e599
tests: Don't pretend to be using webkit if unavailable
...
Since `objects.backend` was being set to usertypes.Backend.QtWebKit by
default some feature detection code was calling
`version.qWebKitVersion()` which was failing because the import of
`PyQt5.QtWebKit` was failing in version.
This should not change behavior where both backends are available on if
any tests fail because they are expecting their environment to say they
are on webkit when they either aren't actually using any webkit features
or all mocked webkit features then they should probably be changed to
patch `objects.backend` or not depend on it.
2018-05-21 20:59:27 +12:00
Wayne Cheng
9a85796ac3
CR changes
2018-05-20 20:30:24 -04:00
Florian Bruhin
a31542269a
Remove old files from MANIFEST.in
2018-05-20 16:12:33 +02:00
Wayne Cheng
36ddf3a328
Code review changes
2018-05-20 05:35:48 -04:00
Jimmy
d162e01422
Greasemonkey: remove extra window scope IIFE
...
Also change the block scoped `window` declaration to be const because it
seemed like a good idea. The real window seems to just silently ignore
attempts to overwrite it.
2018-05-20 18:42:40 +12:00
Jimmy
6573a4d616
Tell pylint to shut its fat mouth.
...
I just want to return something I can refer to the attributes of via dot
syntax without having to pointlessly write the names both when I declare
the data class and when I assign the variables.
Such a stupid warning.
2018-05-20 18:42:40 +12:00
Jimmy
b0d1a137da
Greasemonkey: Don't attempt scope isolation on webkit
...
Since the JSCore used by WebKit 602.1 doesn't fully support Proxy and I
can't think of a way to provide isolation otherwise just revert to the
old behaviour in that case. I am checking for the specific WebKit
version because I'm pretty sure that version just happened to be
released when Proxy support was only partially done, any later release
will presumably have a newer JSCore where it works.
There I changed the indentation of a block in the jinja template which
will have inflated the diff.
I added mocking of `objects.backend` to the `webview` and
`webenginewebview` fixtures, I am pretty sure they are mutually
exclusive so don't expect any issues from that.
Because of the feature detection being at template compile time I had to
tweak the test setup to be done via a fixture instead of the setupClass
functionality that I was using before.
2018-05-20 18:42:40 +12:00
Jimmy
13249329f7
Greasemonkey: skip window scoping test on webkit
...
The implementation of Proxy in JSCore used by current QtWebkit (webkit
602.1) doesn't support the `set()` handler for whatever reason. So
instead of testing for a specific behaviour that we can't ensure on that
version let's just skip the tests and handle user complaints with
sympathy.
2018-05-20 18:42:40 +12:00
Jimmy
19242b6cb2
Greasemonkey: fix scoping function decleration.
...
Apparently making a function like `function foo() {};` in block scope is
illegal. It should be named via assignment.
Switched to an IIFE anyway because it doesn't need a name.
2018-05-20 18:42:40 +12:00
Jimmy
c7a9792b67
Greasemonkey: Add test for window scoping refinements.
...
Adds a test to codify what I think greasemonkey scripts expect from
their scope chains. Particularly that they can:
1. access the global `window` object
2. access all of the attributes of the global window object as global
objects themselves
3. see any changes the page made to the global scope
4. write to attributes of `window` and have those attributes, and changes
to existing attributes, accessable via global scope
5. do number 4 without breaking the pages expectations, that is what
`unsafeWindow` is for
There are some other points about greasemonkey scripts' environment that
I believe to be true but am not testing in this change:
* changes a page makes to `window` _after_ a greasemonkey script is
injected will still be visible to the script if it cares to check and
it hasn't already shadowed them
* said changes will not overwrite changes that the greasemonkey script
has made.
2018-05-20 18:42:40 +12:00
Jimmy
23bfe6daa2
Greasemonkey: fix window proxy for new attributes
...
Previously scripts were failing to find attributes that they assigned to
window and then tried to use from the global scope. Eg
window.newthing = function() {...};
newthing(...); // newthing is not defined error
This wasn't the case for things that already existed in the global scope
and were just being overwritten.
This change just overrides the `Proxy.has()` function which seems to fix
it. Probably the `while` implementation was failing to pick up new
attributes because of the lack.
I also tweaked some comments and variable names and const-ness to be a
little more production ready.
2018-05-20 18:42:40 +12:00
Jimmy
ab50ad735b
Greasemonkey: isolates scripts' writes to window
...
Since the global namespace of javascript in the browser is accessible
there where issues with scripts clobbering things that the page expected
to be attributes of window pages clobbering things that userscripts
saved to `window`. The latter was occuring with OneeChan. OneeChan was
setting `window.$` to a function that took a css selector and the 4chan
catalog script was setting `window.$` to some object. Since OneeChan was
set to run at document-start this broke OneeChan, switching it to
document-end broke scripts on 4chan.
I used OneeChan and 4chan-X on 4chan as the test case for this and
TamperMonkey as a guide for what is the correct way to handle scoping. I
didn't manage to pick apart just how TamperMonkey does what it does (I
think it might just be the environment that Chrome provides extensions
actually) but I got close to the same behaviour.
TamperMonkey provides a `window` object that appears to be what the
global window looked like before the webpage modified it. The global
scope though does have the pages modifications accessible. If the script
assigns something to an attribute `window` it can see that attribute in
the global scope. This implementation differs from that one in that, to
the scipt, `window` and the global scope always look the same, and that
is the same as the global scope looks in the environment provided by
TamperMonkey.
I am using the ES6 `Proxy` feature to allow the `window` object to look
like the actual (unsafe) one while allowing writing to it that doesn't
clobber the unsafe one. I am then using the ES4 `with` function to make
attributes of that window (proxy) object visible in the scope chain.
There may be other ways to do this without using `with` by using nested
functions and setting `this` creatively. There are notes around
alleging `with` to be various states of uncool[1].
I also ran into an issue where a userscript calling
`window.addEventListener(...)` would fail with `TypeError: Illegal
Execution` which is apparently due to `this` not being set correctly. I
looked at the functions which threw that error and those that didn't and
am using whether they have a `prototype` attribute or not to tell
whether I need to bind them with `window` as `this`. I am not sure how
correct that is but it worked for all the cases I ran into.
[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/with
2018-05-20 18:42:40 +12:00
Wayne Cheng
7130f863cb
Create lastpass implementation based off qute-pass code
2018-05-19 15:53:08 -04:00
Sebastian Heinlein
547edb3c4e
appdata: install the metainfo using the Makefile
...
Furthermore add some information about the latest releases
and remove a few trailing whitespaces.
2018-05-19 13:57:26 +02:00
Jay Kamat
77c8575a88
Only apply workaround for QTBUG-68076 on non-background tabs
...
Previously, we would focus webviews even if they were in the
background to work around https://bugreports.qt.io/browse/QTBUG-68076 .
This adjusts that to only occur when needed.
2018-05-18 10:46:53 -07:00
Joakim Särehag
4966a70709
Merge from main repo master, resolved conflict in webenginetab.py
2018-05-18 13:59:25 +02:00
Florian Bruhin
046c0a7ea2
Merge remote-tracking branch 'origin/pr/3914'
2018-05-17 17:53:47 +02:00
Florian Bruhin
d208c48532
Update changelog
2018-05-17 17:53:15 +02:00
Florian Bruhin
dacca0d2ed
Remove double settings
2018-05-17 15:54:26 +02:00
Florian Bruhin
6ccd69dad2
Fix reload for JavaScript support on Qt 5.11
2018-05-17 15:54:17 +02:00
Florian Bruhin
d8569a36f9
Update changelog
2018-05-17 14:24:29 +02:00
Florian Bruhin
44d26f77a5
Add workaround for the "split page" Qt bug (QTBUG-68224)
...
Fixes #3920
2018-05-17 14:21:14 +02:00
Florian Bruhin
6eadff4a10
Add Python executable to :version
2018-05-14 22:13:15 +02:00
pyup-bot
6784356d9d
Update hypothesis from 3.56.5 to 3.56.9
2018-05-14 18:48:20 +02:00
pyup-bot
b0105b0157
Update python-dateutil from 2.7.2 to 2.7.3
2018-05-14 18:48:18 +02:00
pyup-bot
553a91c012
Update python-dateutil from 2.7.2 to 2.7.3
2018-05-14 18:48:17 +02:00
pyup-bot
b0f83615b6
Update wheel from 0.31.0 to 0.31.1
2018-05-14 18:48:15 +02:00
pyup-bot
0c674c7110
Update flake8-builtins from 1.3.1 to 1.4.1
2018-05-14 18:48:14 +02:00
Jay Kamat
71d55e9213
Refocus command prompt after a new tab is opened when in command mode
2018-05-11 08:49:13 -07:00
Jay Kamat
95093b82c9
Refocus webview after spawning a background tab
2018-05-10 10:15:01 -07:00
Jay Kamat
538b4fafdb
Revert "Restore focus to webview after clicking tab-bg"
...
This reverts commit 262cea8e75 .
2018-05-10 09:30:28 -07:00
Jay Kamat
563afb277d
Fix style issues
2018-05-10 08:04:48 -07:00
Jay Kamat
4bb048cb6a
Fix mocked tests
2018-05-09 21:41:59 -07:00
Jay Kamat
ae04da7b78
Upgrade indicator to show recentlyAudible status
2018-05-09 18:57:53 -07:00
Jay Kamat
0642695c7d
Update docs
2018-05-09 18:33:52 -07:00
Jay Kamat
7a297e2e3f
Add support for muting tabs
2018-05-09 18:28:05 -07:00
Jay Kamat
bc9f178a08
Add test for tab-bg focus
2018-05-09 15:34:01 -07:00
Jay Kamat
262cea8e75
Restore focus to webview after clicking tab-bg
2018-05-09 11:05:07 -07:00
Joakim Särehag
dc7f39514d
pull request #3864 , reverted webview changes, fixed regression
2018-05-09 18:28:52 +02:00
Joakim Särehag
72c2962908
removed trailing whitespace
2018-05-09 15:52:22 +02:00
Joakim Särehag
cbf95d76bd
Merge branch 'master' of https://github.com/qutebrowser/qutebrowser
2018-05-09 14:37:27 +02:00
Joakim Särehag
0e756d2f68
changes to pull request 3864, window.print for webengine
2018-05-09 14:36:03 +02:00
Florian Bruhin
48c44e1b4d
Fix and update docs
2018-05-08 15:22:49 +02:00
Florian Bruhin
20efaeff19
Improve configuration docs
2018-05-08 14:57:56 +02:00
Florian Bruhin
d194a8ddb0
Merge pull request #3898 from qutebrowser/pyup-scheduled-update-2018-05-07
...
Scheduled weekly dependency update for week 18
2018-05-08 14:21:23 +02:00
Florian Bruhin
c8d539a4c6
Update changelog
2018-05-08 11:46:07 +02:00
Florian Bruhin
8531f89ca3
Merge remote-tracking branch 'origin/pr/3789'
2018-05-08 11:45:20 +02:00
Florian Bruhin
4fee9b9637
Update changelog
2018-05-08 11:44:06 +02:00
Florian Bruhin
89a1c43b4c
Merge remote-tracking branch 'origin/pr/3790'
2018-05-08 11:43:30 +02:00
Florian Bruhin
a39858c436
Update changelog
2018-05-08 11:41:14 +02:00
Florian Bruhin
b718c8b43a
Merge remote-tracking branch 'origin/pr/3899'
2018-05-08 11:40:43 +02:00
Florian Bruhin
b28bfbe8f5
Update docs
2018-05-08 11:39:35 +02:00
Florian Bruhin
70c7a42a63
Merge remote-tracking branch 'origin/pr/3900'
2018-05-08 11:37:52 +02:00
Florian Bruhin
648b1219a2
Filter flake8-builtins 1.4.0
...
See https://github.com/gforcada/flake8-builtins/issues/36
2018-05-08 11:34:17 +02:00
Florian Bruhin
d005088b6b
Add missing fake_args fixture
2018-05-08 11:26:45 +02:00
Jay Kamat
906da44d70
Simplify visited link clearing by looping over connections
2018-05-07 14:10:20 -07:00
Jay Kamat
ca48f9f100
Clear url from visitedLinks if a single url is deleted
2018-05-07 13:48:38 -07:00
Jay Kamat
d0b2360745
Clear visited links db when running :history-clear on webengine
2018-05-07 13:35:41 -07:00
Pol Van Aubel
f1b481dcc7
Short options for --debug and --debug-flags
2018-05-07 22:35:32 +02:00
Pol Van Aubel
431a52da6c
Short options for --basedir and --temp-basedir
2018-05-07 22:10:08 +02:00
pyup-bot
b109fc569f
Update pytest-mock from 1.9.0 to 1.10.0
2018-05-07 18:39:22 +02:00
pyup-bot
fcd98443f9
Update flask from 1.0.1 to 1.0.2
2018-05-07 18:39:21 +02:00
pyup-bot
e455d8c13a
Update pep8-naming from 0.5.0 to 0.6.1
2018-05-07 18:39:19 +02:00
pyup-bot
d4e5a2eb7f
Update flake8-builtins from 1.3.1 to 1.4.0
2018-05-07 18:39:18 +02:00
pyup-bot
a4424f2863
Update attrs from 17.4.0 to 18.1.0
2018-05-07 18:39:17 +02:00
pyup-bot
9e33f1a275
Update attrs from 17.4.0 to 18.1.0
2018-05-07 18:39:15 +02:00
pyup-bot
470c392ee0
Update attrs from 17.4.0 to 18.1.0
2018-05-07 18:39:13 +02:00
Florian Bruhin
b9fc068af5
Add a log-requests debug-flag
2018-05-07 10:23:56 +02:00
Florian Bruhin
7762017f00
Release v1.3.0
2018-05-03 19:25:04 +02:00
Florian Bruhin
2ba40acf74
Update changelog for v1.3.0
2018-05-03 19:25:04 +02:00
Florian Bruhin
388c155ebb
Add test for #3753
2018-05-03 18:02:20 +02:00
Florian Bruhin
adf2f9860d
Disable spellcheck when it's unneeded.
...
Fixes #3753
2018-05-03 17:58:56 +02:00
Florian Bruhin
f528a5dd21
Update changelog
2018-05-03 17:56:24 +02:00
Florian Bruhin
f0f1a4a1d1
Merge remote-tracking branch 'origin/pr/3702'
2018-05-03 17:56:03 +02:00
Florian Bruhin
ae295a7f65
Call setFocus() when navigating
...
See #3661 :
https://github.com/qutebrowser/qutebrowser/issues/3661#issuecomment-386308601
This doesn't seem to fully fix this, but at least the top four failed tests
there...
This should not regress #3872 . Might affect #3834 in some way.
2018-05-03 17:43:19 +02:00
Jay Kamat
2663feea2f
Add :hint inputs --first as a default binding to gi
2018-05-03 11:37:31 -04:00
Florian Bruhin
68794cc2e2
Revert "Always set FocusOnNavigationEnabled"
...
This reverts commit fa41af63b6 .
See #3661
Fixes #3872
2018-05-03 15:25:41 +02:00
Florian Bruhin
acdf0a1c60
Call _handle_search before leaving the mode
2018-05-03 15:23:45 +02:00
Florian Bruhin
626abd3c83
Fix lint
2018-05-03 15:18:21 +02:00
Florian Bruhin
979b7cfaba
Add a stop-gap solution for AssertionError when retrying downloads
...
See #3847
2018-05-03 14:52:10 +02:00
bitraid
1e5b325ea5
Move file_version_info.txt to misc/ and add it to .gitignore
2018-05-03 15:50:18 +03:00
Florian Bruhin
2b6b4e82a7
Handle event_target() being None
...
As a stop-gap solution for #3888
2018-05-03 14:45:55 +02:00
Florian Bruhin
80778a9ff3
Update changelog
2018-05-03 14:04:56 +02:00
Florian Bruhin
6eb8284fe0
Refactor handling search in command.py
2018-05-03 14:04:56 +02:00
Florian Bruhin
49bdcd5a97
Merge remote-tracking branch 'origin/pr/3796'
2018-05-03 13:58:26 +02:00
Florian Bruhin
106e591a36
Refactor matching of Greasemonkey scripts
2018-05-03 13:53:10 +02:00
Florian Bruhin
a70f864ff5
Update changelog
2018-05-03 13:33:53 +02:00
Florian Bruhin
4932cc4d24
Merge remote-tracking branch 'origin/pr/3804'
2018-05-03 13:33:08 +02:00
Florian Bruhin
2b5f133726
Update changelog
2018-05-03 13:23:30 +02:00
Florian Bruhin
5436e27e41
Merge remote-tracking branch 'origin/pr/3756'
2018-05-03 13:21:45 +02:00
Florian Bruhin
4adf10a2f2
Update changelog
2018-05-03 09:13:48 +02:00
Florian Bruhin
b80fa7a197
Merge remote-tracking branch 'origin/pr/3858'
2018-05-03 09:13:31 +02:00
Florian Bruhin
3cc790afb3
Update changelog
2018-05-03 09:10:14 +02:00
Florian Bruhin
91aa9f6c0c
Merge remote-tracking branch 'origin/pr/3884'
2018-05-03 09:09:27 +02:00
Florian Bruhin
d6cacdb42f
Merge pull request #3876 from qutebrowser/pyup-scheduled-update-2018-04-30
...
Scheduled weekly dependency update for week 17
2018-05-02 16:22:25 +02:00
Jimmy
19554ba4a1
Update PyPI api URL.
...
Flask 1.0 is out, pip made breaking changes, warehouse is a thing, new
requests soon. So
much fun in python world lately.
2018-05-02 23:08:51 +12:00
toofar
d16d9e403a
Make HTTPClient follow redirects by default.
...
Closes #3875
The autoupdator, which uses `qutebrowser.misc.httpclient` has been failing recently because the URL that it hits to check version information is now serving a 301 moved permanently. By default QNetworkRequest doesn't follow redirects so it was getting back a (non-json, despite the request) body pointing to the new location, instead or version information. This changes fixes that by changing HTTPClient to use a QNetworkRequest subclass which follows redirects by default.
It lookes like HTTPClient is currently only used in autoupdate.py, version.py, and crashdialog.py so I don't expect any breakage.
5.6-5.8 Only had a boolean setting available which allows redirects, but not from the https scheme to http, 5.9 introduces a more nuanced setting. I have tested locally on 5.7.1 and 5.10.
2018-05-02 23:08:51 +12:00
pyup-bot
432d666d25
Update pytest from 3.5.0 to 3.5.1
2018-04-30 18:29:17 +02:00
pyup-bot
1c3ee0db20
Update flask from 0.12.2 to 1.0.1
2018-04-30 18:29:16 +02:00
pyup-bot
bdc0c0ddc1
Update setuptools from 39.0.1 to 39.1.0
2018-04-30 18:29:14 +02:00
pyup-bot
b9c8a79f10
Update flake8-builtins from 1.3.0 to 1.3.1
2018-04-30 18:29:13 +02:00
cryzed
801e9e0334
qute-pass: Improve fake_key_raw()
2018-04-29 15:22:52 +02:00
Joakim Särehag
199eac2db8
window.print() support for WebEngine
2018-04-24 14:05:53 +02:00
Florian Bruhin
cfa5ee2835
Merge pull request #3862 from qutebrowser/pyup-scheduled-update-2018-04-23
...
Scheduled weekly dependency update for week 16
2018-04-24 11:32:56 +02:00
Florian Bruhin
9c6437b3b9
Update comment
2018-04-24 09:53:41 +02:00
Florian Bruhin
486488e2cd
Filter pycodestyle 2.4.0 for pyup
...
See https://github.com/PyCQA/pycodestyle/issues/741
2018-04-24 09:48:47 +02:00
Florian Bruhin
b4f877d991
Update changelog
2018-04-24 09:44:54 +02:00
cryzed
92aedf84f5
qute-pass: Don't use f-strings
2018-04-23 19:16:51 +02:00
cryzed
6825dfb8d8
qute-pass: Fake strings letter-by-letter to avoid issues
2018-04-23 19:01:12 +02:00
pyup-bot
d6c6014b85
Update pytest-mock from 1.8.0 to 1.9.0
2018-04-23 18:24:29 +02:00
pyup-bot
c1ac1d702f
Update hypothesis from 3.55.1 to 3.56.5
2018-04-23 18:24:27 +02:00
pyup-bot
9e50b7afcc
Update cheroot from 6.1.2 to 6.2.4
2018-04-23 18:24:25 +02:00
pyup-bot
1388880e7b
Update github3.py from 1.0.2 to 1.1.0
2018-04-23 18:24:24 +02:00
pyup-bot
30d60ea740
Update github3.py from 1.0.2 to 1.1.0
2018-04-23 18:24:22 +02:00
pyup-bot
28cac01a1f
Update pycodestyle from 2.3.1 to 2.4.0
2018-04-23 18:24:21 +02:00
pyup-bot
1689cb09f8
Update flake8-builtins from 1.2.2 to 1.3.0
2018-04-23 18:24:19 +02:00
pyup-bot
286c71a48a
Update certifi from 2018.1.18 to 2018.4.16
2018-04-23 18:24:18 +02:00
pyup-bot
c073234a8d
Update certifi from 2018.1.18 to 2018.4.16
2018-04-23 18:24:16 +02:00
pyup-bot
8c286412cb
Update certifi from 2018.1.18 to 2018.4.16
2018-04-23 18:24:15 +02:00
pyup-bot
b3cef948b0
Update check-manifest from 0.36 to 0.37
2018-04-23 18:24:13 +02:00
Florian Bruhin
fa41af63b6
Always set FocusOnNavigationEnabled
...
This fixes some focus issues after Qt 5.11 changes. There might be better ways
to solve them, but for now, this will work.
See https://codereview.qt-project.org/#/c/221408/10 and #3661 :
https://github.com/qutebrowser/qutebrowser/issues/3661#issuecomment-375969315
Might also negatively affect #3834 as it essentially reintroduces QTBUG-52999 on
any Qt version: https://bugreports.qt.io/browse/QTBUG-52999
Might be reverted at a later date, but for now, I want an easy way to make tests
work on Qt 5.11 to spot further issues.
2018-04-23 16:57:10 +02:00
Florian Bruhin
e789296b7f
Handle new focus object for Qt 5.11
...
See https://codereview.qt-project.org/#/c/221408/10 and #3661 :
https://github.com/qutebrowser/qutebrowser/issues/3661#issuecomment-375969315
2018-04-23 16:54:47 +02:00
Florian Bruhin
bc9a8dd63f
Handle focusProxy being None
...
This fixes running with Qt 5.11
See https://codereview.qt-project.org/#/c/221408/10 and #3661 :
https://github.com/qutebrowser/qutebrowser/issues/3661#issuecomment-375969315
2018-04-23 16:52:53 +02:00
Florian Bruhin
6640768860
Enable libGL workaround on any system where it's available
...
Fixes #3772
2018-04-23 11:20:56 +02:00
bitraid
3f1041eb0a
gen_versioninfo.py: remove unused import, rename most variables and reformat
2018-04-22 20:35:34 +03:00
Michal Siedlaczek
c94ea5f8d4
Merge remote-tracking branch 'upstream/master' into filter-dict-names
...
Merging to investigate failed tests that seem unrelated to the PR.
2018-04-21 13:29:18 -04:00
Michal Siedlaczek
e2d249541d
Fix test function comment
2018-04-21 12:33:10 -04:00
cryzed
2de6428830
qute-pass: Also escape backslashes in the username
2018-04-20 18:23:50 +02:00
cryzed
c2472d88f1
qute-pass: Escape backslashes, so that they are inserted correctly
2018-04-20 18:21:55 +02:00
bitraid
8c16d81d89
Pyinstaller: add VERSIONINFO resource to Windows executables.
2018-04-20 17:48:51 +03:00
Jay Kamat
1d2dd5bf55
Use CommandDispatcher directly for / searches
2018-04-19 21:16:33 -04:00
rr-
537aa22d64
Change clipboard mocking
2018-04-18 11:00:05 +02:00
rr-
30d3612a17
Add test for rapid yanking
2018-04-18 10:59:54 +02:00
Florian Bruhin
178eeaed0d
Update changelog
2018-04-17 07:49:10 +02:00
Florian Bruhin
f1967718b7
Merge remote-tracking branch 'origin/pr/3791'
2018-04-17 07:48:46 +02:00
Jay Kamat
cbb246fd0b
Update tests for new implementation
2018-04-16 23:28:32 -04:00
Jay Kamat
646e92707a
Call search command directly instead of using arguments
2018-04-16 23:15:56 -04:00
Florian Bruhin
1021c3a330
Merge remote-tracking branch 'origin/pr/3826'
2018-04-16 17:26:59 +02:00
Florian Bruhin
ec57e58530
Update changelog
2018-04-16 17:21:42 +02:00
Florian Bruhin
06a8a68fcb
Merge remote-tracking branch 'origin/pr/3844'
2018-04-16 17:21:13 +02:00
Florian Bruhin
4a78519b63
Mark opening/closing window via JS test as flaky
2018-04-16 17:14:47 +02:00
Florian Bruhin
d2207f66f1
Skip test_set_error entirely
...
See #3771
2018-04-16 17:14:14 +02:00
Florian Bruhin
23d4d72f3b
Update changelog
2018-04-16 17:05:10 +02:00
Florian Bruhin
4a93389356
Merge remote-tracking branch 'origin/pr/3813'
2018-04-16 17:04:53 +02:00
Sebastian Heinlein
3704e3ddd5
Fix DESTDIR and PREFIX in makefile
2018-04-16 13:44:22 +02:00
rr-
563d9bd097
Fix crash in non-rapid link yanking
2018-04-16 08:52:06 +02:00
Florian Bruhin
643bf4bc20
Remove 32-bit check in build_release.py
...
This is probably not needed anymore, see #3842
2018-04-16 08:33:01 +02:00
Florian Bruhin
b89b38fd3c
Use latest release of PyInstaller
...
This is as a stop-gap solution for #3842 .
2018-04-16 08:28:24 +02:00
Jimmy
c5334fb683
Greasemonkey: use UrlPatterns for match directives
...
The greasemonkey `@match` directive is used to match urls against
chromium url patterns (as opposed to `@include` which treats its
argument as a glob expression). I was using fnmatch for both here
because I am lazy and knew someone else was going to implement chromium
url patterns for me eventually. Now it is done and I should switch to
using them instead. The most common failing case that this will fix is
something matching on `*://*.domain.com/*` because it wouldn't match
the url with no subdomain.
This codepath is only used on webengine 5.7.1 and webkit backends.
2018-04-14 10:31:20 +12:00
Jay Kamat
0829511221
Merge pull request #3803 from toofar/fix/greasemonkey_includes_fallback
...
Greasemonkey: fix default include value
2018-04-13 18:26:46 -04:00
Jay Kamat
48b865073c
Update changelog
2018-04-13 12:21:12 -04:00
Jay Kamat
3f9099613b
Merge pull request #3807 from slackhead/tabs.mute_messages
...
Add option to mute the Last Tab/First Tab messages when tabs.wrap is false
2018-04-13 12:11:45 -04:00
rr-
d705e600e2
Simplify num in hinting to first_run
2018-04-13 11:03:39 +02:00
Jay Kamat
77fa0730c8
Merge pull request #3802 from jgkamat/jay/tab-take-completion
...
Fix win_id 0 always being included in :tab-take completion
2018-04-10 16:24:48 -04:00
rr-
46e4aeb3e9
Don't hardcode newline
2018-04-10 08:45:23 +02:00
Jay Kamat
ed76d689b0
Add test for completing other buffer excluding id0
2018-04-10 02:45:12 -04:00
pyup-bot
ca311f8588
Update tox from 2.9.1 to 3.0.0
2018-04-09 18:13:31 +02:00
pyup-bot
849e427231
Update pytest-mock from 1.7.1 to 1.8.0
2018-04-09 18:13:29 +02:00
pyup-bot
9e628901e9
Update pytest-bdd from 2.20.0 to 2.21.0
2018-04-09 18:13:27 +02:00
pyup-bot
28126055da
Update py-cpuinfo from 3.3.0 to 4.0.0
2018-04-09 18:13:26 +02:00
pyup-bot
3d75d86123
Update hypothesis from 3.52.0 to 3.55.1
2018-04-09 18:13:24 +02:00
pyup-bot
03ea07e99f
Update cheroot from 6.0.0 to 6.1.2
2018-04-09 18:13:23 +02:00
pyup-bot
780ced8a52
Update pylint from 1.8.3 to 1.8.4
2018-04-09 18:13:21 +02:00
pyup-bot
fc33b065c2
Update astroid from 1.6.2 to 1.6.3
2018-04-09 18:13:20 +02:00
pyup-bot
03b7459b00
Update github3.py from 1.0.1 to 1.0.2
2018-04-09 18:13:18 +02:00
pyup-bot
f964bf1b67
Update github3.py from 1.0.1 to 1.0.2
2018-04-09 18:13:17 +02:00
pyup-bot
ef2a2702f5
Update wheel from 0.30.0 to 0.31.0
2018-04-09 18:13:15 +02:00
pyup-bot
6374b6dd4c
Update flake8-builtins from 1.1.1 to 1.2.2
2018-04-09 18:13:14 +02:00
rr-
945bc44550
Support rapid hinting mode in yanking
2018-04-09 17:20:35 +02:00
toofar
69d642cab8
Merge pull request #3792 from toofar/fix/gm_addstyle_earlyload
...
Greasemonkey: fix early GM_addStyle with fast sites.
Seems to be a working fix, despite noone having clarity on what is the ideal approach.
2018-04-09 19:11:10 +12:00
Slackhead
62aa9bdbb3
Added debug() logging for next/prev-tab and test scenarios
2018-04-09 02:03:02 +01:00
Florian Bruhin
e35c91043e
pyinstaller: Use '.' as path for git-commit-id
...
See #384
2018-04-08 20:46:43 +02:00
Slackhead
fac546e9b4
Remove test scenarios for last/first tab when wrap is off
2018-04-08 18:56:16 +01:00
Jay Kamat
b74ddc3493
Merge pull request #3820 from AlvaroLuken/master
...
Added surrounding gray box to launch command for Ubuntu + Tox
2018-04-08 13:39:16 -04:00
Slackhead
b7964d9baf
Remove first/last tab messages
2018-04-08 10:31:12 +01:00
Jay Kamat
76dbfa7305
Allow searching for double semicolons
...
Possibly breaks scripts using :search with ;; to split commands. A
workaround is to put the :search command at the end.
2018-04-05 17:20:50 -04:00
AlvaroLuken
feb2f99ea9
Added surrounding gray box to launch command for Ubuntu + Tox
2018-04-05 11:22:38 -04:00
Jay Kamat
d0d5ad2eda
Stop read timer when download is cancelled
2018-04-04 01:17:37 -04:00
Slackhead
eb18f0a2ac
Adjust the help docs entry
2018-04-03 17:49:51 +01:00
Slackhead
39c08cb582
Add option to mute the Last Tab/First Tab messages when tabs.wrap is false
2018-04-03 16:27:04 +01:00
Jimmy
164ea98a5b
Greasemonkey: fix default include value
...
Greasemonkey scripts are supposed to default to running on all pages.
@jgkamat and @nemanjan00 repurted some script not running on all pages
unless they either removed (or broke) the metadata block or added an
include directive. Indeed I had a logic error when it only defaulted to
being included on all pages when no metadata block at all was included.
Whoops.
2018-04-03 20:11:15 +12:00
Jay Kamat
3b2c0823af
Fix win_id 0 always being included in :tab-take completion
2018-04-02 20:34:34 -04:00
Jay Kamat
9ad6cef369
Add a test for leading arguments
2018-04-01 21:00:02 -04:00
Jay Kamat
423192e9c9
Join text arguments for :search
2018-04-01 21:00:02 -04:00
Florian Bruhin
79823a9a0b
Regenerate docs
2018-04-01 13:22:01 +02:00
Jimmy
1c0616f3ec
Greasemonkey: fix early addstyle with fast sites.
...
nemanjan00 reported this script not having any effect da850e49cc/duckduckgo-deepdark.user.js
It turns out that the previous implementation of GM_addStyle was relying
on `document.onreadystatechange` when the script ran early enough that
there was no `head` element. That event wasn't getting fired for the
main frame of duckduckgo.com for whatever reason. Maybe using
`DOMContentLoaded` or something would have worked but I just copied the
fallback in the above linked script which seems to work just fine.
2018-04-01 12:38:48 +12:00
Ryan Roden-Corrent
bca07eebba
Unit-test configmodel arg filtering.
...
Test that values the user has already input are omitted from the
suggestions. This brings configmodel coverage back to 100%.
2018-03-31 18:55:54 -04:00
pylipp
599a3d75a4
Add userscript to download bibtex for DOI scraped from current tab
2018-03-31 21:43:20 +02:00
Ryan Roden-Corrent
707fc1176d
Regen completion if args change.
...
Allow completion functions to react dynamically to args as the user
inputs them. This allows config-cycle to filter out values that were
already provided.
Args provided after the maxsplit do not cause the completion to regen.
For example, successive words typed after `:open` just set the filter
pattern and do not spuriously regenerate the completion model.
2018-03-31 11:45:50 -04:00
Jay Kamat
cb8a75577e
Add tests for hinting with --first
2018-03-30 15:03:08 -04:00
Jay Kamat
3d5d679561
Add basic implementation for clicking first hinted element
2018-03-30 15:03:08 -04:00
Florian Bruhin
6151d077e5
Update changelog
2018-03-30 11:49:39 +02:00
Florian Bruhin
d438aa15fa
Simplify setting _qute_script_id
2018-03-30 11:48:06 +02:00
Jay Kamat
7f5a79cdfd
Escape strings with string_escape rather than tojson
2018-03-30 01:40:49 -04:00
Florian Bruhin
5bc794f85a
Update changelog
2018-03-28 21:11:20 +02:00
Florian Bruhin
d7455bcdba
Merge remote-tracking branch 'origin/pr/3765' into adblock
2018-03-28 20:32:47 +02:00
Florian Bruhin
0b667e4701
Merge remote-tracking branch 'origin/pr/3763' into adblock
2018-03-28 20:32:39 +02:00
Michal Siedlaczek
d606cd5550
spell test formatting and docstrings
2018-03-28 14:13:46 -04:00
Michal Siedlaczek
7c1de99876
Fix test coverage
2018-03-28 12:16:50 -04:00
George Edward Bulmer
2789bec1e7
Modify assert_url to treat localhost differently
2018-03-28 14:27:17 +01:00
George Edward Bulmer
1ccb464d1c
Return removed comment about hosts format
2018-03-28 14:17:13 +01:00
Florian Bruhin
758ea8b171
Update changelog
2018-03-28 09:36:32 +02:00
Florian Bruhin
32568a6da4
Simplify tests
2018-03-28 09:33:27 +02:00
Florian Bruhin
14792472db
Merge remote-tracking branch 'origin/pr/3680'
2018-03-28 09:29:54 +02:00
Florian Bruhin
005fa8b675
Fix newline
2018-03-28 09:14:26 +02:00
Florian Bruhin
c7e5033eaa
Set MainWindow as parent of TabbedBrowser
...
If we close the MainWindow (and it gets deleted), we need to make sure to delete
the TabbedBrowser as well.
Fixes #3781
2018-03-28 08:58:07 +02:00
Florian Bruhin
a828851640
Update recommended Qt version in readme
2018-03-28 08:48:18 +02:00
Jay Kamat
b873cfb18a
Fix style issues in qute-keepass
2018-03-27 23:43:40 -04:00
Jussi Timperi
046a3dc159
Add option to only show favicons for pinned tabs
...
Closes #3440
2018-03-28 00:45:57 +03:00
Florian Bruhin
68b707c749
Update changelog
2018-03-27 12:01:42 +02:00
Florian Bruhin
9cff0e7367
Merge remote-tracking branch 'origin/pr/3742'
2018-03-27 12:01:18 +02:00
Florian Bruhin
7e66c3cf46
Update changelog
2018-03-27 11:11:34 +02:00
Florian Bruhin
bf4aab79ac
Merge remote-tracking branch 'origin/pr/3751'
2018-03-27 11:11:12 +02:00
Florian Bruhin
a6f6fdf19b
Update docs
2018-03-27 11:09:18 +02:00
Florian Bruhin
e5ffcbd49f
Merge remote-tracking branch 'origin/pr/3750'
2018-03-27 11:07:29 +02:00
Florian Bruhin
730347e449
Merge branch 'pyup-scheduled-update-2018-03-26'
2018-03-27 10:27:59 +02:00
Florian Bruhin
55112b52e0
Merge remote-tracking branch 'origin/pr/3776'
2018-03-27 10:25:41 +02:00
Florian Bruhin
2249a88e3a
Make test_simple_js_webengine work correctly
2018-03-27 07:29:43 +02:00
Florian Bruhin
6dbd6d1ddf
Move test_qt_javascript.py
2018-03-27 07:14:05 +02:00
Florian Bruhin
6ecea8ef17
Revert accidental changes to test_qt_javascript.py
2018-03-27 07:13:17 +02:00
Florian Bruhin
021bb25622
Add regenerating website to contributing.asciidoc
...
[ci skip]
(cherry picked from commit 9f95736bbe4a00c9cc4a8b222ab3dc55d6bdf96c)
2018-03-26 22:53:46 +02:00
Florian Bruhin
22e887045b
Remove flake8-builtins filter
2018-03-26 18:27:15 +02:00
pyup-bot
4896765fcc
Update virtualenv from 15.1.0 to 15.2.0
2018-03-26 18:17:25 +02:00
pyup-bot
d98590d712
Update pytest-faulthandler from 1.4.1 to 1.5.0
2018-03-26 18:17:23 +02:00
pyup-bot
496e6fc624
Update pytest from 3.4.2 to 3.5.0
2018-03-26 18:17:22 +02:00
pyup-bot
55a818b156
Update py from 1.5.2 to 1.5.3
2018-03-26 18:17:20 +02:00
pyup-bot
85be0f2801
Update py from 1.5.2 to 1.5.3
2018-03-26 18:17:19 +02:00
pyup-bot
b7b4cc7f31
Update hypothesis from 3.50.0 to 3.52.0
2018-03-26 18:17:17 +02:00
pyup-bot
056a901da0
Update python-dateutil from 2.7.0 to 2.7.2
2018-03-26 18:17:16 +02:00
pyup-bot
ba9b166962
Update python-dateutil from 2.7.0 to 2.7.2
2018-03-26 18:17:15 +02:00
pyup-bot
edf2652431
Update flake8-builtins from 1.0.post0 to 1.1.1
2018-03-26 18:17:13 +02:00
Florian Bruhin
6755e17630
Update changelog
2018-03-26 10:54:15 +02:00
Florian Bruhin
d4899240de
Break long lines
2018-03-26 10:51:04 +02:00
Florian Bruhin
ddbb6b5198
Merge remote-tracking branch 'origin/pr/3769'
2018-03-26 10:45:31 +02:00
Florian Bruhin
1087ce075d
Merge remote-tracking branch 'origin/pr/3767'
2018-03-26 10:45:23 +02:00
Ryan Roden-Corrent
f237a87ad0
Completion for varargs.
...
When a command has positional varargs, keep offering the configured
completion for each successive argument.
Right now this only influences `config-cycle`.
Previously, `config-cycle <option> ` would offer a value completion for
only the first argument after the option. Now it will keep offering
value completion for each successive argument.
This will be useful for passing multiple tags to the new bookmark
commands that will be added for #882 .
2018-03-25 21:59:30 -04:00
Philip Lewis
cecb79cf05
Fix keyhints for special characters
...
`prefix` is a string and `seq` is a key sequence, so removing `len(prefix)`
items from `seq` will remove too many if `prefix` contains a special character
(ex "<Ctrl+x>"). Remove the number of characters from `str(seq)` instead.
2018-03-25 15:18:02 -04:00
Florian Bruhin
d4ea1df232
Improve window_open.html tests
2018-03-25 19:56:48 +02:00
Florian Bruhin
91ca7d0911
tests: Rename close function in window_open.html
...
Naming it close() conflicts with the global JS close()
2018-03-25 19:39:34 +02:00
bitraid
68e3ad6cba
Pyinstaller: don't use upx
2018-03-25 19:43:59 +03:00
Florian Bruhin
12a405965a
Make QtWebEngine inspector work with JS disabled
2018-03-25 14:55:03 +02:00
George Edward Bulmer
a85ac1725f
Missing fullstop in a docstring
2018-03-24 22:56:47 +00:00
George Edward Bulmer
eb5684e5f7
Pylint fix
2018-03-24 21:52:26 +00:00
George Edward Bulmer
b9bcad9c14
Grammar change
2018-03-24 21:13:22 +00:00
George Edward Bulmer
64b01cc076
Remove extraneous part
2018-03-24 21:10:23 +00:00
George Edward Bulmer
1380fef600
Add test for parsing multiple lines
2018-03-24 21:08:55 +00:00
George Edward Bulmer
8809ef02a1
Add support for more than 1 host on a given line
2018-03-24 20:20:16 +00:00
George Edward Bulmer
3f37fcf8fa
Modify tests, localhost should never be blocked
2018-03-24 20:15:34 +00:00
George Edward Bulmer
c8db9e1c76
Remove WHITELISTED, making file parsing satisfy:
...
1) 'dotless' hosts, e.g. localhost, cannot be blocked by a file
2) hosts ending in '.localdomain' cannot be blocked by a file
2018-03-24 19:42:34 +00:00
George Edward Bulmer
01d8314dd8
Change default blocklist to StevenBlack combined
2018-03-24 18:35:03 +00:00
rien333
fa21d280fa
Remove unnecessary hide operation
2018-03-24 05:09:03 +01:00
rien333
e211801e16
Handle wayland decoration option rename through configdata.yml
2018-03-23 15:24:18 +01:00
rien333
6db1ab0a58
Cosmetic changes
2018-03-23 15:21:02 +01:00
rien333
aa70395925
Merge branch 'master' of https://github.com/rien333/qutebrowser
2018-03-23 15:19:58 +01:00
rien333
880b33fff5
Restore correct window visibility after decoration config change
2018-03-23 15:19:37 +01:00
Florian Bruhin
f1789effdc
Stabilize navigate.feature on Qt 5.11
...
Looks like we get qute://help as URL from the previous test otherwise?
See #3661
2018-03-23 10:29:25 +01:00
Florian Bruhin
e095f64eb6
Merge remote-tracking branch 'origin/pr/3752'
2018-03-23 08:25:59 +01:00
Florian Bruhin
06df88075e
Merge remote-tracking branch 'origin/pr/3749'
2018-03-23 08:25:49 +01:00
Florian Bruhin
00bdb60627
Ignore "Dropping message on closed channel." message
...
This seems to happen with this test in tabs.feature with Qt 5.11:
Scenario: :buffer with wrong argument (-1)
It only happens ~1/50 times though, and seems like some Qt bug.
See #3661
2018-03-23 07:59:46 +01:00
rien333
1fc0abb064
Delete .#configfiles.py
2018-03-23 02:50:36 +01:00
Jay Kamat
a1776087e0
Fix login when only one entry is available
2018-03-22 21:35:00 -04:00
Jay Kamat
948866f4f2
Add support for keepass keyfiles
2018-03-22 21:21:59 -04:00
rien333
e2250d65e9
Merge branch 'master' of git://github.com/qutebrowser/qutebrowser
2018-03-23 01:43:23 +01:00
rien333
bb0c79b5a2
Fix wayland test
2018-03-23 01:38:45 +01:00
rien333
ff299c87a8
Reinsert wayland specific code for toggling decoration visibility
2018-03-22 23:32:37 +01:00
rien333
2d2bdad2ca
Do not require restart after decoration option change
2018-03-22 23:26:45 +01:00
Jay Kamat
07d043fe81
Add basic tests for tab width sizing
2018-03-22 14:27:33 -04:00
Jay Kamat
477da6002a
Fix minimum size for vertical tabs
2018-03-22 12:59:35 -04:00
Jay Kamat
d2c01d7ee6
Always display plain titles in tab tooltips
...
Closes #3741
2018-03-22 12:03:15 -04:00
Florian Bruhin
b67a031151
Rephrase autoconfig.yml docs
...
[ci skip]
2018-03-22 08:37:12 +01:00
Jay Kamat
a9a7f5da45
Fix choking on passwords with <x> syntax in them
2018-03-22 03:01:50 -04:00
Jay Kamat
b169a1c802
Add raw first draft of qute-keepass
...
This needs a lot more work...
2018-03-22 02:43:15 -04:00
rien333
764e79e505
Small refactor
2018-03-22 03:44:24 +01:00
rien333
7b7faa9f66
Fix silly redefinition
2018-03-22 03:42:57 +01:00
rien333
a6b92dbbd3
General window decoration hiding option
2018-03-22 02:23:21 +01:00
bitraid
4fb940241c
Add 32bit color for Windows icon
2018-03-21 23:13:26 +02:00
George Edward Bulmer
51f9464eb2
Add test for hints with numberpad numbers
2018-03-21 17:06:13 +00:00
George Edward Bulmer
0645865d22
Add test case for is_special in keyutils
2018-03-21 16:38:58 +00:00
George Edward Bulmer
991ba54499
Change the formatting of the numpad keys
...
This makes it consistent with as before
2018-03-21 15:41:08 +00:00
George Edward Bulmer
1cf3d66a22
Revert test and modify returned key
2018-03-21 15:34:32 +00:00
Florian Bruhin
300d873b18
Update Debian install instructions
...
Supersedes #3707
Fixes #3737
[ci skip]
2018-03-21 10:55:54 +01:00
Florian Bruhin
a8bbd5fa4d
Update docs for TimestampTemplate
2018-03-21 10:14:48 +01:00
Florian Bruhin
2d655a7230
Update changelog
2018-03-21 08:27:09 +01:00
George Edward Bulmer
4d7f8e4878
Pylint fix
2018-03-21 00:28:52 +00:00
George Edward Bulmer
bc885cc9ee
Modify the keypad test
...
The new behaviour is for the keypad to yield its usual key,
such that instead of a special <Num+2> keypress, it yields <2>
2018-03-20 23:19:36 +00:00
George Edward Bulmer
a5dc8a3025
Fix crash in string representation of key
2018-03-20 23:13:56 +00:00
George Edward Bulmer
d6463d5ade
Remove Qt.KeypadModifier as a special key
2018-03-20 22:33:11 +00:00
bitraid
7601e58c81
Merge remote-tracking branch 'upstream/master'
2018-03-20 23:54:18 +02:00
Ryan Roden-Corrent
16bda94e2b
Remove unused import and TODO from urlmarks test.
2018-03-20 21:41:19 +00:00
Ryan Roden-Corrent
5a20052bce
Add unit tests for urlmarks.
2018-03-20 21:41:19 +00:00
bitraid
e316f1768e
More compatible icon for Windows
...
Fixes #3601
2018-03-20 23:28:42 +02:00
Florian Bruhin
11696f0073
Fix test_configinit
2018-03-20 22:16:16 +01:00
Florian Bruhin
f9d976880e
Disable shared web workers on Qt < 5.11
2018-03-20 21:14:04 +01:00
Florian Bruhin
a5f1022330
Log document.body in JS tests
2018-03-20 11:56:46 +01:00
Florian Bruhin
85d3d4baba
Mark test_set_error as flaky
2018-03-20 10:25:03 +01:00
Florian Bruhin
561295238d
Another try at stabilizing test_set_error
2018-03-20 08:58:48 +01:00
Florian Bruhin
0e670a597e
Update docs
2018-03-20 08:53:59 +01:00
Florian Bruhin
0fd3674d9e
Update changelog
2018-03-20 07:07:05 +01:00
Florian Bruhin
0ee9d73fe2
Merge remote-tracking branch 'origin/pr/3692'
2018-03-20 07:05:43 +01:00
Florian Bruhin
81827a3150
Try to stabilize stylesheet tests
2018-03-20 07:05:03 +01:00
Florian Bruhin
32145d579b
Merge branch 'pyup-scheduled-update-2018-03-19'
2018-03-20 07:00:37 +01:00
Florian Bruhin
f230fd3abb
Rebuild requirement files
2018-03-20 06:59:57 +01:00
Florian Bruhin
51318d66c8
Fix ignore for new flake8-per-file-ignores release
2018-03-20 06:55:05 +01:00
Florian Bruhin
59602ec5b5
requirements: Blacklist flake8-builtins 1.1.0
...
See https://github.com/gforcada/flake8-builtins/issues/19
2018-03-20 06:55:05 +01:00
Florian Bruhin
a374698693
Fix lint
2018-03-20 06:38:11 +01:00
Florian Bruhin
b56988f0a4
Update changelog
2018-03-20 06:27:48 +01:00
Florian Bruhin
32df91fbae
Merge remote-tracking branch 'origin/pr/3604'
2018-03-20 06:24:57 +01:00
Jay Kamat
f6c00babbe
Prevent minimumTabsizeHint from being called when booting on mac
...
Move workaround higher up to the start of tabSizeHint
2018-03-19 18:29:51 -04:00
Florian Bruhin
7eaad59be3
caret: Ignore None value from setInitialCursor
...
See #3583
2018-03-19 22:32:26 +01:00
Florian Bruhin
ea1e52ea7c
Load page before loading stylesheets
...
If we don't do this, when doing:
self.config_stub.val.content.user_stylesheets = css_path
then _update_stylesheet gets called before the stylesheet QWebEngineScript did
run (as there was no load yet), so we get:
[:2] Uncaught TypeError: Cannot read property 'stylesheet' of undefined!
Instead, load the page first and then update the stylesheet.
This tests that live updating works properly, and also makes sure we don't run
into the problem described above.
2018-03-19 21:44:47 +01:00
Florian Bruhin
b588f54a53
Fail javascript tests on logging messages
2018-03-19 20:43:55 +01:00
Florian Bruhin
9031b3e535
Remove @pyqtSlot for on_download_requested
...
For some reason, this breaks when test_pac is run...
2018-03-19 20:17:15 +01:00
Florian Bruhin
1162e640c5
Remove unused imports
2018-03-19 19:42:56 +01:00
Florian Bruhin
0ea7a1457d
Make test_position_caret work again
...
The tests only work properly with QtWebKit (and aren't needed on QtWebEngine).
Also, for some reason the scrolled_down tests only work without Xvfb.
2018-03-19 19:38:21 +01:00
Florian Bruhin
f5d7605ae0
Add a :scroll-to-anchor command
...
Fixes #2784
2018-03-19 19:18:33 +01:00
Florian Bruhin
e50068021d
Use signals to update statusbar in caret mode
...
This means we don't use objreg anymore to get the status bar, and also makes the
bar more accurately reflect reality.
See #3583
2018-03-19 18:44:06 +01:00
Florian Bruhin
460bd86579
Initial attempt at using the tab API for tests/unit/javascript
2018-03-19 18:18:21 +01:00
Florian Bruhin
e43f0a61b9
Move all QWebEngineScript related code out of webenginesettings
...
It looks like there's some issue with QWebEngineScript in a profile, at least
with older Qt versions...
See #3497 , #3377
2018-03-19 17:33:02 +01:00
pyup-bot
8eb4d15805
Update hypothesis from 3.49.0 to 3.50.0
2018-03-19 17:13:26 +01:00
pyup-bot
3b7e1b3fe2
Update pylint from 1.8.2 to 1.8.3
2018-03-19 17:13:25 +01:00
pyup-bot
650aa532cd
Update astroid from 1.6.1 to 1.6.2
2018-03-19 17:13:23 +01:00
pyup-bot
1f3fc756db
Update github3.py from 0.9.6 to 1.0.1
2018-03-19 17:13:22 +01:00
pyup-bot
2d5d485daf
Update github3.py from 0.9.6 to 1.0.1
2018-03-19 17:13:20 +01:00
pyup-bot
b77e43d74f
Update setuptools from 38.5.2 to 39.0.1
2018-03-19 17:13:18 +01:00
pyup-bot
5a26858e07
Update flake8-per-file-ignores from 0.5 to 0.6
2018-03-19 17:13:17 +01:00
pyup-bot
99ea4b98e8
Update flake8-builtins from 1.0.post0 to 1.1.0
2018-03-19 17:13:15 +01:00
Florian Bruhin
da8b6fb50a
Decrease maximum repetitions for QtWebEngine scrolling
...
At least for Qt debug builds, 5000 seems to be much too much.
See #3661
2018-03-19 14:11:01 +01:00
Florian Bruhin
33066af51d
Break long comment
2018-03-19 13:59:30 +01:00
Florian Bruhin
6a971e2846
Ignore OnDidStopLoading error message
...
See #3661 , https://bugreports.qt.io/browse/QTBUG-66661
2018-03-19 12:13:10 +01:00
Florian Bruhin
f28a39571c
Fix caret.js indent
2018-03-19 11:49:24 +01:00
Florian Bruhin
bee04a1eec
Wait until runner is finished in test_custom_env
...
This seems to at least lead to less warnings when running the test.
2018-03-19 11:43:08 +01:00
Florian Bruhin
39d25c1127
Update _chromium_version comment
...
[ci skip]
2018-03-19 11:15:19 +01:00
Florian Bruhin
07e831cee5
Update changelog
2018-03-19 10:28:25 +01:00
Florian Bruhin
b3342d8f70
Merge remote-tracking branch 'origin/pr/3728'
2018-03-19 10:28:04 +01:00
Florian Bruhin
6465d64738
Fix lint
2018-03-19 10:22:21 +01:00
Florian Bruhin
232fd19422
Fix unit tests after refactoring
2018-03-19 09:53:35 +01:00
Florian Bruhin
a4530797ea
Add a ProfileSetter class to webenginesettings
...
Easier than passing a profile around everywhere.
2018-03-19 09:40:57 +01:00
Florian Bruhin
1b84bbd61d
Refactor initialization of internal JavaScript
...
- Initialize JavaScript in webenginesettings.py instead of webenginetab.py
- Move JavaScript snippet into a .js file
- Make sure scripts can be re-run and do nothing if already run.
- Run scripts on DocumentCreation *and* DocumentReady. Closes #3717 .
- Give each script an unique name for debugging.
- Also make custom stylesheets work on chrome:// pages
2018-03-19 09:14:55 +01:00
Florian Bruhin
f2864c6253
Break greasemonkey_wrapper lines differently
2018-03-19 09:13:50 +01:00
Florian Bruhin
8ae3047f2a
Update changelog
2018-03-18 19:00:07 +01:00
Florian Bruhin
b154846bdc
Merge remote-tracking branch 'origin/pr/3733'
2018-03-18 18:59:41 +01:00
Florian Bruhin
8a3d9c0c01
Adjust ignored log messages for Qt 5.11
2018-03-18 18:58:29 +01:00
AlternateData
62d30fe589
use 0 and maxint as bounds
2018-03-18 10:06:41 +01:00
AlternateData
a52d18b700
Add correct maximum and minimum value for tabs.switching_delay
2018-03-17 17:59:31 +01:00
Marc Jauvin
b7159d780a
Merge 'origin/master' into tab-input-mode
2018-03-16 14:28:36 -04:00
Michal Siedlaczek
f9e702bae5
Warn about malformed dictionaries
2018-03-16 11:28:45 -04:00
gammelon
f57e47c742
Separate tests for _get_search_url
2018-03-16 11:42:51 +01:00
Bryan Bugyi
18146e2fbc
Fix: prevent unmatched quote ( #3726 )
2018-03-16 06:16:16 -04:00
Florian Bruhin
f7074b80d0
Fix lint
2018-03-16 09:07:25 +01:00
Bryan Bugyi
fa282d574d
Fix: preserve exit status of task command ( #3726 )
2018-03-16 03:44:22 -04:00
Bryan Bugyi
3b0b4ffe66
Fix: restrict output of task to one line ( closes #3726 )
2018-03-16 03:28:44 -04:00
Florian Bruhin
a6ce188e0d
Update changelog
2018-03-16 08:21:11 +01:00
Florian Bruhin
01845faac5
Set window title/icon on correct object
...
This was a regression introduced in #3613 .
Fixes #3727
2018-03-16 08:20:27 +01:00
Florian Bruhin
69a013bc82
Update changelog
2018-03-15 14:53:20 +01:00
Florian Bruhin
6f8eb419ae
Emit predicted_navigation when loading sessions
...
This avoids reloads (because of changed settings) after a session has been
loaded.
Related to #3718
2018-03-15 14:51:36 +01:00
Florian Bruhin
1e4b80d1ac
Don't emit predicted_navigation when reloading because of it
...
When we reload because of a config change in _on_load_finished, we can't use
self.reload() as no URL is set yet. Instead, we call self.openurl with the
current URL.
However, we need to make sure we don't emit predicted_navigation again at that
point.
This should (finally) fix #3718
2018-03-15 14:44:44 +01:00
Florian Bruhin
5dbda3016b
Clean up predicted_navigation handling
...
This also adds some more logging for #3718
2018-03-15 14:16:10 +01:00
Florian Bruhin
1d25b212d5
Add missing qapp fixtures to tests
...
See #3723
2018-03-15 09:06:40 +01:00
Florian Bruhin
f538fc8b74
Update release checklist
...
[ci skip]
2018-03-14 21:50:22 +01:00
Florian Bruhin
c2b995edde
Update build_release for github3.py 1.0
2018-03-14 21:11:03 +01:00
Florian Bruhin
1d562d919e
Include requirements files in built release
...
This is needed to use "tox -e mkvenv"
2018-03-14 21:10:35 +01:00
Florian Bruhin
a60bae30b7
Release v1.2.1
...
(cherry picked from commit 6145786e46 )
2018-03-14 20:20:20 +01:00
Florian Bruhin
523502785a
Update changelog for v1.2.1
2018-03-14 20:17:34 +01:00
Florian Bruhin
84c7c37e8e
Swap Control/Meta back on macOS
...
Fixes #3697
(cherry picked from commit fd9e7bed7fd9842eac22ed304a094a92cc953577)
2018-03-14 19:40:56 +01:00
Florian Bruhin
d232b3ea57
Disable test_software_rendering on macOS
...
For some reason, macOS doesn't care about us disabling software rendering
2018-03-14 19:31:36 +01:00
Florian Bruhin
7a861b7119
Update changelog
2018-03-14 18:19:11 +01:00
Florian Bruhin
a22f973c99
Don't emit predicted_navigation for reloads at all
...
When we reload a page because of a config change, we won't get another
titleChanged signal (at least sometimes).
Also, the predicted_navigation signal is worthless when reloading anyways, as
we're going to load the same URL and not something different.
Fixes #3718
2018-03-14 18:19:11 +01:00
Florian Bruhin
724e531087
Merge pull request #3715 from toofar/docs/greasy-faq
...
Greasemonkey: add FAQ entry.
2018-03-14 11:13:21 +01:00
Florian Bruhin
5c73910a33
Revert "Insert qutebrowser scripts on DocumentCreation and DocumentReady"
...
This reverts commit fac0f66e52 .
2018-03-14 10:19:23 +01:00
Florian Bruhin
84bae210ab
Fix wrong number in cheatsheet
2018-03-14 09:06:04 +01:00
Jimmy
e5edc0f940
fixup! Greasemonkey: add FAQ entry.
...
Change the wording and the `--debug` suggestion.
Add comma after "this is currently not supported", I was tempted to add
a semicolon before it to but I resisted.
Added a "then" after QtWebEngine version list, not a comma.
2018-03-14 20:25:59 +13:00
Florian Bruhin
0d21265005
Update changelog
2018-03-14 08:07:38 +01:00
Florian Bruhin
c0fdf19756
Merge remote-tracking branch 'origin/pr/3704'
2018-03-14 08:06:24 +01:00
Florian Bruhin
102b2be361
Update changelog
2018-03-14 07:56:00 +01:00
Florian Bruhin
fac0f66e52
Insert qutebrowser scripts on DocumentCreation and DocumentReady
...
In #3521 , the injection point was changed to DocumentReady as a fix for
https://bugreports.qt.io/browse/QTBUG-66011 / #3490 .
However, that prevents e.g. using hints before a page is fully loaded, which can
be annoying on a mobile connection.
Instead, just run the scripts twice, which won't hurt and makes sure they're
available.
2018-03-14 07:50:41 +01:00
Jimmy
2563ecf6d8
Greasemonkey: add FAQ entry.
...
The most common questsions regarding greasemonkey support on IRC are
"how do I use it" and "why doesn't my script work", hopefully this can
be a starting point for most people experiencing issues.
2018-03-14 19:48:46 +13:00
Florian Bruhin
64530375ab
Update changelog
2018-03-14 07:44:51 +01:00
Marc Jauvin
c9f6cd507b
address requested changes
...
- add INPUT_MODES & PROMPT_MODES constants in modeman
- use those in tabbedbrowser and modeman
- fix debug logs format to be more human readable
- fix associated tests for new debug logs
2018-03-13 23:31:48 -04:00
Jay Kamat
7278b7c2e5
Improve wording of documentation
2018-03-13 22:25:26 -04:00
Jay Kamat
35beff98a9
Add test for #3711
2018-03-13 19:18:42 -04:00
Jay Kamat
a6e94cf30c
Fix hinting in frames on qt5.9 with input ranges
2018-03-13 18:54:08 -04:00
Florian Bruhin
8e01353a94
Update changelog
2018-03-13 14:41:40 +01:00
Florian Bruhin
8b9c6ccee2
Split up BaseKeyParser.handle into functions
2018-03-13 14:40:54 +01:00
Florian Bruhin
b88ac51d25
Fall back to non-keypad keys without any keypad bindings
...
Fixes #3701
2018-03-13 14:40:54 +01:00
Ryan Roden-Corrent
73517f0a51
Fix test_backup_error.
...
- Need caplog at level error
- Rename test to be unique
2018-03-13 08:50:34 -04:00
Markus Ongyerth
40364ce774
view-source pygments feedback pass
2018-03-13 12:40:51 +01:00
Ryan Roden-Corrent
27966c94a6
Fix up editor backup patch.
...
- Use qutebrowser-editor-backup as the backup file prefix
- Consistently use message.error instead of cmdexc
- Improve test coverage for the backup function
- Fix lint errors in the unit test code
2018-03-13 07:34:18 -04:00
Florian Bruhin
a7b6d179d4
Update changelog
2018-03-13 09:51:03 +01:00
Florian Bruhin
1c9598d2c0
Don't emit predicted_navigation with invalid URLs
...
Fixes #3706
2018-03-13 09:46:09 +01:00
Florian Bruhin
dcd6bcd2f4
Apply changes from PR review
2018-03-13 08:47:41 +01:00
Florian Bruhin
c590648077
Merge remote-tracking branch 'origin/pr/3613'
2018-03-13 08:39:36 +01:00
Florian Bruhin
80843c0b53
Update changelog
2018-03-13 07:39:04 +01:00
Florian Bruhin
14d6e737fa
Merge remote-tracking branch 'origin/pr/3606'
2018-03-13 07:37:57 +01:00
Florian Bruhin
9c613fb700
Merge pull request #3705 from qutebrowser/pyup-scheduled-update-2018-03-12
...
Scheduled weekly dependency update for week 10
2018-03-12 18:57:36 +01:00
pyup-bot
01aa1f755d
Update pytest from 3.4.1 to 3.4.2
2018-03-12 17:10:19 +01:00
pyup-bot
3855d49821
Update hypothesis from 3.48.0 to 3.49.0
2018-03-12 17:10:18 +01:00
pyup-bot
55c24cad9a
Update setuptools from 38.5.1 to 38.5.2
2018-03-12 17:10:16 +01:00
Ryan Roden-Corrent
38bb3673db
Preserve a backup if editor callback fails.
...
Currently the editor deletes its temp file whenever editing is finished.
With this patch, the file will not be deleted if the editor callback
encounters an exception.
One example is if the tab containing the edited element is closed. The
editor errors with "Edited element vanished", but with this patch it
will also print "Backup at ..." so the user does not lose their work.
Resolves #1596 .
Supersedes #3641 , using the cleaner approach started in #1677 .
2018-03-12 08:34:50 -04:00
gammelon
455f6b8a70
Fix blank lines
2018-03-12 12:37:52 +01:00
Florian Bruhin
8c5b7bcd03
Fix lint
2018-03-12 08:51:36 +01:00
Florian Bruhin
a6885a0d41
Update changelog
2018-03-12 08:03:20 +01:00
Florian Bruhin
9941812127
Normalize keys read from the config
...
This makes sure the internal bindings.commands object only contains normalized
key sequences.
Fixes #3699
2018-03-12 08:00:56 +01:00
Florian Bruhin
990c0707f4
Make from_obj() work for List/Dict configtypes
...
We can't easily make it work for ListOrValue as we don't know which of both we
get at this point.
2018-03-12 08:00:18 +01:00
Florian Bruhin
c03ef10d54
tests: Add a yaml_config_stub fixture
2018-03-12 07:39:20 +01:00
Florian Bruhin
d72691ee49
Simplify ListOrValue configtype
2018-03-12 07:38:56 +01:00
Michal Siedlaczek
29eadf7141
Filter installed dictionaries using a regex to ensure correct name
2018-03-11 17:50:20 -04:00
Florian Bruhin
27c2650245
build_release: Wait before detaching volume
...
This hopefully helps with detaching it properly.
2018-03-11 21:06:31 +01:00
Florian Bruhin
b0bf02e23a
Update changelog
2018-03-11 21:05:10 +01:00
Florian Bruhin
30ab1d0218
Force PyQt 5.10.0 with "tox -e mkvenv-pypi"
...
Fixes #3662
2018-03-11 20:47:01 +01:00
Florian Bruhin
7f68affa30
Merge remote-tracking branch 'origin/pr/3695'
2018-03-11 14:36:06 +01:00
Florian Bruhin
b6e29d8eae
Be explicit about expected output in test
2018-03-11 14:35:15 +01:00
Florian Bruhin
591883656e
Merge remote-tracking branch 'origin/pr/3700'
2018-03-11 14:34:06 +01:00
Florian Bruhin
f0a649e101
Mark another GreaseMonkey test as flaky
...
See #3238
2018-03-11 14:29:54 +01:00
Roman Bogorodskiy
d0342bffc4
Show version for POSIX OSes
...
For POSIX OSes other than Linux and macOS set OS Version to
platform.uname() instead of showing 'OS Version: ?'.
2018-03-11 13:28:53 +04:00
Florian Bruhin
75ab8f077d
Fix keybinding cheatsheet URLs in quickstart.asciidoc
...
The URLs and the patching were changed in
96e8151cce but not in quickstart.asciidoc.
2018-03-11 08:30:41 +01:00
Florian Bruhin
d9f7d401c6
Handle ImportError in version.opengl_vendor
...
Fixes #3698
2018-03-11 08:15:22 +01:00
Florian Bruhin
5f01c7e79a
Release v1.2.0
2018-03-09 22:40:59 +01:00
Jay Kamat
996561b50e
Apply tabs.min_width to all tabs when tabs are unshrunk
2018-03-09 14:36:01 -05:00
Sebastian Noack
4cf0311d7f
Updated flake8-per-file-ignores to version 0.5
2018-03-09 14:09:49 -05:00
Johannes Wegener
cf4e472461
add basic completion to file dialog
2018-03-09 16:21:57 +01:00
gammelon
0ce94dae1c
forgot one bit
2018-03-09 15:55:40 +01:00
gammelon
7e3c966afe
rewrite tests
2018-03-09 15:52:03 +01:00
Florian Bruhin
39eb512b27
Fix lint
2018-03-09 14:13:29 +01:00
Florian Bruhin
ebb373ccad
Make sure keys with modifiers get handled as special
2018-03-09 09:04:28 +01:00
Florian Bruhin
c7cccf4ba0
Clear key chains when a special key is pressed in hint mode
...
When we press "s<Escape>", we don't want <Escape> to be handled as part of a key
chain.
2018-03-09 08:43:07 +01:00
Jay Kamat
1672995639
Clean up style issues
2018-03-09 02:19:49 -05:00
Jay Kamat
4a78b0519d
Add tabs.min_width setting
...
Controls min width in pixels of non pinned tabs
Closes #3690
2018-03-09 02:05:49 -05:00
Jay Kamat
46533c3367
Fix pinned tabs being too small in extreme situations
2018-03-09 02:02:31 -05:00
Florian Bruhin
66b06ed84c
Add first tests for HintKeyParser
2018-03-09 07:38:16 +01:00
Florian Bruhin
b789e436b8
Fix lint
2018-03-09 07:07:04 +01:00
jakanakae-envangel
0cd73af691
keyinput: Merge keyparser into modeparsers
2018-03-08 19:55:43 +01:00
Florian Bruhin
63d23ca9df
Add compiled=False to version checks
2018-03-08 18:48:35 +01:00
Florian Bruhin
9af07d86d6
Don't double HTML escape JavaScript messages
...
See https://bugreports.qt.io/browse/QTBUG-66104
2018-03-08 18:23:36 +01:00
Florian Bruhin
f561272f9a
Remove old comments
...
See #3687
[ci skip]
2018-03-08 15:48:34 +01:00
Florian Bruhin
2b2473a6d8
Add security entry FAQ
...
Fixes #3686
2018-03-08 12:58:17 +01:00
Florian Bruhin
0134c1fcfd
travis: Test Python 3.5 with Qt 5.7.1
...
Might run more stable, and makes more sense anyways.
2018-03-08 12:28:10 +01:00
Florian Bruhin
c01f674234
Add Chromium versions to _chromium_version comment
2018-03-08 12:27:41 +01:00
Florian Bruhin
482b622b1b
Fix handling of empty bindings without breaking :unbind
...
1899e313fd as a fix for #3631 broke :unbind, as
the config system treats None and '' equally.
Instead, allow None/'' again, but just handle it as "no binding".
2018-03-08 11:42:27 +01:00
Florian Bruhin
1899e313fd
Disallow binding to an empty command
...
This was introduced (most likely accidentally) in
9cbacf3264 .
Fixes #3631
2018-03-08 08:14:52 +01:00
Florian Bruhin
d5c04318b2
Fix test/lint
2018-03-08 06:41:15 +01:00
Florian Bruhin
87c6644751
Add predicted_navigation for reload()
...
This should avoid a double-reload for 'tsh' etc.
2018-03-07 23:54:58 +01:00
Florian Bruhin
b9d26ee268
Add an input.insert_mode.auto_enter setting
...
Closes #3143
2018-03-07 23:45:19 +01:00
Florian Bruhin
9b9d7647a4
Show the keystring correctly when entering a count
2018-03-07 22:47:31 +01:00
Florian Bruhin
514138aad2
Allow to bind numbers in keybindings
...
This mostly reverts 4ef5db1bc4 for #1966 , but
fixes #3684 by allowing numbers to be bound again. If the user wants to bind
numbers instead of using them for a count, why not let them.
2018-03-07 22:37:10 +01:00
Florian Bruhin
34815f5cf8
Make bindings.default only settable in autoconfig.yml
...
Fixes #3131
2018-03-07 18:30:44 +01:00
Marc Jauvin
7c2802e843
beautify code as requested
2018-03-07 11:46:14 -05:00
Marc Jauvin
5992688926
Save input modes when mode_on_change=='restore'
2018-03-07 11:43:17 -05:00
Florian Bruhin
8a60855b88
Fix lint
2018-03-06 21:44:37 +01:00
Florian Bruhin
e2cdb5c8cf
Allow empty vlaue for bindings.key_mappings
2018-03-06 21:43:07 +01:00
Florian Bruhin
0d94c17edc
Apply key_mappings to KeySequences correctly
...
Fixes #3678
2018-03-06 21:39:57 +01:00
Florian Bruhin
db7ccb0434
Update config tests for pattern changes
2018-03-06 13:26:22 +01:00
Florian Bruhin
e1a03929e3
Edit changelog
2018-03-06 13:14:00 +01:00
Florian Bruhin
06bccfeb78
Improve error message for QtWebEngine inspector
2018-03-06 12:57:38 +01:00
Florian Bruhin
0236255a7e
Require a reload for more settings
2018-03-06 12:57:28 +01:00
Florian Bruhin
b6efe65891
Add input.spatial_navigation to needs_reload
...
See #3648
2018-03-06 11:33:36 +01:00
Florian Bruhin
3701eb121f
Also remove Qt 5.8 from Travis
2018-03-06 11:23:43 +01:00
Florian Bruhin
69a58c9597
Remove Qt 5.8 support and tests
...
With QtWebKit it's probably okay to still use it (*cough* Hyperbola
GNU/Linux-libre^tm *cough*), and only blacklisting it with QtWebEngine would be
quite some effort.
Fixes #3608
2018-03-06 11:04:59 +01:00
Florian Bruhin
ea1ff1c1ea
Regenerate docs
2018-03-06 10:49:59 +01:00
Florian Bruhin
e28a01351b
Add toggling to cheatsheet
2018-03-06 10:49:53 +01:00
Florian Bruhin
e3b8372b8b
Make UrlPattern._DEFAULT_PORT private
2018-03-06 10:34:02 +01:00
Florian Bruhin
257753841b
Allow lightweight URL patterns without a scheme
...
See #3622
2018-03-06 10:33:55 +01:00
Florian Bruhin
7fc53ae78a
Make path optional in URL patterns
...
See #3622
2018-03-06 09:45:06 +01:00
Florian Bruhin
de3d2b1cb1
Update userscripts
2018-03-06 09:37:00 +01:00
Florian Bruhin
8c0bca90d3
Merge remote-tracking branch 'origin/pr/3456'
2018-03-06 09:32:39 +01:00
Florian Bruhin
2c03bc3410
Update changelog
2018-03-06 07:47:11 +01:00
Florian Bruhin
513bb381d3
Merge remote-tracking branch 'origin/pr/3676'
2018-03-06 07:46:46 +01:00
Florian Bruhin
0a75c5a302
Make sure options in needs_reload are valid
2018-03-06 07:44:20 +01:00
Florian Bruhin
afd5d2c728
Reload page after content.javascript.can_access_keyboard changed
...
See #3648
2018-03-06 07:41:35 +01:00
Florian Bruhin
0e2a39da2a
Fix tests for keyboard parsing change
2018-03-06 07:39:41 +01:00
Florian Bruhin
c9cd47b5b1
Also clear favicons when possible with QtWebEngine
...
See #3469
2018-03-06 07:38:01 +01:00
Florian Bruhin
41dfa29648
Improve parsing of invalid keys
...
This should handle "<>" and "\x1f" correctly.
2018-03-06 06:29:38 +01:00
Olmo Kramer
8a193e2dc5
Add hints to <summary> elements
2018-03-06 03:46:40 +01:00
Florian Bruhin
7a9f8fda72
Get rid of unnecessary lambda
2018-03-05 23:07:03 +01:00
Florian Bruhin
2b84ea9dbe
Make sure we have plain keys/modifiers where needed
2018-03-05 23:01:24 +01:00
Florian Bruhin
0ee7fac727
Update test_init_unknown/test_init_invalid for KeyboardModifierMask
...
-1 & Qt.KeyboardModifierMask == Qt.Key_unknown
2018-03-05 22:56:58 +01:00
Florian Bruhin
78f6ad14c2
Use Qt.KeyboardModifierMask
2018-03-05 22:33:16 +01:00
Florian Bruhin
3b957c5f2e
Merge pull request #3673 from qutebrowser/pyup-scheduled-update-2018-03-05
...
Scheduled weekly dependency update for week 09
2018-03-05 22:24:08 +01:00
Florian Bruhin
8deb38e22d
Add test for :bind completion with invalid binding
2018-03-05 22:21:57 +01:00
Florian Bruhin
29fdd1acc4
Make sure all keyboard modifiers are handled correctly
...
This handles Qt.KeypadModifier (Num+...) correctly, adds tests for converting
modifiers to strings, and strips Qt.GroupSwitchModifier as QKeySequence doesn't
know about it.
Fixes #3675
2018-03-05 22:11:26 +01:00
Florian Bruhin
2ab270dfac
Also log modifiers for key presses
2018-03-05 19:32:21 +01:00
Florian Bruhin
fb626ca5a8
Update changelog
2018-03-05 18:40:14 +01:00
Florian Bruhin
9be26a8bfd
Merge remote-tracking branch 'origin/pr/3666'
2018-03-05 18:38:37 +01:00
Florian Bruhin
333a37ffb2
Fix old macOS-specific test code
2018-03-05 18:30:34 +01:00
Florian Bruhin
9320214429
Only clear favicons on load with QtWebKit
...
QtWebEngine seems to automatically clear the favicon when loading e.g.
about:blank, and not clearing it there again fixes #3469 .
Original issue: #187
2018-03-05 18:29:01 +01:00
Florian Bruhin
43cab4d978
Add bindings to toggle plugins
...
See #3622
2018-03-05 18:20:06 +01:00
Florian Bruhin
4da8af0e1d
Fix preloading resources on Windows
...
We always pass paths like javascript/scroll.js no matter what the underlying OS
is, so we also need to cache it with a / separator.
2018-03-05 18:08:51 +01:00
Florian Bruhin
a796d1f33f
Always enable JavaScript for file://, chrome:// and qute://
...
See #3622
2018-03-05 17:09:47 +01:00
pyup-bot
0299bd9764
Update pytest-mock from 1.7.0 to 1.7.1
2018-03-05 17:07:19 +01:00
pyup-bot
17e2915876
Update hypothesis from 3.46.0 to 3.48.0
2018-03-05 17:07:18 +01:00
pyup-bot
1006f181e2
Update packaging from 16.8 to 17.1
2018-03-05 17:07:16 +01:00
Florian Bruhin
430d69f278
Fix lint
2018-03-05 16:43:01 +01:00
Florian Bruhin
a1b73fc113
Elide long URLs in acceptNavigationRequest logging
2018-03-05 16:42:14 +01:00
gammelon
a730290d40
Use QUrl for parsing, add tests
2018-03-05 16:32:41 +01:00
Florian Bruhin
cdbff411d0
Fix travis_install for newer Homebrew
2018-03-05 15:51:26 +01:00
Florian Bruhin
d1854eddaf
Handle invalid keys coming from Qt
...
When pressing a key which doesn't exist as Qt.Key, we don't get Qt.Key_unknown
like we'd expect, but we get 0x0 instead...
Let's add that as a new "nil" key (to not conflict with None/unknown/zero/...)
and handle it appropriately.
This can be reproduced by doing:
setxkbmap -layout us,gr -option grp:alt_shift_toggle
and pressing Alt-Shift/Shift-Alt.
2018-03-05 15:42:52 +01:00
Florian Bruhin
52c280ec12
Add unit tests for BaseKeyParser.handle with dry_run=True
2018-03-05 15:33:56 +01:00
Florian Bruhin
3275681afd
Show key when the key string is empty
2018-03-05 12:45:13 +01:00
Florian Bruhin
67b4502fdb
Fix test_version without cssutils
2018-03-05 11:36:50 +01:00
Florian Bruhin
2f8686ec70
Fix test_mhtml_e2e with Qt 5.11
...
See #3661
2018-03-05 11:36:29 +01:00
Florian Bruhin
cc5da4d1fe
Fix test_modeman.py
2018-03-05 11:08:21 +01:00
Florian Bruhin
b4a2352833
Cache HTML/JS resource files when starting
...
This mostly reverts 9edc5a665e (see #1362 ).
Fixes #1943
2018-03-05 09:08:06 +01:00
Florian Bruhin
78623f4ec8
Update changelog
...
[ci skip]
2018-03-05 08:15:47 +01:00
Florian Bruhin
2a9d970641
Uninstall application proxy factory before exit
...
This should help with segfaults on exit.
Fixes #3657
2018-03-05 07:39:36 +01:00
Florian Bruhin
274f2a9d19
Rename eventFilter methods in modeman
2018-03-05 06:36:01 +01:00
Florian Bruhin
e01db79ce9
Filter out ShortcutOverride events properly
...
Fixes #3419
2018-03-05 06:32:54 +01:00
Florian Bruhin
4ef5db1bc4
Disallow numbers in keybindings
...
Fixes #1966
2018-03-04 23:17:51 +01:00
Florian Bruhin
47525f6a09
Update changelog
2018-03-04 22:58:33 +01:00
Florian Bruhin
155a1901c0
Merge branch 'keys'
2018-03-04 22:50:41 +01:00
Florian Bruhin
88a5c8d29d
Make sure bindings with umlauts work
...
See #303
2018-03-04 22:38:33 +01:00
Florian Bruhin
e2f17c4be1
Always prefer exact over partial matches
2018-03-04 21:45:46 +01:00
Florian Bruhin
40c3295cd1
Improve logging message for clear_keystring
2018-03-04 21:32:42 +01:00
Florian Bruhin
f2fadd7add
Fix handling of key_mappings
2018-03-04 21:32:28 +01:00
Florian Bruhin
0967b6abd2
Fix handling of </> keys
2018-03-04 20:40:16 +01:00
Florian Bruhin
910bbc8521
Refactor keyutils._parse_keystring
2018-03-04 20:40:05 +01:00
Florian Bruhin
c9c0bc0bbd
Update docs
2018-03-04 20:28:46 +01:00
Florian Bruhin
d8bfe23c0d
Fix lint
2018-03-04 20:21:58 +01:00
Florian Bruhin
58b7599152
Remove old fixme
2018-03-04 20:21:58 +01:00
Florian Bruhin
f85e69ec77
Refactor other keyinput tests
2018-03-04 20:21:58 +01:00
Florian Bruhin
2be7db29ed
100% coverage for keyinput.keyutils
2018-03-04 20:21:58 +01:00
Florian Bruhin
8da878c77c
Make KeySequence.matchs() work correctly
2018-03-04 20:21:58 +01:00
Florian Bruhin
866c758660
Add more KeySequence tests
2018-03-04 20:21:58 +01:00
Florian Bruhin
68db8d04ad
KeySequence: Make sure we got valid key codes
2018-03-04 20:21:58 +01:00
Florian Bruhin
3649a36869
KeySequence: Add __le__/__ge__
2018-03-04 20:21:58 +01:00
Florian Bruhin
fb7c75a090
Improve keyutils tests
2018-03-04 20:21:58 +01:00
Florian Bruhin
3c9e8ff9ab
Test and fix keyutils._parse_keystring
2018-03-04 20:21:58 +01:00
Florian Bruhin
7f8508a367
Change the way Space keybindings are handled
...
Using it as " " in a keystring won't work anymore, but instead <Space> and
<Shift-Space> does.
2018-03-04 20:21:58 +01:00
Florian Bruhin
da60d11b24
Refactor keyutils tests
2018-03-04 20:21:58 +01:00
Florian Bruhin
b3834835ed
Bring back keyutils.is_modifier() and modifier handling
...
Turns out when we press yY, we get three events:
Qt.Key_Y, Qt.NoModifier
Qt.Key_Shift, Qt.ShiftModifier
Qt.Key_Y, Qt.ShiftModifier
If we don't ignore the second one, our keychain will be interrupted by the Shift
keypress.
2018-03-04 20:21:58 +01:00
Florian Bruhin
e306e2dadb
Improve and fix test_is_printable
2018-03-04 20:21:58 +01:00
Fritz Reichwald
d9a88e139c
Test for modifiers and corner case 0xFF
2018-03-04 20:21:58 +01:00
Florian Bruhin
3a11a24be0
Fix modifier handling
...
We don't want to show <Shift-Shift>, but <Ctrl-Shift> should still work
correctly.
2018-03-04 20:21:58 +01:00
Florian Bruhin
7cb781cc92
Simplify handling of modifier-only keys
...
Now that we don't rely on str(KeyInfo) being empty anywhere, there's no reason
to return an empty string for only-modifier keypresses anymore.
While those keys can't be bound (QKeySequence('Shift') == Qt.Key_unknown)
there's also no reason to explicitly ignore them.
2018-03-04 20:21:57 +01:00
Florian Bruhin
693178c8ee
Refactor KeyInfo.__str__
...
This removes the special handling for macOS, but this is hopefully not needed
anymore as we don't compare strings.
2018-03-04 20:21:57 +01:00
Florian Bruhin
af6e5b1838
Fix lint
2018-03-04 20:21:57 +01:00
Florian Bruhin
fac8d72d8c
Capitalize Escape in TestFullscreenNotification
2018-03-04 20:21:57 +01:00
Florian Bruhin
a57fc5c746
Refactor keyutils tests involving all keys
2018-03-04 20:21:57 +01:00
Florian Bruhin
50d2ef3b90
Fix handling of printable control keys in KeyInfo.text()
2018-03-04 20:21:57 +01:00
Florian Bruhin
4223e2f85d
Check all keys against QTest::keyToAscii
2018-03-04 20:21:57 +01:00
Fritz Reichwald
d28c323074
Add printable and ismodifier test
2018-03-04 20:21:57 +01:00
Florian Bruhin
934d586286
Fix handling of Shift-Tab aka. Backtab
2018-03-04 20:21:57 +01:00
Florian Bruhin
65a05f334e
Fix KeyInfo.__str__ for <Shift-Tab>
2018-03-04 20:21:57 +01:00
Florian Bruhin
4e505d52df
Regenerate docs
2018-03-04 20:21:57 +01:00
Florian Bruhin
0aa17bfa33
Simplify unicodedata.category calls
2018-03-04 20:21:57 +01:00
Florian Bruhin
63e05e12ba
Fix lint and tests
2018-03-04 20:21:57 +01:00
Florian Bruhin
e26eaaddc2
Add keyutils.is_modifier_key()
2018-03-04 20:21:57 +01:00
Florian Bruhin
1cd86d79d9
Add keyutils.is_printable()
2018-03-04 20:21:57 +01:00
Florian Bruhin
b4d232badd
Simplify KeyInfo.text()
2018-03-04 20:20:31 +01:00
Florian Bruhin
2ca15d7667
Add tests for lower-/uppercase text
2018-03-04 20:20:31 +01:00
Florian Bruhin
8c87040cb6
Improve IDs for qt_key fixture
2018-03-04 20:20:31 +01:00
Florian Bruhin
0b6d2c2b0a
Make all key names work
2018-03-04 20:20:30 +01:00
Florian Bruhin
601e56d2fa
Make test_keyutils work
2018-03-04 20:20:30 +01:00
Florian Bruhin
8f479407a0
key_data: Update key names to reflect reality
...
Generated by:
import key_data
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QKeySequence
for key in key_data.KEYS:
attr = key.attribute
member = getattr(Qt, 'Key_' + attr, None)
if member is None:
continue
name = QKeySequence(member).toString()
if name != attr:
try:
print(" Key('{}', '{}')".format(attr, name))
except UnicodeEncodeError:
print(" Key('{}', '{}') # FIXME".format(attr, name.encode('unicode-escape').decode('ascii')))
else:
print()
2018-03-04 20:20:30 +01:00
Florian Bruhin
f714be0ff7
Initial tests on all Qt keys
2018-03-04 20:20:30 +01:00
Florian Bruhin
19512e988b
Expose less from keyutils publicly
2018-03-04 20:20:30 +01:00
Florian Bruhin
880da2d143
Add missing default=True for configmodel.bind
2018-03-04 20:20:30 +01:00
Florian Bruhin
2ed480b40a
Refactor configmodel.bind
2018-03-04 20:20:30 +01:00
Florian Bruhin
fdc2458657
Fix test_split_count after _handle_key merge
2018-03-04 20:20:30 +01:00
Florian Bruhin
c3485821c7
Adjust copyright
2018-03-04 20:20:30 +01:00
Florian Bruhin
77e0b8983c
Point to Debian repos for .deb downloads
...
[ci skip]
Fixes #3669
2018-03-04 18:51:16 +01:00
Jimmy
6d415b6653
Greasemonkey: don't inject JS into dead frames
...
Hopefully closes #3627
This feels like fixing the symptom instead of the problem but I am not
sure how such a situation would arise. Never the less, the crash logs
clearly show that `_inject_userjs()` is being called with a deleted
frame sometimes. It is being called from a closure that gets triggered
on frame.loadFinished so I am not sure how frame could be deleted at
that time unless:
* the error message is misleading and it is actually some reference to
the object that is no longer valid
* the frame gets deleted from some other handler of loadFinished.
2018-03-03 15:10:44 +13:00
Jimmy
0adda22d3c
Greasemonkey: add a way to register scripts directly.
...
Previously to add a greasemonkey script you had to write it to the
greasemonkey data directory and call load_scripts(). Now you can just
make a new GreasemonkeyScript and pass it to add_script(), yay.
There are no users of the method yet although I could have used it while
writing the tests.
2018-03-03 15:02:43 +13:00
Jimmy
7dab8335e2
Greasemonkey: handle downloads that complete fast
...
When `@require`ing local files (with the `file://` scheme) the
greasemonkey manager was not catching the DownloadItem.finished signal
because it was being emitted before it had managed to connect.
I didn't see this happening while testing with files that should have
been in cache but I wouldn't be surprised.
I had to change the download mock to be able to give it the appearance
of asynchronicity. Now when using it one must set download.successful
appropriately before firing download.finished. I also added a list of
downloads to the stub so a test could enumerate them in case the
unit-under-test didn't have a reference to them.
2018-03-03 15:02:43 +13:00
Jimmy
87a0c2a7a7
Greasemonkey: indent source of required scripts
...
This is for the case where a script uses `@require` to pull down another
greasemonkey script. Since QWebEngineScript doesn't support `@require`
we pass scripts to it with any required ones pre-pended. To avoid
QWebEngineScript parsing the first metadata block, the one from the
required script, we indent the whole lot. Because the greasemonkey spec
says that the //==UserScript== text must start in the first column.
2018-03-03 15:02:42 +13:00
Jimmy
60e6d28eb1
Greasemonkey: webkit: Don't use Object.entries in js.
...
Apparently the currently available QtWebkit's javascript engine doesn't
support Object.entries[1]. It was only using that because I had copied
it from the official gm4 polyfill (maybe I should open an issue there?).
Tested with libqt5webkit5 version 5.212.0~alpha2-5 (debian) and I was
getting the same type of failures as Travis so it looks like this is the
case in arch too.
[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries
2018-03-03 15:02:42 +13:00
Jimmy
919fe45813
Greasemonkey: Add test for @require support.
...
There's is a lot of asserts in that one test but it tests everything.
2018-03-03 15:02:42 +13:00
Jimmy
fa1ac8d93c
Move download_stub to helpers/fixtures
...
I am adding support for downloading dependant assets in
browser/greasemonkey and want to mock the download manager for testing.
2018-03-03 15:02:42 +13:00
Jimmy
cba93954cd
Allow download_stub test fixture to handle file targets.
2018-03-03 13:14:49 +13:00
Jimmy
2307a0850f
Greasemonkey: Support greasemonkey-reload --force.
...
Added a new argument to the greasemonkey-reload command to support
also re-downloading any `@required` scripts.
2018-03-03 13:14:49 +13:00
Jimmy
b91e2e3267
Allow download manager to overwrite existing files unprompted.
...
This is to support the non-interactive use case of setting a
`FileDownloadTarget` and passing auto_remove and not caring if the target
file exists or not.
An alternative to adding the attribute to `FileDownloadTarget` and
having set_target pull it out would be to add a new param to `fetch()`
and `set_target()`. But it would only be used for one target type
anyway.
2018-03-03 13:14:49 +13:00
Jimmy
a7b74d8e83
Greasemonkey: give required scripts a readable filename.
2018-03-03 13:14:49 +13:00
Jimmy
33d66676c9
Greasemonkey: mock the new GM4 promises based API.
...
Based on the gm4-polyfill.js script from the greasemonkey devs. But not
the same because that script doesn't work for us for a couple of
reasons:
* It assumes all GM_* functions are attributes of `this` which in
this case is the global window object. Which breaks it out of our iife.
It is possible to change what `this` is within the iife but then we
would have to do something weird to ensure the functions were available
with the leading `this.`. And I don't think user javascripts tend to
call GM functions like that anyway, that polyfill script is just making
weird assumptions and then claiming it'll work for "any user script
engine".
* It tries to provide implementations of GM_registerMenuCommand and
GM_getResource text which do unexpected thins or implement a circular
dependency on the new version, respectively.
2018-03-03 13:14:49 +13:00
Jimmy
a76c0067e1
Greasemonkey: Add support for the @require rule.
...
The greasemonkey spec states that user scripts should be able to put the URL
of a javascript source as the value of an `@require` key and expect to have
that script available in its scope. This commit supports deferring a user
script from being available until it's required scripts are downloaded,
downloading the scripts and prepending them onto the userscripts code before
placing it all in an iffe.
TODO:
* should I be saving the scripts somewhere else? Maybe the cache dir?
The are just going to data/greasemonkey/requires/ atm.
2018-03-03 13:14:49 +13:00
Florian Bruhin
02c313eafd
Add packages needed with tox
2018-03-02 10:22:59 +01:00
Florian Bruhin
be7a21eb56
Make sure the backend is set in test_webenginesettings.py
2018-03-02 07:00:09 +01:00
Florian Bruhin
b0c25e1bed
Add missing )
...
I shouldn't be allowed to push at 6:30 AM...
2018-03-02 06:58:37 +01:00
Florian Bruhin
9721881261
Adjust @issue3572 check for Qt 5.10.1
2018-03-02 06:37:01 +01:00
Florian Bruhin
5d68dc08d5
Update changelog
2018-03-02 06:35:04 +01:00
Florian Bruhin
067be7aaa2
Simplify mock checks
2018-03-02 06:33:56 +01:00
Florian Bruhin
6fc560fc78
Rewrite comment
2018-03-02 06:31:23 +01:00
Florian Bruhin
fb7fa0cb49
Merge remote-tracking branch 'origin/pr/3652'
2018-03-02 06:31:00 +01:00
Florian Bruhin
52129f2e4d
Merge remote-tracking branch 'origin/pr/3659'
2018-03-02 06:30:52 +01:00
Ryan Roden-Corrent
d5e30fd728
Don't crash first completion update with min_chars.
...
When min_chars is nonzero, if the first command that opens the
completion has < min_chars on the word under the cursor, it triggers a
check for a condition where last_cursor_pos is None.
By setting last_cursor_pos=-1 we ensure that the completer always
updates the first time it is opened, and that there is never a check
against None.
This adds a test for the min_chars feature.
Resolves #3635 .
2018-03-01 22:07:53 -05:00
Jay Kamat
a2b5bf0b73
Clear old search results on webkit
...
Fixes an issue with #3626
2018-03-01 16:15:38 -05:00
Ryan Roden-Corrent
2965f954ba
Resolve empty completion.timestamp_format crash.
...
Resolves #3628 .
2018-03-01 07:54:20 -05:00
Florian Bruhin
257011a6d2
Fix installing codecov on Travis
2018-03-01 12:56:43 +01:00
Florian Bruhin
f33d659924
Release v1.1.2
2018-03-01 09:15:54 +01:00
Markus Ongyerth
f7bcdfc818
Add --pygment argument to view-source
...
The --pygment argument allows to use the pygment version of view-source
over the qtwebengine internal one.
This version is slightly different in what's processed before the site
is generated, so some javascript created texts can be available.
2018-02-28 16:53:28 +01:00
Florian Bruhin
b14a37cf1f
Update changelog for v1.1.2
...
[ci skip]
2018-02-28 16:14:34 +01:00
Florian Bruhin
7fd0b52360
Add missing newline
...
[ci skip]
2018-02-28 08:11:23 +01:00
Florian Bruhin
8ea6cf352b
Remove unneeded version check
...
The option isn't going to magically change as the config system prevents that.
2018-02-28 08:08:47 +01:00
Florian Bruhin
f3aaa1084a
Migrate spell tests to unittests
2018-02-28 08:08:23 +01:00
Florian Bruhin
824825e67d
Make sure we only show dictionary warnings once
...
After 3956f81e73 where this was made a function,
the warning was shown twice, causing AppVeyor to fail.
2018-02-28 08:01:11 +01:00
Florian Bruhin
889b03169a
Upgrade to PyQt 5.10.1
2018-02-28 06:28:01 +01:00
Florian Bruhin
e6aa6b8235
Add missing docs for {url:host}
2018-02-27 17:29:36 +01:00
Florian Bruhin
5eb340d481
Add missing tests for completions
2018-02-27 15:55:00 +01:00
Florian Bruhin
60f0175a36
Fix getting customized options
...
This was broken with per-domain settings
Fixes #3649
2018-02-27 15:39:57 +01:00
Florian Bruhin
5a5873d4ee
Rename KeyConfig._prepare to ._validate
2018-02-27 14:16:41 +01:00
Florian Bruhin
49d297f7bf
Fix tests for parsing KeySequences
2018-02-27 14:10:55 +01:00
Florian Bruhin
b85fe8f678
Merge BaseKeyParser._handle_key into .handle
2018-02-27 14:08:38 +01:00
Florian Bruhin
3a79f1293f
Remove FIXMEs
2018-02-27 13:10:25 +01:00
Florian Bruhin
244590f49d
Handle unknown keys with :bind/:unbind
2018-02-27 13:09:48 +01:00
Florian Bruhin
88b5007457
Consolidate invalid :bind/:unbind tests
2018-02-27 13:02:32 +01:00
Florian Bruhin
7a27469ecd
Handle unknown keys in :bind completion
2018-02-27 13:02:32 +01:00
Florian Bruhin
8090d3e289
Handle invalid keys in config.py
2018-02-27 13:02:32 +01:00
Florian Bruhin
898f5c50c4
Add a test for utils.chunk
2018-02-27 13:02:32 +01:00
Florian Bruhin
bd87b4eb10
Stop logging in PassthroughKeyParser
2018-02-27 13:02:32 +01:00
Florian Bruhin
ec3ad8a969
Get rid of _warn_on_keychains and _supports_chains
2018-02-27 13:02:32 +01:00
Florian Bruhin
ba012c6ba8
Get rid of BaseKeyparser.Type
2018-02-27 13:01:41 +01:00
Florian Bruhin
b906d92053
Remove now uneeded pylint ignore
2018-02-27 10:06:11 +01:00
Florian Bruhin
72e30cc12c
Fix following hints
2018-02-27 09:47:06 +01:00
Florian Bruhin
079fcc7eea
Add FIXME
2018-02-27 09:38:40 +01:00
Florian Bruhin
c0e2550046
Fix scripts.keytester
2018-02-27 09:36:56 +01:00
Florian Bruhin
362f923f06
Fix lint
2018-02-27 09:34:55 +01:00
Florian Bruhin
f18b5aa782
Fix searching for blacklisted keys in keyhintwidget
2018-02-27 09:23:06 +01:00
Florian Bruhin
5d581d42f5
Improve key parsing with simple keys containing </>
2018-02-27 09:22:11 +01:00
Florian Bruhin
1ba61bbcbe
Fix test_modeparsers
2018-02-27 09:22:01 +01:00
Florian Bruhin
911b2daebf
Fix test_keyutils
2018-02-27 09:07:20 +01:00
Florian Bruhin
5a03d31f6f
More test_basekeyparser fixes
2018-02-27 08:53:28 +01:00
Florian Bruhin
eeeb763f8a
Make sure 0 is handled as command
2018-02-27 08:50:50 +01:00
Florian Bruhin
9e27f2b3e7
Initial attempts at fixing test_basekeyparser
2018-02-27 08:48:16 +01:00
Florian Bruhin
44b4cb92be
Make keyutils.KeySequence.parse('') work
2018-02-27 08:35:14 +01:00
Florian Bruhin
ac4fd7c563
Add KeyInfo.to_event()
2018-02-27 08:20:06 +01:00
Florian Bruhin
1e8f72dfe6
Adjust test_configtypes
2018-02-27 08:10:54 +01:00
Florian Bruhin
f40f4082ba
Validate configtypes.Key correctly
2018-02-27 07:56:34 +01:00
Florian Bruhin
612387633d
Adjust test_configfiles
2018-02-27 07:53:29 +01:00
Florian Bruhin
e8d5fb5cca
Normalize keybinding with :bind
2018-02-27 07:51:14 +01:00
Florian Bruhin
214e750c69
Adjust test_configcommands.py
2018-02-27 07:51:07 +01:00
Florian Bruhin
b1f4b1eaba
Fix :unbind with already bound keys
...
The previous change was incorrect and caused a regression (test_unbound_twice)
2018-02-27 07:40:54 +01:00
Florian Bruhin
49f8bc3d63
Use KeySequences correctly in test_config.py
2018-02-27 07:37:55 +01:00
Florian Bruhin
fa29a0b686
Expect capitalized bindings in test_models
2018-02-27 06:58:39 +01:00
Florian Bruhin
1b0aea5e05
Bring simple bindings to front in get_reverse_bindings_for
2018-02-27 06:56:57 +01:00
Florian Bruhin
8416e97c6c
Fix type which is stubbed in test_models
2018-02-27 06:50:57 +01:00
Florian Bruhin
93ff9006ad
Merge remote-tracking branch 'origin/pr/3643'
2018-02-27 06:24:33 +01:00
Florian Bruhin
bc3e1b316d
Use "command -v" instead of "which" in bash scripts
...
shellcheck recently added SC2330 checking for this. "which" is non-standard, and
not guaranteed by POSIX to have a meaningful exit status, while "command -v" is
specified by POSIX: https://stackoverflow.com/q/592620
2018-02-27 06:23:00 +01:00
Florian Bruhin
53fb5af99c
Paste version information privately
2018-02-26 23:09:55 +01:00
Florian Bruhin
01462008c9
Clearly separate yesno/prompt key modes
2018-02-26 22:49:15 +01:00
Florian Bruhin
d9ae3fd5aa
Fix more hinting issues
2018-02-26 20:49:02 +01:00
Florian Bruhin
de3b4adfd8
Don't force-follow hints when typing chars
2018-02-26 20:48:49 +01:00
Florian Bruhin
6fc391986f
Fix KeyInfo.text() for space
2018-02-26 20:48:22 +01:00
Florian Bruhin
e9d58dae2a
Fix getting individual items from KeySequence
2018-02-26 20:48:11 +01:00
Florian Bruhin
9f0e1a98a0
Make hint keybinding inhibition work
2018-02-26 20:22:52 +01:00
Florian Bruhin
8bce2ba8e8
Fix expected message
2018-02-26 20:03:21 +01:00
Florian Bruhin
f1b20f6dc4
Fix forward_unbound_keys test
2018-02-26 20:02:43 +01:00
pyup-bot
416712d2dc
Update pytest from 3.4.0 to 3.4.1
2018-02-26 17:04:18 +01:00
pyup-bot
3dedd0d178
Update hypothesis from 3.45.2 to 3.46.0
2018-02-26 17:04:17 +01:00
Florian Bruhin
1444634abb
Fix :fake-key test
2018-02-26 14:26:12 +01:00
Florian Bruhin
bb647123b7
Fix invalid key sequences
2018-02-26 14:13:46 +01:00
Florian Bruhin
2698b8bb63
Fix unicodedata check
2018-02-26 13:47:45 +01:00
Florian Bruhin
f15e2285ba
Fix bindings.key_mappings
2018-02-26 13:41:01 +01:00
Florian Bruhin
0afaf2ce89
Fix capital chars after string change
2018-02-26 11:48:10 +01:00
Florian Bruhin
508a12a84c
Try fixing KeyInfo.__str__ with lower-/uppercase chars
2018-02-26 11:36:24 +01:00
Florian Bruhin
1609e0d445
Fix keyhint widget
2018-02-26 11:16:56 +01:00
Florian Bruhin
16940db834
Refactor KeySequence initialization
2018-02-26 11:16:51 +01:00
Florian Bruhin
f92bb16408
Make config.bind work
2018-02-26 10:38:59 +01:00
Florian Bruhin
9aa37febbe
Make hints work
2018-02-26 10:33:18 +01:00
Florian Bruhin
be4cd94207
Try getting hints to work
2018-02-26 10:14:30 +01:00
Florian Bruhin
d077f38ac4
Store multiple QKeySequences in KeySequence
2018-02-26 09:13:53 +01:00
Florian Bruhin
79a337767a
Initial work at making :fake-key work
2018-02-26 09:13:44 +01:00
Florian Bruhin
cdf6f52d15
Update changelog
...
[ci skip]
2018-02-26 08:15:34 +01:00
Florian Bruhin
6f9c62b24a
Improve marker descriptions
2018-02-26 07:56:51 +01:00
Florian Bruhin
353753c03c
Merge remote-tracking branch 'origin/pr/3620'
2018-02-26 07:26:24 +01:00
Florian Bruhin
de0aa32c11
Merge remote-tracking branch 'origin/pr/3626'
2018-02-26 07:20:34 +01:00
Florian Bruhin
edd2f89d5d
Update changelog
2018-02-26 07:16:55 +01:00
Florian Bruhin
bd79d7e071
Merge remote-tracking branch 'origin/pr/3637'
2018-02-26 07:16:19 +01:00
Jay Kamat
76bf35cbdd
Add qtbug60673 markers to relevant tests
2018-02-25 19:00:15 -05:00
Jay Kamat
7a8fa5f46e
Implement deduplication of searches on webkit
2018-02-25 18:40:16 -05:00
Florian Bruhin
e273f163a6
Add a KeyInfo class
2018-02-25 22:09:39 +01:00
Anton S
eeb565319f
Handle invalid URLs on Apple events
2018-02-25 23:58:49 +03:00
Florian Bruhin
321d5c5d20
Merge branch 'master' into keys
2018-02-25 21:25:12 +01:00
Florian Bruhin
3df066c694
Update changelog
2018-02-25 21:10:35 +01:00
Florian Bruhin
54713f57e5
Merge remote-tracking branch 'origin/pr/3624'
2018-02-25 21:09:56 +01:00
Florian Bruhin
a98466336e
Update changelog
2018-02-25 19:58:23 +01:00
Florian Bruhin
52b5492c6a
Merge branch 'per-url'
2018-02-25 19:44:51 +01:00
Florian Bruhin
ba88fc43e0
Stabilize error page test
2018-02-25 19:40:38 +01:00
Florian Bruhin
abf4d10d5b
Add a test for :set -p with a pattern
2018-02-25 19:33:27 +01:00
Florian Bruhin
4c147b77c1
Add a test for the error page workaround
2018-02-25 16:35:02 +01:00
Florian Bruhin
a32d74e983
Fix lint
2018-02-25 16:08:15 +01:00
Florian Bruhin
d44ff5ba01
Don't load the URL immediately on :undo
...
On some pages like Qt's Gerrit, Indiegogo or Telegram Web, this caused a crash
with QtWebEngine and Qt 5.10.1 in
QtWebEngineCore::WebContentsAdapter::webContents().
I'm not sure what causes the crash exactly, but I'm guessing it's some kind of
race condition between loading the URL initially and deserializing the history,
which both ends up loading the URL.
Since restoring the history means we end up on the given URL anyways, let's just
not open the URL beforehand, which seems to fix this.
Fixes #3619 .
2018-02-25 15:55:20 +01:00
Florian Bruhin
97e00ba4b5
Only reload after setting changes when needed
...
Apparently, things work fine with Type.link_clicked even if we don't emit
predicted_navigation there...
2018-02-25 15:17:03 +01:00
Florian Bruhin
eade305965
Add a predicted_navigation signal
...
This is emitted when we know that we're going to visit some URL, but Qt doesn't
know yet. This way, we can change the settings early, and since we know which
settings have actually changed, prevent a change needing a reload in
_on_navigation_request.
2018-02-25 15:04:04 +01:00
Florian Bruhin
65a62b67a5
Go back to using tab.openurl on config changes
...
This seems to work most reliably at the moment...
2018-02-25 14:45:30 +01:00
Florian Bruhin
638e880604
Improve workaround for missing error pages
2018-02-25 14:45:30 +01:00
Florian Bruhin
bfb3a6594f
Try using tab.reload() on setting changes instead
2018-02-25 14:45:19 +01:00
Florian Bruhin
08bc55995b
First attempt at reloading pages after setting changes
2018-02-25 14:45:09 +01:00
Jay Kamat
4602afe770
Add a webengine duplicate search test
2018-02-23 18:13:20 -05:00
Jay Kamat
820ffed07f
Remove test blacklists for 5.10
2018-02-23 18:06:57 -05:00
Jay Kamat
f926e7b850
Emulate webkit duplicate search behavior on webengine
2018-02-23 18:06:21 -05:00
Florian Bruhin
2c96446bb9
Track which settings changed for a URL
...
This is currently only used so only changed settings are logged, but will used
for more in the next commit.
2018-02-23 18:11:33 +01:00
Florian Bruhin
75b65e2f11
Simplify attribute handling in Web(Kit|Engine)Settings
...
Let's just have lists in _ATTRIBUTES for WebEngineSettings as well, that allows
us to share some more code.
2018-02-23 17:59:12 +01:00
Florian Bruhin
fc6a0dbe64
Show a simple error page on loading errors without JS
...
We can't tell what exactly the error is, but it's surely better than nothing.
2018-02-23 17:29:17 +01:00
Florian Bruhin
98b2b67b8b
Add tests for per-URL JavaScript settings
2018-02-23 15:08:07 +01:00
Florian Bruhin
3956f81e73
Refactor websettings
...
This refactors the whole web(kit|engine|) settings mess a bit so there's a
Web(Kit|Engine)Settings object for (non-static) settings set on a
QWeb(Engine)Settings object in Qt. Everything else is set on module-level a bit
less declaratively.
The whole inheritance mess is gone, and we can now also construct a
Web(Kit|Engine)Settings object for a given tab.
Fixes #2701
2018-02-23 09:51:28 +01:00
Florian Bruhin
49ead32f13
Update urlmatch tests for Chromium changes
...
See:
0ab1294c92 %5E%21/
https://bugs.chromium.org/p/chromium/issues/detail?id=812543
2018-02-23 06:31:49 +01:00
Jay Kamat
cb8d62866c
Blacklist qt versions 5.8.0 through 5.9.4 for caret tests
2018-02-22 18:34:15 -05:00
Jay Kamat
7ecbae765d
Use baseNode over anchorNode in follow-selected
...
baseNode isn't documented anywhere that I can find, but it seems to be
getting us what anchorNode used to get us.
2018-02-22 16:42:58 -05:00
Jay Kamat
c16c625feb
Add basic tests for searching and caret mode
2018-02-22 10:28:35 -05:00
Florian Bruhin
eb4c806ddb
Add URL pattern to settings output
2018-02-22 08:07:54 +01:00
Florian Bruhin
5c4277aac8
Add some default keybindings for toggling scripts
...
Those follow the following pattern:
1) "t" for 'toggle"
2) "s" for "scripts", upper-casing ("S") to make the toggle permanent
3) "h" for host, "H" for host with subdomains, "u" for the exact URL
2018-02-22 08:07:54 +01:00
Jay Kamat
2ffb1604d3
Convert search to blue selection when entering caret mode
2018-02-21 10:01:27 -05:00
Florian Bruhin
ada15510a7
Update changelog
2018-02-21 11:07:55 +01:00
Florian Bruhin
81c17627f7
Merge remote-tracking branch 'origin/pr/3617'
2018-02-21 11:06:52 +01:00
Florian Bruhin
d2e996a3b3
Merge remote-tracking branch 'origin/pr/3610'
2018-02-21 11:06:05 +01:00
Florian Bruhin
d2182edc7a
Merge remote-tracking branch 'origin/pr/3603'
2018-02-21 11:03:37 +01:00
Florian Bruhin
ca26d97589
Merge remote-tracking branch 'origin/pr/3599'
2018-02-21 11:02:51 +01:00
Florian Bruhin
13bd4dd05d
Clean up version.pastebin_url in pbclient fixture
2018-02-21 10:49:42 +01:00
Florian Bruhin
2fbc7b4e1d
Merge remote-tracking branch 'origin/pr/3594'
2018-02-21 10:15:27 +01:00
Florian Bruhin
8b09003bd1
Merge remote-tracking branch 'origin/pr/3592'
2018-02-21 10:13:26 +01:00
Florian Bruhin
ecfd4a77a0
Merge remote-tracking branch 'origin/pr/3562'
2018-02-21 10:11:40 +01:00
Florian Bruhin
cfeeb7460b
Add docstrings to ConfigAPI
2018-02-21 09:14:49 +01:00
Florian Bruhin
ea6a5de374
Update FIXMEs
2018-02-20 23:28:11 +01:00
Florian Bruhin
0d4e20c395
Whitelist config options which support URL patterns
2018-02-20 23:26:22 +01:00
Florian Bruhin
6c5876a494
Fix tests broken by urlmatch trailing slash change
2018-02-20 23:08:09 +01:00
Florian Bruhin
5fbd488fdf
Only change settings for main-frame navigations
2018-02-20 22:45:29 +01:00
Florian Bruhin
18848315f5
urlmatch: Make it possible to leave off trailing slash
2018-02-20 22:45:16 +01:00
Florian Bruhin
17b235b523
Add error handling for parsing patterns from YAML
2018-02-20 22:29:21 +01:00
Florian Bruhin
46aeb25e7e
Fix lint
2018-02-20 20:55:42 +01:00
Florian Bruhin
439d51875f
Add config.pattern()
2018-02-20 20:54:26 +01:00
Florian Bruhin
de38566c11
Update configuring.asciidoc with per-domain settings
2018-02-20 18:43:51 +01:00
Florian Bruhin
3ade923edb
Add basic pattern support for config.py
2018-02-20 18:43:42 +01:00
gammelon
16218a9900
Remove unnecessary try, rephrase to imperative mood
2018-02-20 18:11:50 +01:00
Florian Bruhin
a3dfec20c1
Rename --url to --pattern
2018-02-20 17:56:47 +01:00
Florian Bruhin
f8b1e7739d
Update docs
2018-02-20 17:56:47 +01:00
Florian Bruhin
9685445559
Fix issues with Python 3.5
2018-02-20 17:56:47 +01:00
Florian Bruhin
e482c76874
YamlConfig: Refuse to read a newer config version
2018-02-20 17:08:28 +01:00
Florian Bruhin
03114ccf51
Migrate YAML config files in old format
2018-02-20 16:14:06 +01:00
Florian Bruhin
b3d788fead
Add YamlConfig._pop_object
2018-02-20 15:46:05 +01:00
Marco Zollinger
96e8151cce
use up to date cheatsheet images from repo instead of qutebrowser.org
2018-02-20 15:18:31 +01:00
Florian Bruhin
9595aaf897
Merge pull request #3614 from qutebrowser/pyup-scheduled-update-2018-02-19
...
Scheduled weekly dependency update for week 07
2018-02-20 13:48:53 +01:00
Florian Bruhin
f2bba2e4fa
Fix navigation handling
2018-02-20 12:30:41 +01:00
Florian Bruhin
ae73215724
Fix lint
2018-02-20 12:30:41 +01:00
Florian Bruhin
b9bb515b3b
Add missing configfiles tests
2018-02-20 12:30:41 +01:00
Florian Bruhin
9c42d87e7d
Add missing configutils test
2018-02-20 12:30:34 +01:00
Florian Bruhin
05017c83d6
Add more config tests
2018-02-20 12:30:34 +01:00
Florian Bruhin
d511c5436d
Remove dead config code
2018-02-20 12:30:34 +01:00
Florian Bruhin
36f3e54e1d
Finish configutils tests
2018-02-20 12:30:34 +01:00
Florian Bruhin
19c00ff92a
configutils: Clean up comments
2018-02-20 12:30:34 +01:00
Florian Bruhin
63c77a4d76
urlmatch: Fix equality with non-UrlPattern types
2018-02-20 12:30:34 +01:00
Florian Bruhin
685e3ffcfe
Fix and test UrlPattern/configutils.Values stringification
2018-02-20 12:30:34 +01:00
Florian Bruhin
145a21449b
configutils: Add first tests
2018-02-20 12:30:34 +01:00
Florian Bruhin
50c847562f
configutils.Values: Make it possible to pass values
2018-02-20 12:30:34 +01:00
Florian Bruhin
ab02fcb116
configutils.Values: Add __repr__
2018-02-20 12:30:34 +01:00
Florian Bruhin
316b4b5340
Add new files to PERFECT_FILES
2018-02-20 12:30:34 +01:00
Florian Bruhin
7fcb21573d
Update backers file
2018-02-20 08:52:16 +01:00
Florian Bruhin
5978b7b35f
config: Improve tests for non-existent options
2018-02-19 22:09:54 +01:00
Florian Bruhin
463320b599
Make test_config.py work
2018-02-19 22:09:54 +01:00
Florian Bruhin
1ada821092
Make sure config options exist
2018-02-19 22:09:54 +01:00
Florian Bruhin
cea664e396
Don't emit changed in unset if unneeded
2018-02-19 22:09:54 +01:00
Florian Bruhin
fecebd6ced
Start getting test_config.py to run
2018-02-19 22:09:49 +01:00
Florian Bruhin
7d80825853
Fix test_configfiles.py
2018-02-19 22:09:46 +01:00
Florian Bruhin
ab119975e7
Only emit changed in unset if there was a change
2018-02-19 22:09:46 +01:00
Florian Bruhin
8fead148e2
Add FIXME
2018-02-19 22:09:46 +01:00
Florian Bruhin
1409f4e564
Fix migration of tabs.persist_mode_on_change
2018-02-19 22:09:46 +01:00
Florian Bruhin
5d63dfb24c
Start fixing test_configfiles.py
2018-02-19 22:09:46 +01:00
Florian Bruhin
19148a4593
Fix :config-unset
2018-02-19 22:09:46 +01:00
Florian Bruhin
615c6ffe5a
Make :config-write-py work again
2018-02-19 22:09:46 +01:00
Florian Bruhin
0f907b1a77
Fix getting YAML values in test_configcommands.py
2018-02-19 22:09:46 +01:00
Florian Bruhin
75181e16fa
Fix test_models.py
...
The Config object got initialized via the config_stub fixture early, so we need
to force it to re-init its values after patching configdata.DATA.
2018-02-19 22:09:46 +01:00
Florian Bruhin
19f7b92abb
Fix test_configinit.py
2018-02-19 22:09:43 +01:00
Florian Bruhin
c89e804653
Fix handling of invalid types in YamlConfig
2018-02-19 22:08:42 +01:00
Florian Bruhin
87e329aee3
Fix config.dump_userconfig() with defaults
2018-02-19 22:08:42 +01:00
Florian Bruhin
5eeb223338
Use a different directory for file prompt tests
...
This way they aren't influenced by the config_tmpdir fixture.
2018-02-19 22:08:42 +01:00
Florian Bruhin
f43c7fa360
Fix changing values in configutils.Values
2018-02-19 22:08:42 +01:00
Florian Bruhin
d3e8d46593
Use a real YamlConfig for tests
2018-02-19 22:08:42 +01:00
Florian Bruhin
cb631d532a
Fix getting global value from configutils.Values
2018-02-19 22:08:42 +01:00
Florian Bruhin
8b666d2d2e
Try to update settings in acceptNavigationRequest
...
This still doesn't seem to update them early enough?
2018-02-19 22:08:42 +01:00
Florian Bruhin
bd6e99158e
Get rid of the second deepcopy for config values
...
There were two reasons why we deepcopy mutable objects in the config:
1) So mutations don't mess with our internal/default values.
2) So we can detect mutations and update the config.
If we're going to copy the value for 1) in maybe_copy(), we know the original
value is not going to be mutated, so we can use that directly for self._mutables
instead of making another copy.
2018-02-19 22:07:53 +01:00
Florian Bruhin
93972ff3f1
Copy value before watching it for mutations in config
...
If we copy it afterwards, we are going to mutate the copied object.
2018-02-19 22:07:53 +01:00
Florian Bruhin
ddb914dc65
Refactor YAML init
2018-02-19 22:07:53 +01:00
Florian Bruhin
8504ad6ff3
Change how iterating over Config/YamlConfig works
2018-02-19 22:07:53 +01:00
Florian Bruhin
6abb42a066
Make saving in autoconfig.yml work
2018-02-19 22:07:53 +01:00
Florian Bruhin
4691753965
Avoid running change handlers on config.clear
2018-02-19 22:07:53 +01:00
Florian Bruhin
9c670e13ce
Make clearing config work
2018-02-19 22:07:53 +01:00
Florian Bruhin
a6b979539d
Add missing configutils.py
2018-02-19 22:07:53 +01:00
Florian Bruhin
14a69d9047
Fix lint
2018-02-19 22:07:53 +01:00
Florian Bruhin
7c1fb1d215
Refactor acceptNavigationRequest handling to use signals
2018-02-19 22:07:53 +01:00
Florian Bruhin
2a7998847f
Unset values properly
2018-02-19 22:07:53 +01:00
Florian Bruhin
74a7676111
Fix issues with per-domain proof-of-concept
2018-02-19 22:07:53 +01:00
Florian Bruhin
d09afdf0ee
Refactor handling of mutables with url/pattern in Config
...
This also should not copy stuff coming from the config if it's not needed.
2018-02-19 22:07:53 +01:00
Florian Bruhin
8551288efb
Start working on different per-URL storage
2018-02-19 22:07:53 +01:00
Florian Bruhin
5e50824042
Broken per-URL proof-of-concept
2018-02-19 22:07:53 +01:00
Florian Bruhin
4ed07d6062
Initial implementation of per-URL setting storage
2018-02-19 22:07:53 +01:00
Florian Bruhin
894da598d6
urlmatch: Remove dead code
2018-02-19 22:07:53 +01:00
Florian Bruhin
7033af816a
urlmatch: Add equality testcases
2018-02-19 22:07:53 +01:00
Florian Bruhin
eda15c53ad
urlmatch: Improve port error output
2018-02-19 22:07:53 +01:00
Florian Bruhin
d6ea9b1e47
urlmatch: Add test for invalid IPv6 URL
2018-02-19 22:07:53 +01:00
pyup-bot
8a0be83e1e
Update pytest-mock from 1.6.3 to 1.7.0
2018-02-19 17:04:13 +01:00
pyup-bot
11579b3511
Update hypothesis from 3.44.26 to 3.45.2
2018-02-19 17:04:12 +01:00
bttner
e169e2165d
Refactor TabbedBrowser from inheritance to composition
2018-02-19 14:29:05 +01:00
Jay Kamat
84907d5a2e
Simplify readability logic using get defaults
...
:D
2018-02-18 14:49:09 -05:00
Jay Kamat
c844023077
Use QUTE_DATA_DIR in readability userscript
2018-02-18 14:28:46 -05:00
Florian Bruhin
ab0034f9da
Merge pull request #3607 from rasa/patch-1
...
Add scoop installer
2018-02-18 11:30:25 +01:00
Ross Smith II
bf72d81bd3
Add scoop installer
...
See https://github.com/lukesampson/scoop-extras/pull/783
2018-02-18 00:07:02 -08:00
jnphilipp
60a7e483af
Add import error message for stem.
2018-02-17 19:57:44 +01:00
gammelon
42ac3dcda0
Add Option url.open_base_url
...
when set to true, invoking a searchengine shortcut without argument
opens the baseurl of that searchengine instead of DEFAULT searchengine
2018-02-17 11:21:22 +01:00
jnphilipp
6219119476
Update output.
2018-02-17 09:48:39 +01:00
Marc Jauvin
872cff2ae1
make sure tab is not None either, had a crash because of this
2018-02-16 14:03:11 -05:00
jnphilipp
3ee765869d
Add tor_identity userscript.
2018-02-16 14:22:08 +01:00
Florian Bruhin
174dd5dd9e
urlmatch: Remove performance FIXME
2018-02-15 18:47:07 +01:00
Florian Bruhin
5f6c8435a4
urlmatch: Add initial benchmark/hypothesis test
2018-02-15 18:47:07 +01:00
Florian Bruhin
41b7ac27d7
urlmatch: Postpone checking scheme
2018-02-15 18:47:07 +01:00
Florian Bruhin
5627a63265
urlmatch: Fix lint
2018-02-15 18:47:07 +01:00
Florian Bruhin
e161458f91
urlmatch: Add test cases for oddballs
2018-02-15 18:47:07 +01:00
Florian Bruhin
33b7c4bdd0
urlmatch: Fix and test port handling
2018-02-15 18:47:07 +01:00
Florian Bruhin
45cc1aaeb0
urlmatch: Add tests for file://
2018-02-15 18:47:07 +01:00
Florian Bruhin
a2836ba945
urlmatch: Make sure URLs are valid
2018-02-15 18:47:07 +01:00
Florian Bruhin
0a10a4f751
urlmatch: Add more tests for special schemes
2018-02-15 18:47:07 +01:00
Florian Bruhin
084d3de65b
urlmatch: Add support for data: and javascript:
2018-02-15 18:47:07 +01:00
Florian Bruhin
dae164abee
urlmatch: Get rid of scheme whitelist
...
There are more schemes like data: or javascript:, and we don't want to restrict
schemes anyways.
2018-02-15 18:47:03 +01:00
Florian Bruhin
28aadc4f96
urlmatch: Add tests for <all_urls>
2018-02-15 18:47:03 +01:00
Florian Bruhin
867f2a8e2b
urlmatch: Use None for match-all path
2018-02-15 18:47:03 +01:00
Florian Bruhin
8fd0690959
urlmatch: Fix handling of *:// as scheme
2018-02-15 18:47:03 +01:00
Florian Bruhin
a8a9cdd81e
urlmatch: Add more tests from Chromium
2018-02-15 18:47:03 +01:00
Florian Bruhin
978b90b5b1
urlmatch: Implement correct IP matching
2018-02-15 18:47:03 +01:00
Florian Bruhin
2d43a1d2e7
urlmatch: Use None as default for host
2018-02-15 18:47:03 +01:00
Florian Bruhin
5419d1caa1
urlmatch: Add glob escaping tests
2018-02-15 18:47:03 +01:00
Florian Bruhin
9092c3a87f
urlmatch: Increase debuggability
2018-02-15 18:47:03 +01:00
Florian Bruhin
faeca30dfa
urlmatch: Add more tests
2018-02-15 18:47:03 +01:00
Florian Bruhin
b7c3c10b87
urlmatch: Use class in test
2018-02-15 18:47:03 +01:00
Florian Bruhin
a8a976b324
urlmatch: Simplify/fix matching by using None as sentinel
2018-02-15 18:47:03 +01:00
Florian Bruhin
2b274f8e0b
urlmatch: Implement initial matching
2018-02-15 18:47:02 +01:00
Florian Bruhin
3d6cbcf396
urlmatch: Improve matching error for TLD wildcards
2018-02-15 18:47:02 +01:00
Florian Bruhin
fa329c698e
urlmatch: Finish port parsing
2018-02-15 18:47:02 +01:00
Florian Bruhin
a2a95f5fee
urlmatch: Improve port handling
2018-02-15 18:47:02 +01:00
Florian Bruhin
d266190518
urlmatch: Improve port tests
2018-02-15 18:47:02 +01:00
Florian Bruhin
c728d78bea
urlmatch: Host/port parsing
2018-02-15 18:47:02 +01:00
Florian Bruhin
32abb67d1f
urlmatch: Use dedicated ParseError exception
2018-02-15 18:47:02 +01:00
Florian Bruhin
3c17bb97c0
urlmatch: Start with port parsing
2018-02-15 18:47:02 +01:00
Florian Bruhin
1b8dfb6c36
urlmatch: Disallow NUL byte
...
See https://bugs.chromium.org/p/chromium/issues/detail?id=390624
With Qt, we might run into the same issue as well at some point, and it sure
can't hurt to disallow it.
2018-02-15 18:46:58 +01:00
Florian Bruhin
76efba296f
urlmatch: Store path/port
2018-02-15 18:46:55 +01:00
Florian Bruhin
b93c0dad5a
urlmatch: Start UrlPattern
2018-02-15 18:46:51 +01:00
Florian Bruhin
541abb2324
Merge pull request #3602 from jgkamat/jay/js-linkfix
...
Fix broken language links in contributing
2018-02-14 17:49:53 +01:00
Jay Kamat
12d74c5b52
Fix broken language links in contributing
2018-02-14 11:40:51 -05:00
Marc Jauvin
620a966d1e
add debug logs and adjust tests to use them
2018-02-14 09:58:23 -05:00
Marc Jauvin
b791dd3eb4
no restore while in prompt modes on tab change
2018-02-14 09:44:40 -05:00
Marc Jauvin
8a3049f09b
make sure there IS a current widget before using it
2018-02-14 08:33:32 -05:00
Marc Jauvin
9b8a182a78
history-clear does nothing to help here
2018-02-13 17:03:01 -05:00
Marc Jauvin
f94e12008a
fix the tests by clearing history
2018-02-13 16:23:56 -05:00
George Edward Bulmer
1893a33708
Monkeypatch qapp.launch_time too
2018-02-13 20:51:18 +00:00
George Edward Bulmer
29ff4259d6
Add test for _uptime()
2018-02-13 20:09:19 +00:00
Jonathan Berglind
681bb058fa
Use HTTPStatus enum instead of http.client in webserver fixture
2018-02-13 20:57:05 +01:00
Jonathan Berglind
3d5bba9cff
Use HTTPStatus in flask test server
2018-02-13 20:57:05 +01:00
Jonathan Berglind
81acba4700
Use HTTPStatus for existing tests, add more ones
...
Add tests for endpoints being refactored
2018-02-13 20:56:59 +01:00
George Edward Bulmer
ca8d935cf4
Update tests as per code review
2018-02-13 18:38:27 +00:00
Marc Jauvin
e38df261cb
skip this test for qt>=5.10 until the log problem gets resolved
2018-02-13 13:00:44 -05:00
George Edward Bulmer
cfa779ecb7
Add trivial test for _uptime
2018-02-13 16:02:20 +00:00
George Edward Bulmer
b959e885fc
Pylint fix
2018-02-13 15:25:40 +00:00
George Edward Bulmer
e349af7524
Fix testing with error pastebin_version()
2018-02-13 14:49:15 +00:00
Jay Kamat
6eeacfe82b
Fix caret being cleared when leaving any mode
2018-02-13 09:27:15 -05:00
George Edward Bulmer
942dca3444
Add test for pastebin_version()
2018-02-13 13:31:27 +00:00
Florian Bruhin
171392b582
Update changelog
2018-02-13 09:44:10 +01:00
Florian Bruhin
9bf5ff1583
Merge remote-tracking branch 'origin/pr/3584'
2018-02-13 09:43:44 +01:00
Florian Bruhin
0e87c46849
Remove unused win_id argument
2018-02-13 09:43:21 +01:00
Marc Jauvin
fbb78f1133
hook into modeman's entered and left signals
...
- save previous mode when a prompt is shown
- restore previous mode when finished prompting
2018-02-12 21:57:53 -05:00
Ryan Roden-Corrent
22d7490126
Remove unused import and TODO from urlmarks test.
2018-02-12 19:25:24 -05:00
Marc Jauvin
6214c38d7e
add input_mode tests for tabs.mode_on_change
2018-02-12 18:11:32 -05:00
Marc Jauvin
d04fc29163
save input_mode when entering/leaving mode
...
instead of when changing tab
2018-02-12 18:10:22 -05:00
Florian Bruhin
0fae611021
Update changelog
2018-02-12 23:00:55 +01:00
Florian Bruhin
47451aa495
Open qute://tabs with :buffer
2018-02-12 23:00:26 +01:00
Florian Bruhin
9f163d90e1
Merge remote-tracking branch 'origin/pr/3450'
2018-02-12 22:54:43 +01:00
Simon Doppler
ca199b0d3d
Use separate variable to make pylint happy
2018-02-12 22:51:36 +01:00
Simon Doppler
7ae0d584e6
Add 20px margin above the raw list
2018-02-12 22:49:02 +01:00
Simon Doppler
0b047e3e10
Handle url with trailing slash and without
2018-02-12 22:48:41 +01:00
Florian Bruhin
15fd552616
Update changelog
2018-02-12 22:32:11 +01:00
Simon Doppler
9a0c113f8a
Fix pylint line-too-long error
2018-02-12 22:25:21 +01:00
Florian Bruhin
1913012c8a
Merge remote-tracking branch 'origin/pr/3561'
2018-02-12 22:18:49 +01:00
Florian Bruhin
5f393ce312
Merge remote-tracking branch 'origin/pr/3588'
2018-02-12 22:17:17 +01:00
Florian Bruhin
54bc22dfd4
hostblock_blame: Decode lines properly
2018-02-12 22:16:41 +01:00
Florian Bruhin
deb9ccb564
hostblock_blame: Remove unused import
2018-02-12 22:16:30 +01:00
Florian Bruhin
eca1fb7d3b
Update hostblock_blame.py for new config
2018-02-12 17:54:34 +01:00
Florian Bruhin
80a72604c6
Revive hostblock_blame.py
2018-02-12 17:49:20 +01:00
pyup-bot
7fe9f53c97
Update pytest-xvfb from 1.0.0 to 1.1.0
2018-02-12 17:01:33 +01:00
pyup-bot
301aaf5783
Update pytest-faulthandler from 1.3.1 to 1.4.1
2018-02-12 17:01:32 +01:00
pyup-bot
3aa59ea240
Update hypothesis from 3.44.25 to 3.44.26
2018-02-12 17:01:30 +01:00
pyup-bot
bd83ff2c64
Update isort from 4.3.2 to 4.3.4
2018-02-12 17:01:28 +01:00
pyup-bot
e74995e81a
Update isort from 4.3.2 to 4.3.4
2018-02-12 17:01:27 +01:00
pyup-bot
75e65b9d4a
Update setuptools from 38.5.0 to 38.5.1
2018-02-12 17:01:25 +01:00
pyup-bot
a31f775d70
Update flake8-debugger from 3.0.0 to 3.1.0
2018-02-12 17:01:24 +01:00
pyup-bot
a506788f4f
Update coverage from 4.5 to 4.5.1
2018-02-12 17:01:22 +01:00
pyup-bot
f64f873c11
Update coverage from 4.5 to 4.5.1
2018-02-12 17:01:21 +01:00
Simon Doppler
572257921d
Use QUrl().toDisplayString() instead of url()
2018-02-12 16:12:15 +01:00
Simon Doppler
417200fa70
Use QUrl instead of str to compare
2018-02-12 16:06:17 +01:00
Simon Doppler
d6912be223
Update import order
2018-02-12 16:04:48 +01:00
Simon Doppler
ee57c30c53
Re-add the raw list (with fixed alignment)
2018-02-12 16:02:06 +01:00
Simon Doppler
0caa5d04d3
Use tabs directly
...
also ignore tabs page url in list
2018-02-12 15:50:56 +01:00
Florian Bruhin
c736cdf87f
Merge remote-tracking branch 'origin/pr/3587'
2018-02-12 15:31:45 +01:00
Florian Bruhin
e66588f818
Update changelog
2018-02-12 15:30:47 +01:00
George Edward Bulmer
9397cc74c1
Pylint indentation fix
2018-02-12 14:24:53 +00:00
George Edward Bulmer
561e5d17b9
Remove extraneous space
2018-02-12 14:22:25 +00:00
Simon Doppler
71d33a47b3
Remove useless intermediary variables
2018-02-12 15:20:41 +01:00
Simon Doppler
ad50a7bfd2
Move import to external ressources
2018-02-12 15:20:06 +01:00
George Edward Bulmer
5b718446b6
Add test for sourcing config with invalid source
2018-02-12 14:19:18 +00:00
George Edward Bulmer
b59a7cdcc0
Report syntax errors as unhandled exceptions
...
Update tests accordingly
2018-02-12 14:07:05 +00:00
George Edward Bulmer
ce8b457bac
Only display exception type if no traceback
...
Update test to match
2018-02-12 13:43:22 +00:00
Marc Jauvin
68b12e6e9f
add missing lines
2018-02-12 07:31:02 -05:00
Marc Jauvin
0a9c0a1385
on_load_finished() signal handler for scroll-pos
...
remove get_page()
2018-02-12 07:16:01 -05:00
Marc Jauvin
a0e028a851
Update tab scroll position when finished loading.
...
Resolves #3322
2018-02-11 22:32:03 -05:00
George Edward Bulmer
164b2a3eef
Fix a lengthy line
2018-02-11 23:20:24 +00:00
George Edward Bulmer
72103ec730
Format error type in a different way
2018-02-11 23:16:04 +00:00
Ryan Roden-Corrent
d0ca54a0cf
Add unit tests for urlmarks.
2018-02-11 16:40:20 -05:00
Ryan Roden-Corrent
4a8b23380c
Trigger save on bookmark-add --toggle.
...
The toggle option was failing to fire the changed signal when it removed
a bookmark. This means the bookmark file would not be marked as dirty,
and would not be saved on exit/autosave (unless another change was
made).
2018-02-11 16:33:00 -05:00
Simon Doppler
ddc41d2fa4
Remove raw list of open tabs
2018-02-11 22:15:14 +01:00
George Edward Bulmer
21a50cf961
Use the repr() of the exception instead of str()
2018-02-11 17:46:09 +00:00
George Edward Bulmer
b2e85a8b83
Simplify to lambda with default argument
2018-02-11 16:33:26 +00:00
Florian Bruhin
3170e35b31
Simplify QtWebKit scheme handlers
2018-02-11 17:14:41 +01:00
George Edward Bulmer
7c0832daf2
Change lambda definition - avoid mutability error
2018-02-11 15:51:48 +00:00
Florian Bruhin
c112290664
Make QtNetwork download manager great^H^H^H^Hlobal again
...
We originally made it per-window in b502280c06 for
issue #228 , but that was back when we still needed window IDs for stuff like
message.info.
Nowadays, there's no reason for it to be per-window anymore. The rest of the
download code can deal with one global download manager (because QtWebEngine has
one), and apart from QNAM code which wasn't used here anyways (as tab_id=None)
there was nothing using the window ID anymore.
Also see #3456 which was the original motivation for this change.
2018-02-11 16:15:29 +01:00
George Edward Bulmer
2f4910f1f2
Add test for escaping {{url}}
2018-02-11 14:17:28 +00:00
Florian Bruhin
e10940100d
Improve/regenerate docs
2018-02-11 11:17:37 +01:00
Florian Bruhin
9c4564fd70
Merge remote-tracking branch 'origin/pr/3581'
2018-02-11 11:16:20 +01:00
Florian Bruhin
5510c5fda1
Update changelog
2018-02-11 11:14:50 +01:00
Florian Bruhin
0743094c2f
Fix copyright year in __init__.py
2018-02-11 11:12:39 +01:00
Florian Bruhin
32ba5a5c95
Improve styling for qute://version and move button
2018-02-11 11:11:55 +01:00
Florian Bruhin
ab768d6f6a
Merge remote-tracking branch 'origin/pr/3567'
2018-02-11 11:11:41 +01:00
Florian Bruhin
b7f54a89db
Update changelog
2018-02-11 10:46:45 +01:00
Florian Bruhin
bba1eb0d76
Add missing QUrl.RemovePassword
2018-02-11 10:45:08 +01:00
Florian Bruhin
d306f81130
Merge remote-tracking branch 'origin/pr/3525'
2018-02-11 10:44:27 +01:00
Florian Bruhin
007aa8ab8d
Add some newlines
2018-02-11 10:35:46 +01:00
Florian Bruhin
e53cf08548
Update changelog
2018-02-11 10:35:31 +01:00
Florian Bruhin
772f0025f1
Clean up netrc support
2018-02-11 10:29:02 +01:00
Florian Bruhin
b64eb8dfe6
Merge remote-tracking branch 'origin/pr/3505'
2018-02-11 10:27:00 +01:00
Florian Bruhin
4e77aa41d8
Update changelog
2018-02-11 09:39:33 +01:00
Florian Bruhin
f28ab5285c
Merge remote-tracking branch 'origin/pr/3582'
2018-02-11 09:37:49 +01:00
Jay Kamat
f6eb8929c3
Fix incorrect scroll offset after tab pin
2018-02-11 00:20:39 -05:00
Florian Bruhin
70868e1d99
Make pylint shut up
2018-02-10 23:18:43 +01:00
Florian Bruhin
219b75524b
Fix TestCreatingDir on non-Linux
2018-02-10 23:08:47 +01:00
Florian Bruhin
a472351423
Fix typing.Union check on Python 3.5.2
...
Apparently 3.5.4 has __origin__ for typing.Union, but 3.5.2 has not. Let's hope
this now works everywhere...
2018-02-10 21:27:40 +01:00
Jay Kamat
11e04c79f4
Add add/remove tests to benchmarks
2018-02-10 15:10:33 -05:00
Florian Bruhin
52d7ff79fc
Skip another scroll test with Qt 5.10 and Travis
2018-02-10 20:15:17 +01:00
Florian Bruhin
f25e706e11
Add Python 3.7 compatibility to setup.py
2018-02-10 20:08:33 +01:00
Florian Bruhin
5f62c016cc
Fix test_standarddir.TestCreatingDir
...
What we actually want to test here is that the given type directory is created
and has the correct permission, we don't care much about the basedir itself.
Also, the download dir is not created automatically.
This test failed on Python 3.7 because intermediate directories now aren't
created with the given mode anymore:
https://bugs.python.org/issue19930
https://docs.python.org/3.7/whatsnew/3.7.html#changes-in-the-python-api
2018-02-10 20:07:27 +01:00
Florian Bruhin
cd1bd7d52a
Skip ASCII locale tests with Python 3.7
2018-02-10 19:58:30 +01:00
Florian Bruhin
5b22209eef
Run test_init_benchmark on CI again
...
See #2777
2018-02-10 19:50:20 +01:00
Florian Bruhin
aa5da1b312
Don't set up YAML constructors/resolvers for default loaders
...
After reading https://pyyaml.org/wiki/PyYAMLDocumentation again, turns out
Loader.add_constructor and .add_implicit_resolver are actually *class* methods.
In other words, we've been adding dozens of constructors/resolvers to the
default YAML loader object, causing it to slow down massively in other tests
which call configdata.init().
Instead, create our own loader class and only add them once there.
I'm still not sure why this caused the duration to increase with every YAML load
though - that might still be some kind of bug in PyYAML.
Fixes #2777
2018-02-10 19:35:03 +01:00
Jay Kamat
33d9d4fe90
Improve performance of startup and shutdown
...
We call 'update_tab_titles' a lot of times which calls 'setTabText' on
every tab. 'setTabText' calls tabSizeHint and minTabSizeHint on every
tab as well, meaning this is an n^2 operation repeated many times.
First, this prevents setTabText from being called unless it's needed,
removing most of the work done.
Second, I remove tabs in reverse, to avoid recomputing the above for
every tab on shutdown (which is at least n^3)
2018-02-10 13:23:35 -05:00
Florian Bruhin
63766c1711
Fix typing.Union checks with Python 3.7
2018-02-10 17:22:21 +01:00
Florian Bruhin
80ee43beca
Add Python 3.7 to tox.ini
2018-02-10 16:54:55 +01:00
Florian Bruhin
c9bc72a539
Fix docstring
2018-02-10 16:54:45 +01:00
George Edward Bulmer
a6f09b1f73
Add the modified keys with a loop
2018-02-10 15:41:02 +00:00
Florian Bruhin
015889373e
Update docs
2018-02-10 16:28:34 +01:00
Florian Bruhin
6d750aff8b
Merge remote-tracking branch 'origin/pr/3430'
2018-02-10 16:27:41 +01:00
George Edward Bulmer
ffddf9a15f
Code style review changes
2018-02-10 15:14:07 +00:00
Marc Jauvin
e6749dcf9f
[count] overrides win_id for tab-give cmd
...
- Resolves #3548
2018-02-10 10:13:07 -05:00
Marc Jauvin
e8cc74f499
Merge branch 'master' into issue#2785
2018-02-10 08:17:47 -05:00
rnhmjoj
6f9be72c5b
Update tests for statusbar changes
2018-02-10 13:15:12 +01:00
rnhmjoj
715cc7b7dd
Make statusbar widgets configurable
2018-02-10 13:15:11 +01:00
Florian Bruhin
5662407e01
Update docs
2018-02-10 11:53:52 +01:00
Florian Bruhin
4ac4833c93
Clean up YamlConfig._handle_migrations
2018-02-10 11:44:18 +01:00
Florian Bruhin
c7133a662c
Merge remote-tracking branch 'origin/pr/3577'
2018-02-10 11:40:49 +01:00
Florian Bruhin
11a0580e64
Fix Qt spelling
2018-02-10 10:41:57 +01:00
Florian Bruhin
8d5c0b5fa2
Merge remote-tracking branch 'origin/pr/3565'
2018-02-10 10:41:38 +01:00
Florian Bruhin
4e4a1d01c4
Remove qutebrowser_viewsource userscript
...
:view-source --edit can now be used instead.
2018-02-10 10:37:05 +01:00
Florian Bruhin
995e563352
Update docs
2018-02-10 10:36:58 +01:00
Florian Bruhin
92bc61d08d
Merge remote-tracking branch 'origin/pr/3563'
2018-02-10 10:19:52 +01:00
Marc Jauvin
c6ad23f921
address all mentionned issues except for file://
...
- re-encode url using QUrl.RemovePassword | QUrl.FullyEncoded
- improve readability for clipboard / primary selection code block
2018-02-10 00:38:27 -05:00
Marc Jauvin
504e29c004
fix configfiles tests
...
- fix test_renamed_key()
- fix test_deleted_key()
- combine both test_merge_persist tests using @pytest.mark.parametrize
- fix _handle_migrations(): mark data dirty for renamed and deleted
2018-02-09 21:25:11 -05:00
Marc Jauvin
d88a13598a
syntax improvements and use real class attributes
2018-02-09 17:14:40 -05:00
Florian Bruhin
b648345bf8
Update changelog
2018-02-09 22:50:36 +01:00
Florian Bruhin
47ec052194
Merge remote-tracking branch 'origin/pr/3558'
2018-02-09 22:50:00 +01:00
Florian Bruhin
3779f59a23
Update changelog
2018-02-09 22:48:51 +01:00
Florian Bruhin
30994b1154
Merge remote-tracking branch 'origin/pr/3555'
2018-02-09 22:48:25 +01:00
Florian Bruhin
207107082d
Merge commit '74759fe04c0fa1d465cb36d3f8b00d6ebd9ef49d'
2018-02-09 22:31:34 +01:00
Florian Bruhin
c82be35639
Update changelog
2018-02-09 22:29:40 +01:00
Florian Bruhin
16a3bece34
Add missing import
2018-02-09 22:28:14 +01:00
Florian Bruhin
1ea1c1ac78
Merge remote-tracking branch 'origin/pr/3549'
2018-02-09 22:27:31 +01:00
Florian Bruhin
1ed427c342
Update changelog
2018-02-09 22:27:05 +01:00
Florian Bruhin
7058a3be74
Regenerate docs
2018-02-09 22:25:39 +01:00
Florian Bruhin
0b5ba828db
Add missing test
2018-02-09 22:23:07 +01:00
Florian Bruhin
3a5baa1956
Merge remote-tracking branch 'origin/pr/3554'
2018-02-09 22:22:18 +01:00
Marc Jauvin
74759fe04c
add missing decorator to _on_proc_finished
2018-02-09 15:33:02 -05:00
Marc Jauvin
9f49ac8e59
revert "fix shorten line" from origin/master
2018-02-09 15:25:20 -05:00
Marc Jauvin
57fe674dc4
shorten lines
2018-02-09 15:22:56 -05:00
Florian Bruhin
80650d4c96
Merge remote-tracking branch 'origin/pr/3544'
2018-02-09 21:04:21 +01:00
Marc Jauvin
44af6f3f1b
Merge branch 'master' of https://github.com/qutebrowser/qutebrowser into tabs.mode_on_change
2018-02-09 14:57:41 -05:00
Marc Jauvin
9b7db8ee8a
Need to mark config as dirty in _handle_migrations()
...
Add tests for tabs.persist_mode_on_change migration
2018-02-09 14:41:33 -05:00
Marc Jauvin
4e2e2606ef
Merge branch 'tab-input-mode-patch' of https://github.com/mjauvin/qutebrowser into new--tab-input-mode
2018-02-09 12:28:40 -05:00
Marc Jauvin
85dfe5c403
add special code to migrate tabs.persist_mode_on_change setting to tabs.mode_on_change.
2018-02-09 11:28:21 -05:00
Marc Jauvin
a3ce03e0bd
address requested changes
...
- syntax cleanup
- use attr.ib when declaring class attributes
- remove unnecessary comments
- code simplification
2018-02-09 10:39:02 -05:00
Marc Jauvin
fecb551c5e
shorten lines
2018-02-09 10:39:02 -05:00
Marc Jauvin
91b70fab70
fix pylint/flake8 errors
2018-02-09 10:39:02 -05:00
Marc Jauvin
f3b52aaf23
fix asciidoc for tabs.mode_on_change
2018-02-09 10:39:02 -05:00
Marc Jauvin
21fc848839
document code a bit more
2018-02-09 10:39:02 -05:00
Marc Jauvin
a7db197e45
replace persist_mode_on_change with mode_on_change
...
supports old persist_mode_on_change functionality or new save/restore mode
2018-02-09 10:39:02 -05:00
Marc Jauvin
eb7e114e5f
add propery to save tab input mode
2018-02-09 10:39:02 -05:00
Marc Jauvin
9e524e4be8
use tabs.mode_on_change to persist or restore mode
2018-02-09 10:39:02 -05:00
Florian Bruhin
5d8b48a2ed
Show where a command handler is defined
2018-02-09 16:32:59 +01:00
Florian Bruhin
89bd723eaa
Add scripts/*.js to MANIFEST.in
2018-02-09 13:18:12 +01:00
Florian Bruhin
7caab75fa4
Clean up cycle-inputs.js
2018-02-09 12:14:07 +01:00
Florian Bruhin
8c3039abc9
Merge remote-tracking branch 'origin/pr/3452'
2018-02-09 12:13:30 +01:00
Florian Bruhin
3e38aab0f6
Document configdata.Migrations
2018-02-09 11:31:25 +01:00
Florian Bruhin
589605fe92
Fix lint
2018-02-09 10:39:16 +01:00
Florian Bruhin
f92b52b20c
Update changelog
2018-02-09 10:38:42 +01:00
Florian Bruhin
1a81f7231b
Make sure multiple wrong keys are reported
2018-02-08 22:02:22 +01:00
Florian Bruhin
1a88b64c67
Add a test for keyconfig.get_command(..., default=True)
2018-02-08 21:53:41 +01:00
Florian Bruhin
298dcb4c90
Validate config separately from migrations
...
It makes for cleaner code, and it makes sure the target of renamed options
actually exists.
2018-02-08 21:49:41 +01:00
Florian Bruhin
e0dd7970d8
Skip fragment test
...
Looks like this now XPASSes with Qt 5.10 on Windows
2018-02-08 20:23:34 +01:00
Florian Bruhin
ea80ded8d5
Try to stabilize editor end2end test
...
Let's also wait until we're sure the mtime changed here.
2018-02-08 20:21:25 +01:00
George Edward Bulmer
950e4227e3
Pylint fix
2018-02-08 14:01:51 +00:00
Florian Bruhin
15fecc962d
Fix lint
2018-02-08 11:41:58 +01:00
Florian Bruhin
53e7d13c2d
Skip failing scrolling tests on Qt 5.10 on Travis
...
See #3572
2018-02-08 10:42:55 +01:00
Florian Bruhin
c520130389
Add tests for a failing watch/unwatch
2018-02-08 10:29:23 +01:00
Florian Bruhin
9d32807e33
Don't try to remove watched files if none exist
...
If we try to remove watched files but we couldn't actually watch any earlier,
we'd get a Qt warning message:
QtWarningMsg: QFileSystemWatcher::removePaths: list is empty
2018-02-08 10:29:17 +01:00
Florian Bruhin
1da58b6a4c
Break long line
2018-02-08 09:54:20 +01:00
Florian Bruhin
b6f311f4b2
Remove workaround for old pylint issue
2018-02-08 09:52:14 +01:00
Florian Bruhin
35b56f2659
Remove eslint max-lines suppression
...
We already turn that off globally now.
2018-02-08 09:51:06 +01:00
Florian Bruhin
f51ac8ab6e
Log QFileSystemWatcher errors
2018-02-08 00:32:02 +01:00
George Edward Bulmer
a9dfed948a
Remove extraneous function
2018-02-07 22:55:42 +00:00
Florian Bruhin
37a9691e29
Only focus qutebrowser again after editing finished
...
See #3431 , #3432
2018-02-07 23:14:16 +01:00
Florian Bruhin
3306247ae5
Merge branch 'editor-watch'
2018-02-07 22:31:49 +01:00
Florian Bruhin
cd97d5e6e2
Update changelog
2018-02-07 22:31:28 +01:00
Florian Bruhin
01ccbc679d
Fix lint
2018-02-07 22:26:32 +01:00
Florian Bruhin
abd56a5abd
Wait until the mtime changed
2018-02-07 21:40:03 +01:00
George Edward Bulmer
0ee5302836
Pylint fixes
2018-02-07 20:03:46 +00:00
George Edward Bulmer
682c3462f1
Ensure version info only gets pasted once
2018-02-07 19:21:53 +00:00
George Edward Bulmer
9128afa01d
Move pastebin_version() to version.py
...
This also fixes the introduced cyclic dependencies
2018-02-07 19:03:05 +00:00
George Edward Bulmer
a3d62c86df
Fix style for linter
2018-02-07 17:28:57 +00:00
George Edward Bulmer
d0ec33730e
Add deleteLater to the paste callbacks
2018-02-07 17:28:57 +00:00
George Edward Bulmer
86d3abc0c4
Additional code review changes from PR #3480
2018-02-07 17:28:57 +00:00
George Edward Bulmer
f45d572677
Some style fixes in PR #3480 's review
2018-02-07 17:28:57 +00:00
Bryan Kok
1d568a5cf4
Add feature to pastebin version string
...
Added a --paste flag to the :version command and a JS button with corresponding qutescheme URL in the Version debug page to enable pastebinning version.
2018-02-07 17:28:57 +00:00
Florian Bruhin
7dbe9a59e8
Update changelog
2018-02-07 18:26:43 +01:00
Florian Bruhin
aa3970c83e
Merge branch 'pr/3371'
2018-02-07 18:26:19 +01:00
Florian Bruhin
1c662ae94c
Revive iframe test as flaky
...
See #1525
2018-02-07 18:25:25 +01:00
Florian Bruhin
0bdee1e292
Stabilize the flaky iframe test
...
The test above this one loads hello.txt, but we don't wait for the "load
finished" message, so it can arrive after the previous test already finished and
make this test not wait properly.
However, we also can't easily wait for the load finished message in the
previous test as it only appears with QtWebEngine, not QtWebKit.
As a workaround, we simply load another file in that test, to circumvent this
kind of cross-interaction.
2018-02-07 18:16:03 +01:00
Florian Bruhin
e874db9ce3
Remove pytest version filter
2018-02-07 12:05:29 +01:00
Florian Bruhin
5135e0f35d
Add .pytest_cache to .gitignore
2018-02-07 12:04:42 +01:00
Florian Bruhin
6d1e3fb2b7
Add missing more-itertools requirements
2018-02-07 12:04:09 +01:00
Florian Bruhin
e6a4237e1b
Revert "Downgrade PyQt again"
...
This reverts commit c987a94596 .
2018-02-07 11:53:47 +01:00
Florian Bruhin
e5771c785e
Merge branch 'pyup-scheduled-update-2018-02-05'
2018-02-07 11:49:03 +01:00
Florian Bruhin
29e8c01d17
Merge branch 'qt510-2'
2018-02-07 11:48:39 +01:00
Florian Bruhin
054b92bbe8
Support retrying downloads with Qt 5.10
...
Fixes #2787
2018-02-07 11:19:41 +01:00
Florian Bruhin
7537acfd5d
Use PyQt 5.10 on AppVeyor
2018-02-07 10:53:13 +01:00
Florian Bruhin
d9e095f7cf
Add PyQt 5.10 to Travis CI
...
See #3522
2018-02-07 10:52:34 +01:00
Perry Thompson
ec7583eb97
Add troubleshooting info for widevine to FAQ
2018-02-06 17:52:05 -06:00
Florian Bruhin
5fd3943ebc
Make callback mandatory for tab.selection()
2018-02-06 23:33:37 +01:00
Florian Bruhin
c987a94596
Downgrade PyQt again
...
Upgrading PyQt in a separate branch.
2018-02-06 23:18:53 +01:00
Florian Bruhin
20d5b4e384
Update pytest log handling
...
In pytest 3.4, we now need to explicitly set the log level and caplog.at_level
now sets the level of the root handler.
2018-02-06 23:17:40 +01:00
Florian Bruhin
ce8d15d2b0
Simplify selection handling and remove QUTE_SELECTED_HTML
...
It was broken at least since caret support was introduced and it was only
available for QtWebKit anyways, so let's just drop it. This also makes the tab
API a bit simpler.
2018-02-06 22:48:00 +01:00
Florian Bruhin
16375f20d5
Always use JavaScript to get selection
...
It looks like getting the selection via the widget has issues even with Qt 5.10.
On Windows, we always get wrong results.
On Linux, it seems to be flaky. I first thought this was because of a race
between JavaScript setting the selection and Qt getting it, as now we don't use
JS to get the selection anymore, so it's possible that we get it before the
older JS code finished running. However, even calling selectedText() from a JS
callback didn't seem to help...
Since has_selection also is flawed and it taking a callback would make code more
complex as well, let's just assume there is a selection if the text is not
empty. In fact, that is exactly what QtWebEngine does for hasSelection anyways!
Fixes #3523
2018-02-06 21:58:31 +01:00
George Edward Bulmer
5ceecc2b04
Add docstring for new argument
2018-02-06 18:53:45 +00:00
George Edward Bulmer
9c47128799
Use provided methods instead of protected members
2018-02-06 18:25:15 +00:00
George Edward Bulmer
0893e3a038
Fix boolean variable name
2018-02-06 17:35:24 +00:00
George Edward Bulmer
26810e02c1
Add a way to view source in editor
2018-02-06 17:22:59 +00:00
Florian Bruhin
8c39e8f764
Update changelog
...
[ci skip]
2018-02-06 14:13:06 +01:00
George Edward Bulmer
22c33ddfb8
Add special cases of double quotes: eg {{url}}
...
This allows a second level of indirection quite cheaply, but is a
band-aid fix.
This commit should be taken as temporary until command arguments are
reworked.
2018-02-05 21:45:49 +00:00
George Edward Bulmer
8b29ce93ec
Add substitutions for the other 3 types
2018-02-05 21:40:12 +00:00
George Edward Bulmer
bfeac178e2
Make {suburl} expand to {url}
...
This is useful for the following case from IRC:
`:set aliases '{"twmpv": "spawn mpv {suburl}"}'
which now sets:
:twmpv -> spawn mpv {url}
2018-02-05 21:00:29 +00:00
pyup-bot
9eefbf24a2
Update pytest-bdd from 2.19.0 to 2.20.0
2018-02-05 16:59:33 +01:00
pyup-bot
782ec573ab
Update pytest from 3.3.1 to 3.4.0
2018-02-05 16:59:32 +01:00
pyup-bot
8ee3c743e4
Update hypothesis from 3.44.21 to 3.44.25
2018-02-05 16:59:30 +01:00
pyup-bot
fac666e607
Update sip from 4.19.6 to 4.19.7
2018-02-05 16:59:29 +01:00
pyup-bot
67623930dd
Update pyqt5 from 5.9.2 to 5.10
2018-02-05 16:59:27 +01:00
pyup-bot
4a9cbf8930
Update pylint from 1.8.1 to 1.8.2
2018-02-05 16:59:26 +01:00
pyup-bot
08ea34174c
Update astroid from 1.6.0 to 1.6.1
2018-02-05 16:59:24 +01:00
pyup-bot
8579616fea
Update isort from 4.2.15 to 4.3.2
2018-02-05 16:59:23 +01:00
pyup-bot
417a114a94
Update isort from 4.2.15 to 4.3.2
2018-02-05 16:59:21 +01:00
pyup-bot
d3050d73ba
Update setuptools from 38.4.0 to 38.5.0
2018-02-05 16:59:19 +01:00
pyup-bot
46b85c11f1
Update flake8-bugbear from 17.12.0 to 18.2.0
2018-02-05 16:59:18 +01:00
pyup-bot
cfcd1bba1e
Update coverage from 4.4.2 to 4.5
2018-02-05 16:59:16 +01:00
pyup-bot
075dd8e0a4
Update coverage from 4.4.2 to 4.5
2018-02-05 16:59:15 +01:00
pyup-bot
8fc88a68fb
Update codecov from 2.0.14 to 2.0.15
2018-02-05 16:59:13 +01:00
Florian Bruhin
6f028e9ad0
Update copyright years
2018-02-05 12:19:50 +01:00
seebye
8dbf506916
Fix #3542 going back twice on lazy loading a tab
2018-02-05 01:20:56 +01:00
Florian Bruhin
c8de4675db
Various spelling fixes
2018-02-04 21:30:59 +01:00
Jay Kamat
0ebde6f2e9
Delete QWebEngineDownloadItem objects when wrapper object is deleted
2018-02-04 13:41:23 -05:00
Ryan Roden-Corrent
a8733d7228
Increase timeout in test_editor.
...
The test with watch=True was failing on the Travis OSX environment
becausee it was timing out before the file_updated signal was fired.
2018-02-04 07:02:25 -05:00
Ryan Roden-Corrent
833df95485
Only detect save for open-editor and config-edit.
...
Scope down the new trigger-on-save behavior to only open-editor and
config-edit. Other uses of the editor such as edit-url and edit-command
will behave as before.
2018-02-03 19:57:47 -05:00
Marc Jauvin
989e60b01f
Revert "fix line length"
...
This reverts commit def2920a35 .
2018-02-03 19:10:19 -05:00
Jay Kamat
d7a436568c
Add a new --no-last flag to :tab-focus
...
--no-last prevents going to the last focused tab if a new tab does not
need to be focused.
2018-02-03 14:31:44 -05:00
Ryan Roden-Corrent
ceab4a4c1f
Fix pylint warnings
2018-02-03 08:12:45 -05:00
Ryan Roden-Corrent
0aefffce4d
Attempt to solve flaky editor tests.
...
These are passing locally but failing in travis. This fixes two possible
timing issues:
- Ensure the signals are set up befor the pidfile is written. The
function that sends the signal waits for the pidfile to exist, so this
ensures we don't miss a signal.
- Wait for the log message indicating that the editor file was read
back, so the test doesn't run through before we get a chance to read
from the editor.
2018-02-01 20:55:18 -05:00
Ryan Roden-Corrent
eab9b70f28
Fix pylint for editor.py.
...
Notate unused parameter.
2018-02-01 20:43:35 -05:00
Marc Jauvin
a70feae98f
Merge branch 'master' of https://github.com/qutebrowser/qutebrowser into issue#3547-spawn-race-condition
2018-01-31 18:13:48 -05:00
Marc Jauvin
132095c98c
only open the tab for output once the job has finished running
2018-01-31 18:05:23 -05:00
Marc Jauvin
def2920a35
fix line length
2018-01-31 18:05:14 -05:00
Florian Bruhin
79935e048c
Break long line
2018-01-31 22:35:03 +01:00
Florian Bruhin
5e96dc4374
Merge pull request #3543 from Knowlege/master
...
Updated PyYaml link
2018-01-30 23:33:28 +01:00
Knowlege
532205aafa
Updated PyYaml link
2018-01-30 23:29:02 +01:00
lufte
d8510e61aa
Use the instance attribute instead of querying the registry
2018-01-30 19:26:45 -03:00
Florian Bruhin
fb5d0f7e14
Merge pull request #3540 from mjauvin/system-proxy
...
document proxy environment variable for system proxy
2018-01-30 15:56:53 +01:00
Marc Jauvin
b55ae02eda
document proxy environment variable for system proxy
2018-01-30 09:48:52 -05:00
Florian Bruhin
400e1bc7d7
Show tab titles as tooltip
...
Closes #3535
2018-01-30 07:11:48 +01:00
Ryan Roden-Corrent
e9023ce233
Remove newline in editor.py
2018-01-29 07:50:32 -05:00
Marc Jauvin
f16f425cb1
generate the docs
2018-01-28 10:41:09 -05:00
Marc Jauvin
1a2ab0ffe7
add back rl-yank key binding; use alt-y for prompt-yank.
2018-01-28 10:28:11 -05:00
Florian Bruhin
d01a0b1d64
Fix :bookmark-add with no URL
2018-01-28 13:05:49 +01:00
Ryan Roden-Corrent
530a1859a3
Trigger editor signal on exit if content changed.
...
With the previous code, the editor could miss the final signal on a
save-and-exit. This is avoided by always running the file changed
handler on a successful exit, but only firing the signal if the content
actually changed (to avoid double-signalling).
2018-01-27 15:03:18 -05:00
Ryan Roden-Corrent
7c33ff4046
Fix flaky editor test.
...
Give the process time to write its PID before trying to interrupt it.
2018-01-27 15:03:18 -05:00
Ryan Roden-Corrent
2e5595b5c6
Update test_configcommands for new editor behavior.
...
Now that the editor signals on save, the configcommands editing
unittests need to emit the signal in the patch rather than relying on
on_proc_closed to emit the signal.
2018-01-27 15:03:18 -05:00
Ryan Roden-Corrent
a940de3717
Rename editing_finished to file_updated.
...
ExternalEditor now fires an event on save rather than on exit, so the
signal name should be updated to match the behavior.
2018-01-27 15:03:18 -05:00
Ryan Roden-Corrent
23eb6a6c53
Fix test_editor for edit-on-write behavior.
...
Now that the editor fires editing_finished on every write, the unit
tests had to be updated.
- Add qtbot to the editor fixture to resolve `QtWarningMsg:
QSocketNotifier: Can only be used with threads started with QThread`
- Use removePaths instead of disconnect to stop the watcher from
signalling. This avoids an error when the editor is forcibly cleaned
up by the tests without the signal ever being connected, but otherwise
has the same behavior as disconnecting the singal.
- wait for a signal on write instead of proc closed
- wait for _watcher.fileChanged in test_unreadable to ensure the write
event is fired before the test exits.
2018-01-27 15:03:18 -05:00
Ryan Roden-Corrent
8a9b98c2dc
Editor triggers update on every save.
...
For any command that spawns an editor, tirgger an update on save, not
just on exit.
- :open-editor writes the text field on save
- :edit-url navigates on save
- :edit-url -t opens a new tab on each save
- :edit-command updates the statusbar text on save
- :edit-command --run runs a command on each save
- :config-edit reloads the config on save
Resolves #2307 .
Helps mitigate #1596 by allowing users to 'save' partial work, and
notice if there was an error without closing the editor.
2018-01-27 15:03:18 -05:00
Marc Jauvin
fe4dd579f9
add --sel option to prompt-yank
2018-01-26 22:06:05 -05:00
Florian Bruhin
cdaf3ac097
Fix .Xresources example
...
[ci skip]
2018-01-26 18:32:27 +01:00
Florian Bruhin
1dac05a7ac
Fix test_tab.py
2018-01-26 11:58:02 +01:00
Florian Bruhin
24cc54a574
Simplify initializing of AbstractTab subclasses
...
If we already pass the tab object, no need to pass the window ID separately.
2018-01-26 09:47:26 +01:00
Florian Bruhin
4b9bba7505
Edit changelog
2018-01-26 09:38:49 +01:00
Florian Bruhin
677e188894
Update docs
2018-01-26 09:37:35 +01:00
Florian Bruhin
125b3c1de9
Merge remote-tracking branch 'origin/pr/3521'
2018-01-26 09:25:50 +01:00
Marc Jauvin
d2287b7a2e
move backend specific code out of AbstractTab into respective backend
...
classes.
2018-01-25 22:38:25 -05:00
Marc Jauvin
ddcc960aa5
url arg was a string
2018-01-25 22:01:18 -05:00
Marc Jauvin
88ff0c0425
url_str -> urlstr: urlstr used accross the codebase, more consistent
2018-01-25 18:01:43 -05:00
Marc Jauvin
520b473350
modify Question.yank_text to Question.url
...
error out when question.url is None
add url to yesno prompts
add default binding in prompt mode (ctrl-y)
2018-01-25 17:48:45 -05:00
Marc Jauvin
bb8bc7ea3c
fix test related to view-source
...
remove pygment title
remove view-source from history
2018-01-25 15:17:03 -05:00
Marc Jauvin
eb888cc8d7
fix latest change requests
2018-01-25 13:35:23 -05:00
Florian Bruhin
b93bee18d0
Regenerate docs
2018-01-25 11:03:45 +01:00
Florian Bruhin
40df5baa83
Merge remote-tracking branch 'origin/pr/3515'
2018-01-25 09:04:44 +01:00
Florian Bruhin
ab4c875792
Update changelog
2018-01-25 09:03:47 +01:00
Florian Bruhin
54e9edfd60
Merge remote-tracking branch 'origin/pr/3515'
2018-01-25 09:02:20 +01:00
Marc Jauvin
3b1fb92b11
remove extra line to satisfy flake8
2018-01-24 19:13:28 -05:00
Marc Jauvin
d77c9ae009
Add prompt-yank command
...
add yank_text property to utils.usertypes.Question class
Resolves #2591
2018-01-24 18:53:06 -05:00
Marc Jauvin
d7c51f7fc4
implement requested changes for PR #3521 .
2018-01-24 18:04:05 -05:00
Daniel Hahler
4f04c776c1
fixup! fixup! incdec_number: add support for port
2018-01-24 22:22:00 +01:00
Florian Bruhin
56f83ddde4
Update changelog
2018-01-24 21:33:32 +01:00
Florian Bruhin
961eebaf71
Merge remote-tracking branch 'origin/pr/3510'
2018-01-24 21:33:04 +01:00
Florian Bruhin
3df469bc38
Update changelog
2018-01-24 21:30:17 +01:00
Florian Bruhin
582236e42b
Merge remote-tracking branch 'origin/pr/3509'
2018-01-24 21:28:58 +01:00
Florian Bruhin
c153ff5a97
Update docs
2018-01-24 21:15:10 +01:00
Florian Bruhin
e5b6ccd716
Merge remote-tracking branch 'origin/pr/3506'
2018-01-24 21:14:25 +01:00
Florian Bruhin
7690b9f8cd
Update changelog
2018-01-24 20:56:29 +01:00
Florian Bruhin
caca3614f8
Merge remote-tracking branch 'origin/pr/3443'
2018-01-24 20:36:15 +01:00
Florian Bruhin
b1c54f5706
Re-add Qt 5.10 to tox.ini only
2018-01-24 06:17:09 +01:00
Marc Jauvin
2e912eeadf
move backend dependent code to AbstractAction respective classes
2018-01-23 23:30:22 -05:00
Florian Bruhin
072d42347a
Revert "Also use PyQt 5.10 on AppVeyor"
...
This reverts commit c3deeaf283 .
2018-01-23 20:36:40 +01:00
Florian Bruhin
e26e04985b
Revert "Update to PyQt 5.10"
...
This reverts commit a701426703 .
2018-01-23 20:36:31 +01:00
Florian Bruhin
c3deeaf283
Also use PyQt 5.10 on AppVeyor
2018-01-23 20:00:14 +01:00
Florian Bruhin
a701426703
Update to PyQt 5.10
2018-01-23 19:42:22 +01:00
Florian Bruhin
3652553a8f
Mark second qute://settings test as flaky
2018-01-23 19:42:22 +01:00
Marc Jauvin
83515628a8
fix line indentation warning
2018-01-23 10:11:34 -05:00
Marc Jauvin
56e6864159
Inject qutebrowser's JS files at DocumentReady
...
Use WebEngine's view-source: scheme for "view-source" command.
Also add missing URL when viewing source for WebKit.
Resolves #3490
Resolves #2395
Resolves #2948
2018-01-23 10:03:04 -05:00
Florian Bruhin
b0cc0c62cc
Merge pull request #3513 from qutebrowser/pyup-scheduled-update-01-22-2018
...
Scheduled weekly dependency update for week 03
2018-01-23 07:35:37 +01:00
Florian Bruhin
0d12ddc3ea
Merge pull request #3514 from blueyed/vim-readonly
...
scripts/dev/src2asciidoc.py: vim: readonly
2018-01-23 07:35:14 +01:00
Daniel Hahler
9f14ae184f
fixup! incdec_number: add support for port
2018-01-22 21:48:21 +01:00
Daniel Hahler
6a40cbf160
incdec_number: add support for port
2018-01-22 21:26:46 +01:00
Daniel Hahler
dd0703eddf
scripts/dev/src2asciidoc.py: vim: readonly
...
Set 'readonly' via Vim modeline in generated scripts.
2018-01-22 21:21:54 +01:00
pyup-bot
c5c01c5364
Update hypothesis from 3.44.16 to 3.44.21
2018-01-22 16:52:20 +01:00
pyup-bot
abd5da1fd1
Update codecov from 2.0.13 to 2.0.14
2018-01-22 16:52:18 +01:00
pyup-bot
036031a48b
Update certifi from 2017.11.5 to 2018.1.18
2018-01-22 16:52:17 +01:00
pyup-bot
762205ef07
Update certifi from 2017.11.5 to 2018.1.18
2018-01-22 16:52:15 +01:00
pyup-bot
6edd096de4
Update certifi from 2017.11.5 to 2018.1.18
2018-01-22 16:52:14 +01:00
Simon Doppler
02396cb455
Remove useless function
2018-01-22 16:12:45 +01:00
Simon Doppler
f11d7ab489
Check if the window still exists
2018-01-22 16:11:59 +01:00
Simon Doppler
ab9f17b053
Use default value for dictionary item in tabs handler
2018-01-22 16:08:30 +01:00
Ryan Roden-Corrent
1e9a70855d
Show '&' properly in completion widget.
...
When highlighting the matched part of the text, we need to html-escape
the pattern used to find the matching text so it will replace terms that
have been escaped in the text, like &.
Resolves #3508 .
2018-01-21 07:46:53 -05:00
Ryan Roden-Corrent
9d5beff937
Set some PRAGMAs to optimize the history database.
...
Enable write-ahead-logging and reduce the synchronous level to NORMAL.
This should reduce the number of writes to disk and avoid some of the
hangs users are experiencing.
Resolves #3507 .
Resolves #2930 (optimistically, reopen if not fixed).
See https://sqlite.org/pragma.html and https://www.sqlite.org/wal.html .
2018-01-20 15:49:52 -05:00
Florian Bruhin
d62cb58f7d
Release v1.1.1
...
(cherry picked from commit 4e8abaa2d1 )
2018-01-20 19:21:40 +01:00
Florian Bruhin
9c3dcae793
Update changelog for v1.1.1
2018-01-20 19:20:12 +01:00
Florian Bruhin
84478cd81c
Update changelog
2018-01-20 18:58:03 +01:00
Florian Bruhin
748de85ba2
Fix crash when getting signals for closed tabs
...
Fixes #3498
2018-01-20 18:50:17 +01:00
Florian Bruhin
4b3a237e2a
Update changelog
2018-01-20 18:29:23 +01:00
Florian Bruhin
1f5cbf21a3
Merge remote-tracking branch 'origin/pr/3348'
2018-01-20 18:28:14 +01:00
Florian Bruhin
182bf1d688
Simplify platform handling
2018-01-20 16:43:39 +01:00
Jimmy
aebc1a7d48
Greasemonkey: don't complain about an unset run-at
...
Apparently is is not an unusual situation to leave it unset and rely on
the default. Logging a warning about this could be unnecerasily
confusing for users.
I'm leaving the log message in there if it is set to something weird
like `window-load` or `document-complete` which scriptish may support.
2018-01-20 13:40:53 +13:00
Jimmy
d5d22783ea
Greasemonkey: optimize pattern matching a little
...
Moving `QUrl.toString()` out of the `_match()` function which is called
for every pattern in every stript seems to make it ~40% faster.
2018-01-20 13:40:53 +13:00
Jimmy
971b413991
Greasemonkey: make *clude regexes case insensitive
...
Sometimes I don't read specs so good.
2018-01-20 13:40:47 +13:00
Jimmy
b2f95339ce
Greasemonkey: support regexes in @include and @exclude.
...
Like the spec says, if a value for the @include or @exclude rules starts
and ends with a '/' it should be parsed as a regular expression.
Technically a ECMAScript syntax regular expression, but I am not sure of
the differences and I assume they are far fewer than the similarities.
One that I did see mentioned was that javascript RegExp doesn't support
unicode. Although it apparently does support a 'u' flag now.
Note that code will only be ran for QtWebkit and QWebEngine < 5.8
we rely on the builtin support for metadata it QWebEngine for most
things greasemonkey related. Sadly it seems that they missed the regex
requirement too. I've opened a ticket to track that https://bugreports.qt.io/browse/QTBUG-65484
2018-01-20 13:39:19 +13:00
Jay Kamat
968367b042
Simplify logic for checking if an element is a frame
2018-01-19 15:25:03 -05:00
Artur Shaikhullin
1e3f11ca13
Fix eslint warnings
2018-01-19 23:17:03 +06:00
Artur Shaikhullin
22d77fadd7
Eliminate caret blinking
2018-01-19 22:40:47 +06:00
Artur Shaikhullin
2d2d71512f
Add initial comment
2018-01-19 22:31:12 +06:00
Artur Shaikhullin
79766aa65b
Add chromium license
2018-01-19 22:28:49 +06:00
Artur Shaikhullin
0e522d48ac
Add myself to CODEOWNERS to watch for caret code
2018-01-19 22:25:58 +06:00
Artur Shaikhullin
6eb001fc34
Rename js caret file
2018-01-19 22:24:11 +06:00
Artur Shaikhullin
859469c600
Remove redundancy comment
2018-01-19 22:15:54 +06:00
Artur Shaikhullin
4fde8ff204
Add separate function in js to set current platform
2018-01-19 22:14:01 +06:00
Marc Jauvin
4a4a6549d0
use a temporary attribute of the class to prevent the loop; tested to work in both backends
2018-01-19 09:34:45 -05:00
Marc Jauvin
9e258a490e
might as well use the same loop prevention mechanism for both backends
2018-01-19 06:59:40 -05:00
Argn0
bd7054fa2e
use self.delete and add test
2018-01-19 09:29:37 +01:00
Argn0
aeb7bac886
added :session-load --delete
2018-01-19 02:33:42 +01:00
Marc Jauvin
a2ca59b822
add netrc support for webengine. resolves #2785 .
2018-01-18 18:06:47 -05:00
Florian Bruhin
cb2cd615e0
Update docs
2018-01-18 07:57:31 +01:00
Florian Bruhin
380021e818
Merge remote-tracking branch 'origin/pr/3484'
2018-01-18 07:54:42 +01:00
Jay Kamat
12d729c3bc
Merge remote-tracking branch 'upstream/master' into jay/frame-hinting
2018-01-17 17:24:43 -05:00
Jay Kamat
ffda82170d
Fix several style issues
2018-01-17 17:02:53 -05:00
Slackhead
ef1de133ed
remove old cycle-inputs.js
2018-01-17 19:41:54 +00:00
Slackhead
743aa86dfb
run eslint on cycle-inputs.js
2018-01-17 19:32:05 +00:00
Marc Jauvin
72c97ca846
sort modes, "normal" mode first
2018-01-17 14:25:07 -05:00
Jay Kamat
c5e688f26c
Stop iterating over every frame to check if element is frame
2018-01-17 13:08:04 -05:00
Marc Jauvin
5db4493667
@The-Compiler requested changes addressed.
2018-01-17 10:11:32 -05:00
Florian Bruhin
c86eaa17e2
Update changelog
2018-01-17 15:54:32 +01:00
Florian Bruhin
b3ebcfd394
Merge remote-tracking branch 'origin/pr/3482'
2018-01-17 15:53:47 +01:00
Florian Bruhin
23bdee06b3
Update changelog
2018-01-17 14:42:13 +01:00
Florian Bruhin
923785c781
Merge remote-tracking branch 'origin/pr/3467'
2018-01-17 14:41:45 +01:00
Florian Bruhin
06075a4974
Update docs
2018-01-17 13:38:54 +01:00
Florian Bruhin
a1798b3843
Merge remote-tracking branch 'origin/pr/3474'
2018-01-17 13:38:22 +01:00
Florian Bruhin
54a93dfcf8
Update changelog
2018-01-17 13:27:32 +01:00
Florian Bruhin
4acb63ca49
Merge remote-tracking branch 'origin/pr/3478'
2018-01-17 13:23:31 +01:00
Florian Bruhin
d5f7ec4372
Update changelog
2018-01-17 11:43:31 +01:00
Florian Bruhin
d94c0cf064
Merge remote-tracking branch 'origin/pr/3464'
2018-01-17 11:42:24 +01:00
Marc Jauvin
e25a33790f
remove blank line to satisfy flake8
2018-01-15 20:44:56 -05:00
Florian Bruhin
d06f07af80
Fix Makefile and make sure it's tested
...
Fixes #3492
2018-01-15 22:42:12 +01:00
Marc Jauvin
9bb256b545
shorten lines
2018-01-15 16:19:38 -05:00
Marc Jauvin
fb0a418d0a
use url even if we do not need it
2018-01-15 16:03:22 -05:00
Marc Jauvin
2a274f0d8b
add test for bind without args and fix other tests to include win_id
2018-01-15 15:52:15 -05:00
Marc Jauvin
528b48dab6
fix line too
2018-01-15 15:51:14 -05:00
Marc Jauvin
9b473093b1
silence pylint warning
2018-01-15 15:45:29 -05:00
Marc Jauvin
f6cfb0c529
add missing super() call
2018-01-15 15:44:21 -05:00
Marc Jauvin
7d620a4bfc
fix pylint/flake8 errors
2018-01-15 13:39:42 -05:00
Florian Bruhin
fbbb9ae940
Release v1.1.0
2018-01-15 19:39:16 +01:00
Florian Bruhin
d3f3be03dd
Update changelog for v1.1.0
2018-01-15 19:29:14 +01:00
Florian Bruhin
8fd6a2ff77
Merge pull request #3445 from seelaman/hist_import-cleaning
...
filter out records with None in any field.
2018-01-15 19:15:08 +01:00
Florian Bruhin
af163eca09
Merge pull request #3491 from qutebrowser/pyup-scheduled-update-01-15-2018
...
Scheduled weekly dependency update for week 02
2018-01-15 19:06:06 +01:00
pyup-bot
f2beaa455e
Update hypothesis from 3.44.13 to 3.44.16
2018-01-15 16:44:12 +01:00
Marc Jauvin
05d076ba9f
fix asciidoc for tabs.mode_on_change
2018-01-15 09:09:13 -05:00
Florian Bruhin
8c8cb3bc29
Fix crash when clicking <form> element with name="value" child
...
https://stackoverflow.com/q/22942689/2085149
Fixes #2877
See #2569
2018-01-14 20:20:51 +01:00
Marc Jauvin
81b85994a1
document code a bit more
2018-01-14 13:29:51 -05:00
Nemanja Nedeljkovic
8d8566a5ab
Merge branch 'master' of github.com:qutebrowser/qutebrowser into angular-hints
2018-01-13 23:18:39 +01:00
Marc Jauvin
a2cdb2e4db
Merge branch 'patch-issue#24' of https://github.com/mjauvin/qutebrowser into patch-issue#24
2018-01-13 15:55:05 -05:00
Marc Jauvin
48b6c160f5
improve styling as suggested by @jgkamat
2018-01-13 15:52:49 -05:00
Christian Helbling
cd20c32973
simplify more
2018-01-13 10:48:13 +01:00
Christian Helbling
141d020ede
import debug is not needed anymore
2018-01-13 10:47:58 +01:00
Marc Jauvin
4848182204
code cleanup
...
- move qute_bindings block AFTER qute_settings block
- remove unnecessary variable declaration
2018-01-13 01:39:05 -05:00
Marc Jauvin
1e8694f3cc
remove unused module
2018-01-12 17:35:04 -05:00
Marc Jauvin
3a7ac51a00
html template to render qute://bindings
2018-01-12 17:28:56 -05:00
Marc Jauvin
8940e05baf
bind without agruments shows current bindings
2018-01-12 17:27:44 -05:00
Marc Jauvin
4ae33deebd
add handler for qute://bindings
2018-01-12 17:24:20 -05:00
Marc Jauvin
5dbfff016e
replace persist_mode_on_change with mode_on_change
...
supports old persist_mode_on_change functionality or new save/restore mode
2018-01-12 17:05:47 -05:00
Marc Jauvin
c87d8d0d8f
add propery to save tab input mode
2018-01-12 17:02:34 -05:00
Marc Jauvin
f7a08dfd34
use tabs.mode_on_change to persist or restore mode
2018-01-12 16:57:05 -05:00
Christian Helbling
559059d244
simplify code - state_before_fullscreen seems not to be needed anymore
2018-01-12 11:21:55 +01:00
Christian Helbling
699abef159
fix regression of #2778 which reappeared with qt 5.10 in combination with up-to-date KDE
...
this should also avoid an unneccessary KDE maximize animation when exiting fullscreen into maximized
2018-01-12 10:54:05 +01:00
Argn0
d9741d56c5
removed a trailing whitespace
2018-01-11 16:38:55 +01:00
Argn0
57e8b428c3
e.accept() and return
2018-01-11 15:45:44 +01:00
Argn0
200b36bd36
review 1
2018-01-11 14:09:08 +01:00
Argn0
2d7dd391a3
review 1
2018-01-11 14:08:17 +01:00
Argn0
e654abf128
deleted folder
2018-01-11 14:05:18 +01:00
Argn0
66d0591684
new method
2018-01-11 14:03:43 +01:00
Argn0
4932323d3b
review 1 setText
2018-01-11 12:40:20 +01:00
Argn0
860b22c0e0
review 1
2018-01-10 22:05:14 +01:00
Argn0
9fd2ad9909
review 1
2018-01-10 21:34:19 +01:00
Argn0
1db4309eec
review 1
2018-01-10 21:29:31 +01:00
Argn0
2c4d2beea3
option to close commandline by deleting the prefix
2018-01-10 20:14:09 +01:00
Argn0
be5b8e2632
option to close commandline by deleting the prefix
2018-01-10 20:02:39 +01:00
Argn0
5003432a55
option to close commandline by deleting the prefix
2018-01-10 19:59:34 +01:00
Florian Bruhin
1f8d6e2168
Update changelog
2018-01-10 09:39:46 +01:00
Florian Bruhin
6b9edefb05
Merge remote-tracking branch 'origin/pr/3432'
2018-01-10 09:39:08 +01:00
Florian Bruhin
0518a03b1e
Merge remote-tracking branch 'origin/pr/3423'
2018-01-10 09:38:07 +01:00
Florian Bruhin
c1855e1741
Update changelog
2018-01-10 09:35:42 +01:00
Florian Bruhin
b2ed0c0081
Merge remote-tracking branch 'origin/pr/3468'
2018-01-10 09:35:28 +01:00
Florian Bruhin
05b005ce5c
Merge pull request #3475 from qutebrowser/pyup-scheduled-update-01-08-2018
...
Scheduled weekly dependency update for week 01
2018-01-09 13:01:31 +01:00
Simon Doppler
dea0aa9f7c
Add tabs page
2018-01-08 18:01:42 +01:00
pyup-bot
7b348fe17c
Update pytest-qt from 2.3.0 to 2.3.1
2018-01-08 16:39:21 +01:00
pyup-bot
70ad02b79b
Update hypothesis from 3.44.4 to 3.44.13
2018-01-08 16:39:20 +01:00
pyup-bot
6a3b5a9d4e
Update setuptools from 38.2.5 to 38.4.0
2018-01-08 16:39:18 +01:00
pyup-bot
8459c662e7
Update pep8-naming from 0.4.1 to 0.5.0
2018-01-08 16:39:17 +01:00
pyup-bot
f836b615c1
Update flake8-future-import from 0.4.3 to 0.4.4
2018-01-08 16:39:15 +01:00
pyup-bot
6c91633293
Update flake8-docstrings from 1.1.0 to 1.3.0
2018-01-08 16:39:14 +01:00
pyup-bot
0101596148
Update codecov from 2.0.10 to 2.0.13
2018-01-08 16:39:12 +01:00
Nemanja Nedeljkovic
5f3ee66775
Code style improvement and documentation
2018-01-07 12:06:36 +01:00
Nemanja Nedeljkovic
957d5b3f02
Add more angular1 selectors
2018-01-07 11:58:02 +01:00
Nemanja Nedeljkovic
ec08a19e7d
Rename angular.html to angular1.html
2018-01-07 11:23:28 +01:00
Nemanja Nedeljkovic
64dac66259
local angular
2018-01-07 11:22:46 +01:00
Artur Shaikhullin
81a9ea58d6
Restore pylint rule
2018-01-07 09:25:29 +06:00
Fritz Reichwald
9b4da25578
Fix another test by using the new KeySequence
2018-01-07 00:11:47 +01:00
Nemanja Nedeljkovic
9bb6ba0823
Fix
2018-01-06 22:09:17 +01:00
Nemanja Nedeljkovic
22725beede
Maybe fix?
2018-01-06 21:22:12 +01:00
Nemanja Nedeljkovic
f64af6b64a
Angular 1 test
2018-01-06 20:45:13 +01:00
Jay Kamat
8500509532
Implement is_visible for same-origin frames
2018-01-06 11:13:54 -08:00
Fritz Reichwald
dc66ec5d8c
Fix expectation in Fullscreen info message to fit new description of
2018-01-06 20:01:57 +01:00
Nemanja Nedeljković
555f43c854
Add ng-click for hinting to Angular 1.x links
2018-01-06 19:18:17 +01:00
Artur Shaikhullin
aebd59247d
Check platform variable
2018-01-06 22:45:53 +06:00
Artur Shaikhullin
c4e50369e7
Enable caret only when mode is 'caret'
2018-01-06 22:43:39 +06:00
Florian Bruhin
089a3990ff
Merge pull request #3454 from qutebrowser/pyup-scheduled-update-01-01-2018
...
Scheduled weekly dependency update for week 00
2018-01-06 09:57:44 +01:00
Artur Shaikhullin
dc8c919c30
Fix pylint warnings
2018-01-05 22:44:07 +06:00
Artur Shaikhullin
5553e64a75
Restore chrome-caretbrowsing extension comments
2018-01-05 19:21:55 +06:00
Artur Shaikhullin
8268c1d7ff
Disable eslint rules globally
2018-01-05 19:02:19 +06:00
Artur Shaikhullin
b6662fd243
Use inner functions for callbacks
2018-01-05 18:35:15 +06:00
Florian Bruhin
a90730bea7
Pin pytest to 3.3.1 for now
...
See https://github.com/pytest-dev/pytest-bdd/issues/229
2018-01-05 11:36:26 +01:00
Jay Kamat
3d508be9ff
Clear unpinned tabs before prompting user with :tab-only
2018-01-04 18:34:40 -08:00
Andrea Scarpino
16fb9bc80e
scripts: filter history records
...
We don't need to import history records about `moz-extensions`, `about` pages, `dactyl` and so on...
2018-01-04 19:46:18 +01:00
Ryan Roden-Corrent
c290b3f80f
Don't attempt completion if input starts with flag.
...
Always interpret the first word in the command string as the command to
offer completions for, even if that word looks like a flag.
Fixes #3460 , where the command string `:-w open` would attempt to offer
completions for `open` but crash because the parsing was thrown off.
By moving the flag-stripping logic to _after_ we determine the command,
`:-w open` interprets `:-w` as the command. Since that is not a valid
command, we won't offer any completions.
2018-01-04 12:34:06 -05:00
Florian Bruhin
c3bcb1d9ba
Remove old testbrowser.py
2018-01-03 10:15:00 +01:00
Manuel Seelaus
9363bc3f24
replace empty titles with an empty string. https://github.com/qutebrowser/qutebrowser/pull/3445#issuecomment-354840724
2018-01-02 20:06:29 -07:00
pyup-bot
673919451e
Update werkzeug from 0.13 to 0.14.1
2018-01-01 16:34:16 +01:00
pyup-bot
a98cd16ff3
Update flake8-polyfill from 1.0.1 to 1.0.2
2018-01-01 16:34:15 +01:00
pyup-bot
8cec185e4b
Update attrs from 17.3.0 to 17.4.0
2018-01-01 16:34:13 +01:00
pyup-bot
9c256740c6
Update attrs from 17.3.0 to 17.4.0
2018-01-01 16:34:12 +01:00
pyup-bot
26bbd10952
Update attrs from 17.3.0 to 17.4.0
2018-01-01 16:34:10 +01:00
Slackhead
7aecebf028
Add cycle-inputs.js to scripts
2017-12-31 15:08:36 +00:00
Slackhead
e989d948ed
Add cycle-inputs.js to userscripts
2017-12-31 14:47:42 +00:00
Artur Shaikhullin
695f734142
Extract js call method
2017-12-30 23:46:04 +06:00
Artur Shaikhullin
e22dc1b5c6
Update copyright year
2017-12-30 23:37:57 +06:00
Artur Shaikhullin
fe4eb19ecf
Add link to chrome-caretbrowsing extension
2017-12-30 23:37:17 +06:00
Artur Shaikhullin
6dc3108747
Get OS name using python
2017-12-30 23:35:12 +06:00
Florian Bruhin
f5edd4941e
Fix MANIFEST.in for testbrowser
2017-12-30 18:33:15 +01:00
Artur Shaikhullin
981f5fd09b
Remove unused import
2017-12-30 23:20:29 +06:00
Artur Shaikhullin
25436e2544
Fix eslint warnings
2017-12-30 09:43:16 +06:00
Florian Bruhin
28889cf099
Use a dict for ModeManager.eventFilter
2017-12-29 20:36:55 +01:00
Florian Bruhin
e7af961be2
Remove filtering of mouse events
...
This was needed for the hide-mouse-cursor setting. However, this setting was
removed in 2223a285ef , so this code has been dead
since then.
2017-12-29 19:36:52 +01:00
Florian Bruhin
a6adbdf167
Clean up testbrowser scripts
2017-12-29 19:10:33 +01:00
Artur Shaikhullin
e254ea2fa7
Add license and description
2017-12-29 23:43:39 +06:00
Florian Bruhin
dcf89f7a28
Fix KeyConfig._prepare
2017-12-29 16:10:12 +01:00
Florian Bruhin
a145497c65
Make :unbind work correctly
2017-12-29 16:05:16 +01:00
Florian Bruhin
81e9060239
Make sure KeySequence keys are valid
2017-12-29 16:04:25 +01:00
Florian Bruhin
caa05df16d
Use KeySequences in config.py
2017-12-29 15:58:20 +01:00
Florian Bruhin
7b3cb14e6e
Revert "Try to have strings in KeyConfig"
...
This reverts commit 28b6b97f39 .
2017-12-29 15:41:28 +01:00
Florian Bruhin
28b6b97f39
Try to have strings in KeyConfig
2017-12-29 15:41:12 +01:00
Artur Shaikhullin
d04a087c2b
Try fix Windows caret issues 2
2017-12-29 20:10:18 +06:00
Florian Bruhin
737ff2cc69
Add <> around special keys in __str__
2017-12-29 14:43:04 +01:00
Florian Bruhin
f1fe26b0b7
Handle modifiers correctly
2017-12-29 14:40:00 +01:00
Florian Bruhin
7b17ab4b3f
Initial str() attempt
2017-12-29 14:22:20 +01:00
Artur Shaikhullin
882beab3f2
Try to fix Windows caret ussues
2017-12-29 19:01:12 +06:00
Florian Bruhin
d9c768ed86
Strip out shift modifier for non-alpha bindings
2017-12-29 13:53:43 +01:00
Artur Shaikhullin
db16a87e68
Removed unused import
2017-12-29 18:39:29 +06:00
Florian Bruhin
917f2a30de
Get tests to collect
2017-12-29 13:23:38 +01:00
Artur Shaikhullin
3b836d3483
Fix lint warnings
2017-12-29 17:56:16 +06:00
Florian Bruhin
cc747b00ce
Move parsing to class
2017-12-29 01:50:51 +01:00
Florian Bruhin
705767bcfb
fixme
2017-12-29 01:43:47 +01:00
Florian Bruhin
5cee39d315
Initial move of keyutils tests
2017-12-29 01:41:55 +01:00
Florian Bruhin
c98eb5502d
Add some FIXMEs
2017-12-29 01:24:05 +01:00
Florian Bruhin
d961211188
Delete some old code
2017-12-29 01:24:05 +01:00
Florian Bruhin
21b3e05ed0
Fix getting reverse bindings
2017-12-29 01:24:05 +01:00
Florian Bruhin
b1dde41b74
Rename sequence.py to keyutils.py
2017-12-29 01:24:05 +01:00
Florian Bruhin
dcf0d21121
Move key related utils to sequence.py
2017-12-29 01:24:05 +01:00
Florian Bruhin
600919a23a
Add a custom KeySequence class
2017-12-29 01:24:05 +01:00
Florian Bruhin
a565b77bf0
Switch from string to QKeySequence
2017-12-29 01:24:05 +01:00
Florian Bruhin
8478a1ea3d
Remove _handle_special_key
2017-12-29 01:24:05 +01:00
Florian Bruhin
26fdc129d3
Split off counts
2017-12-29 01:24:05 +01:00
Florian Bruhin
55803afbd2
Fix matching
2017-12-29 01:24:05 +01:00
Florian Bruhin
a8aaf01ff0
Fix some more stuff (and break some :D)
2017-12-29 01:24:05 +01:00
Florian Bruhin
ddcb5445a2
Initial refactoring for new key parsing
2017-12-29 01:24:05 +01:00
Florian Bruhin
7fe0f9fb16
Update qutebrowser xpm
2017-12-29 01:23:45 +01:00
Artur Shaikhullin
7d181ee4b5
Check if document body exists
2017-12-28 23:04:04 +06:00
Artur Shaikhullin
83f8d84012
Finally enable webengine test
2017-12-28 22:27:47 +06:00
Artur Shaik
734684636f
Merge branch 'master' into webengine_caret
2017-12-28 20:45:01 +06:00
Artur Shaik
5605d3cd8e
Merge branch 'master' into webengine_caret
2017-12-28 20:43:31 +06:00
Artur Shaikhullin
63658d3a1e
Catch userscript exception and show error message
2017-12-28 20:40:37 +06:00
Artur Shaikhullin
9728e90401
Enable test in webengine
2017-12-28 20:05:10 +06:00
Artur Shaikhullin
a01566ed15
Fix loosed variable
2017-12-28 19:17:25 +06:00
Manuel Seelaus
2a7423a515
filter out records with None in any field.
2017-12-27 18:00:02 -07:00
RyanJenkins
53575aaeed
Default raise_windows() alert param to True to preserve existing
...
behavior
2017-12-27 12:40:55 -08:00
RyanJenkins
9cb25e0c76
Raise browser window after editor closes regardless of outcome of
...
inserting text and avoid calling QApplication.instance().alert() in this
scenario.
2017-12-26 20:19:39 -08:00
Florian Bruhin
2ef6e740d9
Merge pull request #3441 from strburst/doc-configuring-fix-typo
...
Fix minor doc typo in example code
2017-12-26 17:26:47 +01:00
Allen Zheng
b5a9612840
Fix minor doc typo in example code
...
There should be an extra parenthesis to close the call to the outer
print function.
2017-12-26 11:21:02 -05:00
Florian Bruhin
d2f0c5dcac
Update changelog
2017-12-26 15:45:50 +01:00
Florian Bruhin
73b6dea1f4
Merge remote-tracking branch 'origin/pr/3427'
2017-12-26 15:45:00 +01:00
Florian Bruhin
aa68e97922
Merge pull request #3435 from qutebrowser/pyup-scheduled-update-12-25-2017
...
Scheduled weekly dependency update for week 52
2017-12-26 15:05:37 +01:00
pyup-bot
501cabc6a0
Update pytest-rerunfailures from 3.1 to 4.0
2017-12-25 16:26:14 +01:00
pyup-bot
0d61c75ce4
Update hypothesis from 3.44.1 to 3.44.4
2017-12-25 16:26:13 +01:00
pyup-bot
c5c3684581
Update setuptools from 38.2.4 to 38.2.5
2017-12-25 16:26:11 +01:00
RyanJenkins
d9b00acdc6
Return focus to qutebrowser when external editor finishes.
2017-12-23 23:59:02 -08:00
Ryan Farley
46f6336e6e
and add back needed connection
2017-12-22 12:47:38 -06:00
Ryan Farley
1d0b91475d
remove broken connection
2017-12-22 12:45:37 -06:00
Ryan Farley
611f3621ec
skip test
...
tests/end2end/features/test_marks_bdd.py::test_jumping_back_after_following_a_link
2017-12-22 12:36:45 -06:00
Ryan Farley
252fbf651f
add back blank line for D204
2017-12-22 11:47:13 -06:00
Ryan Farley
f90342741a
comma spacing
2017-12-22 11:41:07 -06:00
Ryan Farley
feb327e80e
fix style issues, better names, less indirection
...
Added spaces to comments, use python naming conventions, remove
_load_progress_fake as unnecessary, rename _on_load_*_fake to
_on_load_*_workaround (for less confusion), and use qtutils rather than
QT_VERSION_STR
2017-12-22 11:32:31 -06:00
seebye
125af531cb
database qute://back
2017-12-22 15:44:42 +01:00
Ryan Farley
fa10b76ce8
remove extraneous loadStarted connection
...
Copying and pasting without thinking might lead to redundancy.
2017-12-22 01:27:35 -06:00
Ryan Farley
4a6c9ecc34
only reroute load signals with Qt=5.10
...
This stops regressions on Qt<=5.9. It also reintroduces #3110 , but
fixing #3110 was just a nice side effect rather than the main goal here.
2017-12-21 21:22:20 -06:00
Ryan Farley
d6c56b83a8
fix line length
2017-12-21 16:31:45 -06:00
Ryan Farley
5bfab54828
supplement broken webengine load signals
...
This uses the much more reliable `loadProgress(100)` in place of
`loadFinished(true)` for WebEngine, with `loadProgressFake` and
`loadFinishedFake` used instead of the 'official' variants.
2017-12-21 15:35:43 -06:00
Florian Bruhin
5c00eea122
Fix stripping of lines in asciidoc2html
...
This broke in #3382 since re.fullmatch does a different thing for trailing
newlines:
>>> line
'===========\n'
>>> re.match(r'^=+$', line)
<_sre.SRE_Match object; span=(0, 11), match='==========='>
>>> re.fullmatch(r'=+', line)
>>>
This now strips the line by default, and adds newlines if needed.
2017-12-20 11:35:27 +01:00
seebye
801b6b90ce
pylint adjustments
2017-12-20 01:15:12 +01:00
seebye
c8ae405bfe
fix #3396
2017-12-20 00:10:21 +01:00
Cody Scott
3c0d51c253
Fix broken link
2017-12-19 12:18:10 -05:00
Florian Bruhin
4ffdd9da0e
Add new B008 to flake8 ignores
2017-12-19 08:57:33 +01:00
Florian Bruhin
fde0516ccf
Merge remote-tracking branch 'origin/pr/3413'
2017-12-19 08:56:01 +01:00
Florian Bruhin
f2c93a0061
Use request instead of pytestconfig
...
This unifies QuteProc and the other Process subclasses a bit.
2017-12-19 08:55:35 +01:00
Florian Bruhin
12ba642547
Avoid using pytest.config
...
It's going to be removed in some future pytest release.
2017-12-19 08:32:32 +01:00
Jay Kamat
012e63520f
Blacklist non-implemented qtwebkit frame features
2017-12-18 18:44:28 -08:00
Jay Kamat
b87f0b6f65
Add support for non-link buttons to test_hints
2017-12-18 17:04:50 -08:00
Jay Kamat
344ebed6ad
Add iframe tests for insert on click and follow-selected
2017-12-18 11:00:03 -08:00
pyup-bot
23e3a5ef7d
Update hypothesis from 3.42.1 to 3.44.1
2017-12-18 16:23:16 +01:00
pyup-bot
7d3645adc2
Update flake8-bugbear from 17.4.0 to 17.12.0
2017-12-18 16:23:15 +01:00
Florian Bruhin
dbb89b1073
Update docs
2017-12-18 16:11:29 +01:00
Florian Bruhin
f203535e00
Merge remote-tracking branch 'origin/pr/3407'
2017-12-18 16:11:16 +01:00
Ryan Roden-Corrent
ef2de8201a
Fix colors.completion.fg default and description.
...
Update the description to mention the number of columns and change the
default to ["white", "white", "white"] to make it more obvious that
multiple colors can be specified. This also satisfies the config test
that expects the default value for ListOrValue types to be a list.
One other test had to be tweaked to use a config option that is still
just a QtColor rather than a ListOrValue.
While it is possible to provide just two colors, it is "undefined
behavior". It will use the first color as the third color, but that is
an artifact of the implementation and therefore not documented (though
also not an error, as it is harmless).
2017-12-18 08:42:22 -05:00
Ryan Roden-Corrent
31c2988693
Fix test_config.test_get for updated config.
...
colors.completion.fg is now a list instead of a QColor. As this test
specifically wanted to test a QColor, I just changed it to a different
config option.
2017-12-17 13:28:00 -05:00
Florian Bruhin
e66dce2360
Merge pull request #3402 from tbroadley/fix-typos
...
Fix typo
2017-12-16 17:28:18 +01:00
Thomas Broadley
3775bf929f
Fix typos
2017-12-16 11:24:14 -05:00
Jay Kamat
6433096611
Disable max-lines in eslint
2017-12-15 21:30:08 -05:00
Florian Bruhin
d03e314762
Explain eslint philosophy
2017-12-15 23:26:18 +01:00
Florian Bruhin
b8a5c04b69
Clean up run_pylint_on_tests
2017-12-15 23:22:26 +01:00
Florian Bruhin
c506ffa4cd
pylint: More config adjustments
2017-12-15 23:17:28 +01:00
Florian Bruhin
430126dcc8
pylint: Re-enable ungrouped-imports
2017-12-15 23:08:53 +01:00
Florian Bruhin
f5dd392701
Regenerate docs
2017-12-15 23:00:06 +01:00
Jay Kamat
7f9d4888fd
Fix a couple eslint errors
...
Restructure serialize_elem into a bunch of smaller functions
2017-12-15 15:55:16 -05:00
Jay Kamat
2898c416aa
Simplify and clean up frame logic
2017-12-15 15:16:18 -05:00
Florian Bruhin
21bf446147
Reorder pylint ignores
2017-12-15 20:06:12 +01:00
Florian Bruhin
e65c0dd8a7
pylint: Re-enable bad-continuation
...
And lots and lots of whitespace changes.
2017-12-15 19:16:55 +01:00
Florian Bruhin
93cd200bb7
Add docstring
2017-12-15 19:06:23 +01:00
Florian Bruhin
4c24b9ed4a
Reorder pylint disables
2017-12-15 17:16:55 +01:00
Florian Bruhin
26a622c46d
Disable wrong inconsistent-return-statements
2017-12-15 16:33:47 +01:00
Florian Bruhin
f4ed31b295
Add an utils.Unreachable exception
2017-12-15 16:33:47 +01:00
Florian Bruhin
016fc0ebb1
Fix some inconsistent returns
2017-12-15 16:33:47 +01:00
Florian Bruhin
97a4e8d847
Rewrite error handling in hist_importer script
...
Raise an exception instead of calling sys.exit
2017-12-15 16:33:47 +01:00
Florian Bruhin
1a4a9b4392
Declare *args before keyword arguments
...
See https://pylint.readthedocs.io/en/latest/whatsnew/1.8.html
2017-12-15 16:33:47 +01:00
Florian Bruhin
fc987ea9c0
Make message.confirm_async keyword-only
2017-12-15 14:49:49 +01:00
Florian Bruhin
79717528ec
Fix exception message formatting
2017-12-15 14:42:37 +01:00
Florian Bruhin
7cebd95936
Simplify test_getitem
2017-12-15 14:41:38 +01:00
Florian Bruhin
bb44f1d4cc
Remove old pylint disables
2017-12-15 14:39:42 +01:00
Florian Bruhin
e76732693c
Fix wrong import order
2017-12-15 14:35:07 +01:00
Florian Bruhin
a4101662b2
pylint: Disable logging-not-lazy
...
We log to RAM anyways
2017-12-15 14:29:50 +01:00
Florian Bruhin
3f9ded3bed
Add missing docstrings
2017-12-15 13:55:06 +01:00
Florian Bruhin
03a339b93a
Update pylint
2017-12-15 13:42:54 +01:00
Florian Bruhin
8173a48b8a
Don't access stale settings object after hinting
...
When QtWebEngine shuts down, it calls pending callbacks, which means we access
an invalid 'settings' object when that happens. The stack would look something
like this:
0 QtWebEngineCore::WebEngineSettings::setAttribute(QtWebEngineCore::WebEngineSettings::Attribute, bool)
12 QtWebEngineCore::CallbackDirectory::invokeEmptyInternal<QVariant const&>(QtWebEnginePrivate::QWebEngineCallbackPrivateBase<QVariant const&>*)
14 QtWebEngineCore::CallbackDirectory::~CallbackDirectory()
19 QWebEnginePage::~QWebEnginePage()
If we instead get the settings from the view freshly, we get a RuntimeError from
PyQt telling us that it's dead. Not sure why it doesn't know about settings
being dead...
With that, we'd get a RuntimeError, which we can simply ignore as it doesn't
matter anyways if the tab is gone.
Fixes #3399
2017-12-14 22:56:44 +01:00
Florian Bruhin
76db8d6f81
Make webelem.OrphanedError subclass of webelem.Error
...
This means something like this:
:hint ;; later 20 follow-hint a ;; later 20 tab-close
Won't crash anymore, as the webelem.Error will be shown in the statusbar.
2017-12-14 22:43:19 +01:00
Florian Bruhin
dc1d5036b6
Simplify scrollbar width calculation
...
This gives us slightly different values it seems, but I think they are more
correct (and don't need the "+ 5" above).
Taking the width directly (not the sizeHint width) returned values like 100 or
so when the scrollbar wasn't shown yet, so that seems wrong.
2017-12-14 09:39:07 +01:00
Florian Bruhin
58043b5653
Always subtract scroll bar width from completion view
...
The situation where there's no scroll bar at the point the column widths are
calculated is a very rare one. What happens more often is that the scroll bar
disappears due to filtering, in which case we didn't recalculate the column
widths anyways.
Furthermore, we can even go wrong with this calculation, when we calculate the
column widths while the entire completion is invisible - then the scroll bar
won't be visible either, and we won't subtract the space needed for it.
Let's not try to optimize for this uncommon case, and just always subtract the
scrollbar, even if it's not there initially.
Fixes #3359
Closes #3389
2017-12-14 09:13:34 +01:00
Florian Bruhin
f0ad24b08a
Remove long deprecated :download invocation
2017-12-14 09:06:46 +01:00
Florian Bruhin
dce4c68827
Update docs
2017-12-14 09:03:51 +01:00
Florian Bruhin
43588b2818
Merge remote-tracking branch 'origin/pr/3393'
2017-12-14 09:02:31 +01:00
Florian Bruhin
5620acb81f
Update Debian install instructions
...
[ci skip]
2017-12-14 08:59:54 +01:00
Florian Bruhin
ac7b56b2b8
Merge remote-tracking branch 'origin/pr/3392'
2017-12-13 23:05:40 +01:00
Ryan Roden-Corrent
57e2d407ce
Support different colors per completion column.
...
Now colors.completion.fg may be set to a list to specify a different
color for each completion column. For example:
:set colors.completion.fg [black,blue,white] will use black text for the
first column, blue for the second, and white for the third.
Setting to a single value still works and behaves as before. The default
is unchanged from 'white'.
Resolves #1794 .
2017-12-13 17:03:59 -05:00
Florian Bruhin
7a3554e77a
Stabilize :session-save --quiet test
...
By adding a way to check for the loglevel, we can easily check there's no
message but still wait for the session to be saved.
2017-12-13 23:02:44 +01:00
Florian Bruhin
f34bdfbb50
Revert "Remove :session-save --quiet test"
...
This reverts commit bea71ed3a2 .
I think I can think of a way to stabilize it now.
2017-12-13 22:46:38 +01:00
Ryan Roden-Corrent
12112e0fc7
Implement command-accept --rapid.
...
command-accept --rapid will run the command without clearing the prompt,
allowing "rapid fire" commands. For example, one could open completion
for `open -t` and open several tabs in a row.
The default binding is ctrl+enter.
Resolves #588 .
2017-12-13 16:30:42 -05:00
Florian Bruhin
0a612db733
Rename/move encoding test
2017-12-13 21:13:47 +01:00
Florian Bruhin
ddcdfa54aa
Fix test for invalid guiprocess encoding
2017-12-13 21:12:56 +01:00
Kevin Velghe
cc4e8c1aae
fix password_fill using libsecret
2017-12-13 21:06:09 +01:00
Florian Bruhin
922b1e8f10
Use system locale to decode subprocess output
2017-12-13 20:09:56 +01:00
Florian Bruhin
07d07c7fae
Update changelog
2017-12-13 20:06:43 +01:00
Florian Bruhin
2b3250144b
Merge remote-tracking branch 'origin/pr/3388'
2017-12-13 20:06:00 +01:00
Florian Bruhin
cdb90cbee7
Regenerate docs
2017-12-13 19:59:54 +01:00
Florian Bruhin
afb0807064
Update changelog
2017-12-13 19:58:01 +01:00
Florian Bruhin
f32b4d88ba
Merge remote-tracking branch 'origin/pr/3385'
2017-12-13 19:56:53 +01:00
George Edward Bulmer
84e0ce757a
Fix erroneous docstring in a recently added test.
2017-12-13 14:50:25 +00:00
Ryan Roden-Corrent
6420037dd9
Fix histcategory query reuse logic.
...
I mistakenly checked the length of wheres instead of words. This fixes
that check, renames 'wheres' to 'where_clause' to be clear
that it is a string and not an array, and adds a test.
2017-12-13 08:39:34 -05:00
Ryan Roden-Corrent
2e36e5151e
Fix comment in histcategory.
2017-12-13 08:21:48 -05:00
George Edward Bulmer
28961ab177
Add a test with invalid unicode in spawned stdout.
...
stderr features identical behaviour, so is currently untested.
2017-12-13 12:46:46 +00:00
Florian Bruhin
4caf2fd8b7
Update changelog
2017-12-13 09:27:25 +01:00
Florian Bruhin
c8aef015b0
Merge remote-tracking branch 'origin/pr/3201'
2017-12-13 09:22:36 +01:00
Florian Bruhin
31e3356d01
Merge remote-tracking branch 'origin/pr/3382'
2017-12-13 08:43:21 +01:00
Florian Bruhin
bea71ed3a2
Remove :session-save --quiet test
...
When nothing gets logged, we can't check whether the session was already saved.
2017-12-13 08:41:29 +01:00
Ryan Roden-Corrent
ae294e92ad
Remove unused re import
2017-12-12 20:27:06 -05:00
Ryan Roden-Corrent
8358c76f86
Fix casing of LIKE in comment
2017-12-12 20:26:30 -05:00
Ryan Roden-Corrent
158cfa1194
Clean up "any order" SQL query code.
...
- Replace a list with a generator
- Add commments to the less obvious parts
- Simplify the binding variable names
2017-12-12 17:28:38 -05:00
George Edward Bulmer
16a9948759
Replace malformed utf-8 characters in spawn output.
...
Previously this simply crashed if there was ever malformed utf-8 in the
stderr or stdout streams, perhaps as a result of an incorrectly spawned
command. See e.g. #3222
2017-12-12 22:23:33 +00:00
Florian Bruhin
19596e3104
Make qute://log lines darker
2017-12-12 22:52:35 +01:00
George Edward Bulmer
4844a68bfc
Change a rogue re.fullmatch into a re.search.
...
Sometimes tests were timing out. Perhaps with fullmatch these tests were
rarely failing to parse the logs for the information.
2017-12-12 21:42:10 +00:00
Justin Partain
8f5394934f
Fix bad merge when rebasing incremental_search feature
2017-12-12 11:32:52 -05:00
Justin Partain
aff6510e35
Refactor _incremental_search() based on PR review
2017-12-12 11:31:28 -05:00
Justin Partain
bcd9d13684
Update tests to use search.ignore_case
2017-12-12 11:31:28 -05:00
Justin Partain
9f511fe18c
pylint fix, change if len(text) to if text
2017-12-12 11:31:28 -05:00
Justin Partain
8451899a76
Add block for ignore_case
2017-12-12 11:31:28 -05:00
Justin Partain
4eebd2a85d
Create config.search.* group with ignore_case and incremental
2017-12-12 11:31:28 -05:00
Justin Partain
bb2fcddcd4
Update incremental_search PR with changes from review
2017-12-12 11:31:28 -05:00
Justin Partain
77054cc063
Make 'Text not found on page!' warnings replace
2017-12-12 11:31:28 -05:00
Justin Partain
c1094b6660
Feature - incremental_search
...
Added config option to find on a page incrementally, renewing the search
each time a new character is entered.
2017-12-12 11:31:28 -05:00
George Edward Bulmer
9ca6baca4f
Modify instances of re.match to fullmatch or search.
...
This applies the changes to the tests directory only.
2017-12-12 15:07:37 +00:00
Florian Bruhin
22434f4d1b
Merge pull request #3386 from ykgmfq/patch-1
...
Fedora instructions for non-free codecs
2017-12-12 15:57:39 +01:00
ykgmfq
dadf6c0e0a
Fedora instructions for non-free codecs
2017-12-12 15:53:17 +01:00
George Edward Bulmer
b07a4c8c28
Add explicit left anchor to directory check regex.
2017-12-12 13:25:35 +00:00
George Edward Bulmer
3cf4e8ba67
Merge remote-tracking branch 'upstream/master' into regex-match
2017-12-12 13:22:11 +00:00
Ryan Roden-Corrent
6a20f9d4c9
Cache url query when possible.
...
We don't need to regenerate a new query every keystroke, but rather
every time the user adds a new word.
2017-12-12 07:37:31 -05:00
Florian Bruhin
5fe91c30cc
Fix :click-element with an ID containing non-alphanumeric characters
...
See #3201
2017-12-12 11:33:59 +01:00
Florian Bruhin
2e8acf4825
Improve terminating of test processes
...
There are various small changes here:
- If the process is already finished, we don't try to terminate it.
- On Windows, we use QProcess::kill instead of QProcess::terminate, as terminate
will only work with processes which have a GUI loop.
- We assert that quitting the suprocess actually worked.
Fixes #3384
2017-12-12 09:36:28 +01:00
Florian Bruhin
6655793e6a
Use 'terminate' to clean up webserver subprocess
...
We already have TestProcess.terminate which does exactly the same
WebserverProcess.cleanup does.
See #3384
2017-12-12 09:33:34 +01:00
Florian Bruhin
5a97e79099
Update changelog
2017-12-12 07:05:55 +01:00
Florian Bruhin
12f6304659
Fix indent
2017-12-12 07:03:48 +01:00
Florian Bruhin
8e319a762f
Merge remote-tracking branch 'origin/pr/3374'
2017-12-12 07:03:10 +01:00
Florian Bruhin
4f2f1a6494
Make sure editor test doesn't run on Windows
2017-12-12 06:57:39 +01:00
Florian Bruhin
1587181a76
Merge remote-tracking branch 'origin/pr/3380'
2017-12-12 06:51:53 +01:00
Florian Bruhin
81bfa81448
Don't run end2end tests on macOS anymore
...
They are just too flaky on macOS to be useful, and I have no idea how to make
things more stable there
2017-12-12 06:45:47 +01:00
George Edward Bulmer
f74832328f
Modify re.match usage in scripts directory.
2017-12-11 23:06:52 +00:00
George Edward Bulmer
747a9bc5b6
Modify usage of re.match to fit re.fullmatch or re.search.
...
re.match features an implicit left anchor, which can be surprising.
re.fullmatch features implicit anchors on both sides, but is aptly named
and unsurprising.
re.search has no such implicit anchors, which ought to be the default
even if a single anchor is needed.
2017-12-11 21:32:55 +00:00
Florian Bruhin
481dec067d
Don't override background-color for qutebrowser pages
...
Fixes #3381
2017-12-11 17:38:12 +01:00
pyup-bot
d114deac70
Update werkzeug from 0.12.2 to 0.13
2017-12-11 16:23:21 +01:00
pyup-bot
d57a81a3d3
Update pytest from 3.3.0 to 3.3.1
2017-12-11 16:23:19 +01:00
pyup-bot
22fe42d38e
Update hypothesis from 3.40.1 to 3.42.1
2017-12-11 16:23:18 +01:00
pyup-bot
5d8e3a969f
Update cheroot from 5.10.0 to 6.0.0
2017-12-11 16:23:16 +01:00
pyup-bot
713a2ef2c1
Update pylint from 1.7.4 to 1.7.5
2017-12-11 16:23:15 +01:00
pyup-bot
519dc6a7c9
Update setuptools from 38.2.3 to 38.2.4
2017-12-11 16:23:13 +01:00
pyup-bot
dd7a082265
Update codecov from 2.0.9 to 2.0.10
2017-12-11 16:23:12 +01:00
George Edward Bulmer
a2bcd68d56
Code review changes.
...
This fixes whitespace and alignment issues, and removes a stray test.
2017-12-11 13:35:39 +00:00
Ryan Roden-Corrent
8909e03f1c
Match url completion terms in any order.
...
Perviously, 'foo bar' would match 'foo/bar' but not 'bar/foo'. Now it
will match both, using a query with a WHERE clause like:
WHERE ((url || title) like '%foo%' AND (url || title) like '%bar%')
This does not seem to change the performance benchmark. However, it does
create a new query for every character added rather than re-running the
same query with different parameters. We could re-use queries if we
maintained a list like self._queries=[1_arg_query, 2_arg_query, ...].
However, it isn't clear that such a complexity would be necessary.
Resolves #1651 .
2017-12-11 07:46:50 -05:00
Florian Bruhin
72d847d687
travis: Use newer macOS image
2017-12-11 09:36:27 +01:00
Florian Bruhin
6a7d2f4275
Remove dead code
...
QUrl.path() never returns None
2017-12-11 09:14:26 +01:00
Florian Bruhin
f7a94b946f
Add changelog for font size change
...
See 22f3fade24
2017-12-11 08:12:13 +01:00
Florian Bruhin
444f0a36df
Update docs
2017-12-11 07:12:45 +01:00
Florian Bruhin
2a8b74cbec
Get rid of FakeUrl stub
...
We can just use a real QUrl...
2017-12-11 07:10:17 +01:00
Florian Bruhin
6c7b8ce895
Merge remote-tracking branch 'origin/pr/3370'
2017-12-11 07:09:49 +01:00
George Edward Bulmer
3b10584749
Update tests to work with the earlier consumption of stdin etc.
...
Note: this adds an element to vulture's whitelist that vulture
mistakenly identified as unused.
2017-12-10 23:46:35 +00:00
George Edward Bulmer
d32a4ea99e
Seperate _output from guiprocess and keep window opening in spawn.
...
This removes the extraneous variable, and makes testing easier.
2017-12-10 23:45:43 +00:00
George Edward Bulmer
038bb85a67
Capture stdout and stderr always for spawn.
...
This change makes it so that stderr and stdout is unconditionally read
from for a completed process, and sent to qute://spawn-output. This
allows the user to see the results of the previous process, even if they
had forgotten to use --output.
2017-12-10 19:12:47 +00:00
George Edward Bulmer
9f8dbe95e4
Code review changes.
...
This fixes the following problems found in a review:
1. Manual modification of the asciidoc has been undone.
2. --output-to-tab has been renamed to the less verbose --output.
3. spawn_output has been changed to spawn-output in the url.
4. Erroneous newline in imports has been removed.
5. output in guiprocess.py has been marked private.
6. If there is no output for either stderr or stdout, say so.
7. Missing space in a text line was added.
8. Redundant initialising of an empty string removed.
2017-12-08 19:00:46 +00:00
George Edward Bulmer
9f9311840a
Add --output-to-tab flag for :spawn.
...
This puts the exit status, stdout, and stderr in a new tab.
2017-12-08 18:00:07 +00:00
evanlee123
9685eb36b6
Changed FakeUrl's url command to toDisplayString
2017-12-07 16:30:34 -07:00
unknown
25526f00bf
fixed catch error in tabwidget
2017-12-07 15:47:03 -07:00
unknown
2483b8315c
Merge remote-tracking branch 'refs/remotes/origin/master'
2017-12-07 13:36:49 -07:00
Jay Kamat
5c5f992821
Implement find_id inside frames
...
Fixes :click-element
2017-12-07 14:53:15 -05:00
Jay Kamat
825939633a
Implement follow_selected in frames
2017-12-07 14:46:18 -05:00
Jay Kamat
0fc99108bf
Implement iframe support for clicking elements
2017-12-07 14:32:08 -05:00
Jay Kamat
052823b74c
Fix broken width and height location in frames
2017-12-07 13:03:06 -05:00
Jay Kamat
c737d7ab22
Fix various js problems with frame support
2017-12-07 12:47:51 -05:00
Artur Shaikhullin
a8d79fedf3
Fix fetching selection
2017-12-07 17:45:05 +06:00
Artur Shaikhullin
5f1e0224a9
Pass caret tests
2017-12-07 17:30:32 +06:00
evanlee123
18609f1a24
fixed spacing on FakeURL
2017-12-07 02:36:31 -07:00
evanlee123
d1a00eb934
Clarity on protocol field
2017-12-07 02:35:34 -07:00
evanlee123
20ac618752
Simplified code in get_tab_fields
...
changed self.tab_url(idx) to url in get_tab_fields()
2017-12-07 02:04:02 -07:00
Florian Bruhin
d4cadcc62e
Add comment about @run-at
...
[ci skip]
2017-12-07 08:17:15 +01:00
evanlee123
4d13941290
added the scheme field to FakeURL
2017-12-06 23:57:19 -07:00
evanlee123
02b24e8dfb
Update tabwidget.py
2017-12-06 21:35:09 -07:00
Jay Kamat
d4001a4a98
Add support for hinting elements from within same-origin frames
2017-12-06 23:02:00 -05:00
unknown
f0de3601cb
Merge remote-tracking branch 'upstream/master'
2017-12-06 13:37:05 -07:00
unknown
94809032a4
field[protocol] gives the right protocol]
2017-12-06 13:24:27 -07:00
Florian Bruhin
0f20f16b15
Merge branch 'greasemonkey'
2017-12-06 21:24:15 +01:00
Florian Bruhin
f033b228b1
Use py.path.local in save_script
2017-12-06 21:21:55 +01:00
unknown
30b25da273
Added protocol key to field
2017-12-06 13:09:44 -07:00
Florian Bruhin
04d2004528
tox: Fix eslint environment
...
We need to set basepython there to not get InterpreterNotFound
2017-12-06 20:58:14 +01:00
Florian Bruhin
eb90f9835f
Mark qute://settings test as flaky
2017-12-06 20:54:14 +01:00
Florian Bruhin
d6039a0e34
Fix markers for editor test
2017-12-06 20:30:46 +01:00
Florian Bruhin
6aafe02320
Make sure scripts are removed correctly
2017-12-06 20:18:41 +01:00
Florian Bruhin
a37ecc353c
Simplify for loop
2017-12-06 20:18:41 +01:00
Florian Bruhin
2633dcc0d5
Fix lint
2017-12-06 20:18:41 +01:00
Florian Bruhin
dd63508be7
Add a greasemonkey.init()
...
This also creates the greasemonkey directory if it doesn't exist yet, for
discoverability.
2017-12-06 11:55:08 +01:00
Florian Bruhin
0c792d228e
Update docs
2017-12-06 11:12:25 +01:00
Florian Bruhin
3cd2910fa2
Merge branch 'greasemonkey' of https://github.com/toofar/qutebrowser into greasemonkey
2017-12-06 10:47:29 +01:00
Artur Shaikhullin
890e26b2b5
Additional fixes
2017-12-06 13:58:23 +06:00
Jimmy
6b3e16b163
Greasemonkey: mark failing no(sub)frames test as flaky.
...
This test is supposed to ensure that user scripts don't run on iframes
when the @noframes directive is set in the greasemonkey metadata. It is
failing sometimes on travis but passing on local test runs. Personally I
haven't actually ran the whole test suite through, just the javascript
tests. It maybe be some stale state that only shows up when you run the
whole suite. It may be some timing issue that only shows up on travis
because ???. Hopefully this stops the red x from showing up on the PR.
2017-12-06 20:34:29 +13:00
Jimmy
ead108eeeb
fixup! Greasemonkey: Add run-at document-idle.
2017-12-06 20:27:56 +13:00
Jimmy
129f97873a
Greasemonkey: add assert to tests scripts_for assumptions.
...
And crash the users browsing session as a result of any accidental and
totally, otherwise, non-fatal unforseen errors.
2017-12-06 20:21:29 +13:00
Florian Bruhin
7d7c841250
Update changelog
2017-12-06 08:01:39 +01:00
Florian Bruhin
1a3f8662e6
Improve handling of cancelled search callbacks
2017-12-06 07:56:59 +01:00
Florian Bruhin
9ec4e749f1
Merge branch 'fix_search_callbacks' of https://github.com/jupart/qutebrowser
2017-12-06 07:51:19 +01:00
Florian Bruhin
a3ba7b9f60
Reformat hist_importer epilog.
2017-12-06 07:45:52 +01:00
Florian Bruhin
16e09d18fa
Update changelog
2017-12-06 07:42:07 +01:00
Florian Bruhin
549a3a8f70
Improve hist_importer messages
2017-12-06 07:41:41 +01:00
Florian Bruhin
6ea250dc83
Merge remote-tracking branch 'origin/pr/3044'
2017-12-06 07:17:22 +01:00
Artur Shaikhullin
ed1d036077
Fix eslint warnings
...
used some eslint ignore comments
2017-12-06 12:11:06 +06:00
Florian Bruhin
b326f12427
Mark editor test as flaky
...
See #3367
2017-12-06 06:59:08 +01:00
Florian Bruhin
9c042e4313
Update changelog
2017-12-06 06:58:22 +01:00
Florian Bruhin
0df1d07558
Merge remote-tracking branch 'origin/pr/3367'
2017-12-06 06:57:59 +01:00
Florian Bruhin
58212a7b15
Update docs
2017-12-06 06:56:12 +01:00
Florian Bruhin
7a6d568c8c
Remove blank line
2017-12-06 06:53:27 +01:00
Florian Bruhin
7f81f0c0ab
Always open session tabs in foreground
...
This helps with issues with lazy sessions as document.hidden was set
incorrectly.
See #3345 , #3366
2017-12-06 06:51:15 +01:00
Florian Bruhin
dcb4448594
Merge remote-tracking branch 'origin/pr/3345'
2017-12-06 06:51:03 +01:00
Justin Partain
00a09354c3
Track number of active searches in tab, ignore all but most recent search callbacks
2017-12-05 08:28:10 -05:00
Ryan Roden-Corrent
636f9edff6
History completion by both URL and title.
...
Resolves #1649 .
2017-12-05 07:32:58 -05:00
Florian Bruhin
e97fbfdf56
Merge remote-tracking branch 'origin/pr/3355'
2017-12-05 13:22:36 +01:00
Florian Bruhin
8a3437c6a4
Adjust Debian install instructions
2017-12-05 09:36:14 +01:00
Florian Bruhin
29c2e7b45f
Skip :follow-selected tests on Qt 5.10
...
See #3003 , #2635
2017-12-05 08:35:12 +01:00
Florian Bruhin
0ce9a355ae
Fix download test with Qt 5.10
...
Not sure why this is needed (no prompt is shown otherwise), but it works like
this.
This probably is related to https://bugreports.qt.io/browse/QTBUG-63388
See #3003
2017-12-05 08:34:37 +01:00
Florian Bruhin
62228752aa
Fix most end2end tests with Qt 5.10
...
For some reason, if we don't wait for about:blank to be fully loaded with
Qt 5.10, we get the next LoadStatus.finished notification with about:blank as
URL.
This is most likely caused by the changes in
https://codereview.qt-project.org/#/c/202924/
See #3003
2017-12-05 08:34:33 +01:00
Florian Bruhin
a8f4444c24
tests: Show more of the message
2017-12-04 22:07:49 +01:00
Florian Bruhin
b554e1f763
tests: Add after= argument to wait_for
2017-12-04 22:07:23 +01:00
François Chavant
9675ea93ee
Do not call pip in travis_install.sh when TESTENV=shellcheck
2017-12-04 20:31:28 +01:00
mhm@mhm.com
02104a318e
delay added, text changed
2017-12-04 19:03:12 +01:00
mhm@mhm.com
28caddf3c1
delay added, text changed
2017-12-04 19:02:09 +01:00
Florian Bruhin
3a04de62ae
Recompile requirements
2017-12-04 19:01:21 +01:00
François Chavant
86c37538d7
Simply search for shell scripts to search
...
Use 2 simpler find commands and redirect the output to a temporary
file.
2017-12-04 18:29:55 +01:00
François Chavant
4467f51e42
Use 'language: generic' for shellcheck, fix typo, correct indentation
2017-12-04 18:15:02 +01:00
Josefson Fraga
b6466b7410
revision 2
2017-12-04 13:08:56 -03:00
Florian Bruhin
6973a703c5
Add pluggy to requirements
2017-12-04 16:56:39 +01:00
Florian Bruhin
2cdc32ca58
Remove pytest-catchlog
2017-12-04 16:55:57 +01:00
pyup-bot
956c257d19
Update pytest-travis-fold from 1.2.0 to 1.3.0
2017-12-04 16:09:25 +01:00
pyup-bot
71095da975
Update pytest from 3.2.5 to 3.3.0
2017-12-04 16:09:23 +01:00
pyup-bot
a0caa2b7b1
Update hypothesis from 3.38.5 to 3.40.1
2017-12-04 16:09:22 +01:00
pyup-bot
f7ccb8061b
Update pyroma from 2.2 to 2.3
2017-12-04 16:09:20 +01:00
pyup-bot
96b6f7c443
Update macholib from 1.8 to 1.9
2017-12-04 16:09:19 +01:00
pyup-bot
a3612a624a
Update altgraph from 0.14 to 0.15
2017-12-04 16:09:17 +01:00
pyup-bot
905748f2d0
Update setuptools from 38.2.1 to 38.2.3
2017-12-04 16:09:16 +01:00
pyup-bot
a3f57b9a9b
Update flake8-builtins from 1.0 to 1.0.post0
2017-12-04 16:09:14 +01:00
Florian Bruhin
7ef64c0f87
Read $PYTHON in every tox.ini environment
...
See #2341
2017-12-04 06:45:47 +01:00
Florian Bruhin
2c2d7fe734
Copy-paste pylint commands for second environment
...
Otherwise, tox 2.3.1 (shipped with various distributions) fails with:
tox.ConfigError: ConfigError: substitution key 'posargs' not found
2017-12-04 06:36:42 +01:00
Florian Bruhin
6b65d96fe1
Reformat comment
2017-12-04 06:32:54 +01:00
Florian Bruhin
fe60556a34
Merge remote-tracking branch 'origin/pr/3349'
2017-12-04 06:32:46 +01:00
Florian Bruhin
a137a29cce
Style improvements
...
This adds a blank line and makes Completer arguments keyword-only to make their
meaning more clear.
2017-12-03 22:32:17 +01:00
Florian Bruhin
9dfff43d99
Merge remote-tracking branch 'origin/pr/3357'
2017-12-03 22:30:47 +01:00
Florian Bruhin
bbc2f14e45
Merge remote-tracking branch 'origin/pr/3356'
2017-12-03 22:30:30 +01:00
Ryan Farley
38b2d42b40
cleanup PYTEST_ADDOPTS for pytest subprocess
...
See https://github.com/qutebrowser/qutebrowser/pull/3349
2017-12-03 15:09:47 -06:00
Ryan Roden-Corrent
b610563e7f
Don't show current window for :tab-give/:tab-take.
...
Resolves #3144 .
2017-12-03 08:03:54 -05:00
Florian Bruhin
97054ca35d
Don't hide report dialog early
...
It looks like hiding it already causes it to be accepted.
Fixes #1128
2017-12-03 13:04:08 +01:00
Florian Bruhin
f07301cfb5
Revert "Restart correctly after reporting crash."
...
This reverts commit 7001f068b3 .
2017-12-03 12:48:29 +01:00
François Chavant
59c9a2b243
Ignore shellcheck false positive
2017-12-03 11:30:59 +01:00
François Chavant
22e4a800a1
Refactor format_json userscript to not parse 'ls' output
...
The script now also works under MacOS
2017-12-03 10:50:54 +01:00
François Chavant
ccb8e74998
Use koalaman/shellcheck:latest
2017-12-03 09:29:38 +01:00
François Chavant
dd589f180b
Fix remaining shellcheck warnings
2017-12-02 21:09:24 +01:00
François Chavant
31710b7045
Trivial fixes for shellcheck warnings
2017-12-02 19:37:20 +01:00
François Chavant
595a53ad3b
Apply patch from #1697
2017-12-02 19:37:18 +01:00
François Chavant
b91a39be22
Run shellcheck on Travis CI
2017-12-02 19:37:10 +01:00
Florian Bruhin
ce46b30a1e
Show error instead of warning
2017-12-02 14:49:06 +01:00
Florian Bruhin
f1f573d651
Update changelog
2017-12-02 14:48:31 +01:00
Florian Bruhin
003ec31848
Merge remote-tracking branch 'origin/pr/3333'
2017-12-02 14:47:24 +01:00
Florian Bruhin
a41db970e8
Update changelog
...
[ci skip]
2017-12-02 14:42:14 +01:00
Florian Bruhin
689fe96393
Improve workaround comment
2017-12-02 14:37:59 +01:00
Florian Bruhin
e9be357104
Merge remote-tracking branch 'origin/pr/3352'
2017-12-02 14:37:01 +01:00
Ryan Farley
fbd325f8d1
Revert "update tox env name in CI config"
...
This reverts commit 2f231c86ac .
2017-12-01 10:55:08 -06:00
Ryan Farley
5607cc2be8
Revert "update contributing.asciidoc with -pyqtlink envs"
...
This reverts commit 6b76203780 .
2017-12-01 10:52:58 -06:00
Ryan Farley
df6ff55b7a
allow pytest to default to link_pyqt
...
link_pyqt now checks for LINK_PYQT_SKIP, allowing pytest env names like
`py36` to work properly without negative conditionals in tox.ini
2017-12-01 10:51:41 -06:00
Ryan Roden-Corrent
780ac3f4c2
Remove needles quteproc/server fixture deps.
...
A few step definitions listed these in the parameters although they were
unused.
2017-12-01 11:34:47 -05:00
Ryan Roden-Corrent
3cfa0f7586
Make pylint happy for test_editor_bdd.
...
windows has no SIGUSR1, but we don't run this on windows anyways
for posix, there IS a member so we need to ignore useless-suppression
2017-12-01 08:41:08 -05:00
Ryan Roden-Corrent
1102ae4d7e
Skip editor orphaned test on windows.
...
Tried SIGINT/SIGTERM, neither worked. Just skip this test on windows and
go back to SIGUSR1 otherwise.
2017-12-01 07:35:13 -05:00
Ryan Roden-Corrent
822f6bae2c
Fix webkitelem test.
...
Now that it checks tab.is_deleted we need to mock that.
2017-12-01 07:28:02 -05:00
Ryan Farley
49485ca220
tox.ini: fix conditional syntax errors
...
`{[testenv]deps}` was passing conditionals in their raw form; this
simply lists them manually to avoid this.
2017-11-30 16:58:14 -06:00
Ryan Farley
6b76203780
update contributing.asciidoc with -pyqtlink envs
2017-11-30 14:21:37 -06:00
Ryan Farley
a5d0b9851a
tox.ini: remove pyqt5.6, use requirements-pyqt.txt
2017-11-30 14:14:11 -06:00
mhm@mhm.com
b58cfead05
style fixed
2017-11-30 16:05:01 +01:00
Artur Shaikhullin
4eda328a61
Fix some lint warnings. Enable caret tests
2017-11-30 20:38:38 +06:00
Ryan Farley
2f231c86ac
update tox env name in CI config
...
Use py36-pyqtlink instead of py36 for macOS
2017-11-30 08:35:02 -06:00
Ryan Farley
f7b0ac503e
generate pytest envs with tox factors
...
This eliminates all separate pytest envs in favor of conditionals in
[testenv]. This requires renaming some environments to make the lack of
certain functionality explicit:
- instead of omitting pyqt{version}, use pyqtlink to use host PyQt
tox.ini: eliminate -nocov
It is possible to set the `PYTEST_ADDOPTS` environment variable to
enable coverage checks, rather than a new command.
2017-11-30 08:29:00 -06:00
Ryan Roden-Corrent
4497f710f9
Try SIGINT instead of SIGTERM for windows.
2017-11-30 07:56:37 -05:00
Artur Shaikhullin
c7a5dd6abb
Clean up javascript caret code
2017-11-30 18:02:50 +06:00
Florian Bruhin
45a1989a1f
Add some more links to initial readme line
...
[ci skip]
2017-11-30 01:26:44 +01:00
mhm@mhm.com
d29cf1ee4d
lazy sessions, restore if visible, forward user after restore
2017-11-30 00:09:28 +01:00
Florian Bruhin
ac89ab23a9
Revert "Add nEXT to list of alternatives"
...
It uses a buggy legacy WebKit...
This reverts commit 814a88b741 .
2017-11-29 22:36:06 +01:00
Florian Bruhin
2752055281
Fix lint in webserver_sub.py
2017-11-29 22:17:48 +01:00
Artur Shaikhullin
f965c0daec
Don't position caret if selection exists
2017-11-29 21:01:47 +06:00
Artur Shaikhullin
70b58d1928
Inject caret css on mode enter
2017-11-29 20:07:24 +06:00
Ryan Roden-Corrent
b465c109ee
Fix test_editor_bdd.py for windows.
...
- Use a raw string to handle windows path separators
- Use SIGTERM instead of SIGUSR1
2017-11-29 07:42:12 -05:00
Ryan Roden-Corrent
fcad40ceb7
Add orphaned tab check to WebKit as well.
...
This implements the orphaned editor fix for WebKit. Webkit wasn't
crashing before, but this causes webkit to show the same warning
webengine does if the editor is orhpaned (rather than silently
continuing). This allows the same BDD test to pass for both webkit and
webengine.
2017-11-29 07:35:11 -05:00
Ryan Roden-Corrent
e09a8c77e9
Simplify check for orphaned editor.
...
Instead of rewiring signals on tab.shutting_down, have the webelem check
if its parent tab is deleted, and throw a specific exception.
This is only necessary in WebEngine, Webkit does not crash when the
editor is orphaned.
I tried to write a test for is_deleted, but could not get it to pass:
```
def test_is_deleted(qtbot, view, config_stub, tab_registry, mode_manager):
tab_w = Tab(win_id=0, mode_manager=mode_manager)
qtbot.add_widget(tab_w)
tab_w._set_widget(view)
assert not tab_w.is_deleted()
sip.delete(view)
#assert tab_w.is_deleted()
```
The qtbot post-test cleanup would error due to the deleted view.
2017-11-29 07:01:48 -05:00
Florian Bruhin
81045fb1bd
Drop unneeded parens
2017-11-29 10:44:50 +01:00
Florian Bruhin
af638ec430
Move hint unittests to their own file
2017-11-29 10:44:32 +01:00
Florian Bruhin
911616707e
Merge remote-tracking branch 'origin/pr/3329'
2017-11-29 10:40:40 +01:00
Florian Bruhin
edba3f83bc
Bump open_url_in_instance version to 1.0.4
2017-11-29 10:38:09 +01:00
Florian Bruhin
e7c4df7a9c
Merge remote-tracking branch 'origin/pr/3332'
2017-11-29 10:38:06 +01:00
Rouji
afb4a6be51
bump _qb_version
2017-11-29 08:43:46 +01:00
Rouji
938198e92a
quote _qute_bin (paths may contain whitespace), remove unnecessary --backend
...
argument
2017-11-29 08:43:02 +01:00
Rouji
d4291dd4ae
don't 'exec' printf
2017-11-29 08:40:40 +01:00
Jay Kamat
19cecbdeae
Fix style issues in scattered hint tests
2017-11-28 22:08:22 -05:00
Florian Bruhin
43ff35eaea
Revert "Make sure docs are up-to-date for navigate.feature"
...
This action doesn't exist in navigate.feature
This reverts commit 3857491cf9 .
2017-11-28 22:15:56 +01:00
Florian Bruhin
26edf55f85
Update install instructions for Fedora/OpenBSD
2017-11-28 17:56:17 +01:00
Florian Bruhin
3857491cf9
Make sure docs are up-to-date for navigate.feature
2017-11-28 17:06:41 +01:00
Florian Bruhin
ca74991900
Read backend after args.temp_settings
...
This should hopefully not affect any config change handlers, as almost nothing
is registered this early.
Fixes #3340
2017-11-28 17:00:45 +01:00
Ryan Roden-Corrent
01a9405391
Make ophaned editor test less flaky.
...
Instead of having the editor sleep a short time, explicitly send it a
signal to exit.
2017-11-28 08:38:04 -05:00
Ryan Roden-Corrent
9dfc6b0f61
Change wording for orphaned editor.
...
The term "vanished" is used elsewhere.
2017-11-28 08:37:38 -05:00
Ryan Roden-Corrent
b6dcd4d387
Reapply "Hide quickmark/bookmark completion if empty."
...
This reverts commit e72e8b8556 .
Now that the SQL category works in isolation, it is possible to hide
quickmarks/bookmarks when those categories are empty.
Fixes #960
2017-11-28 07:21:26 -05:00
Florian Bruhin
b407f4ab41
Release v1.0.4
2017-11-28 10:56:15 +01:00
Florian Bruhin
9a8d68aa25
Mark :undo test as flaky
...
I don't get why it fails sometimes - so another @flaky stop-gap for now.
2017-11-28 09:19:37 +01:00
Florian Bruhin
93bdff5d40
Merge remote-tracking branch 'origin/pr/3330'
2017-11-28 08:29:17 +01:00
Florian Bruhin
56759cca6b
Make more unit tests run with Qt 5.7.1 on a newer Linux
2017-11-28 08:16:07 +01:00
Florian Bruhin
0850aab96f
Merge remote-tracking branch 'origin/pr/3337'
2017-11-28 07:58:42 +01:00
Florian Bruhin
1d17e7ab03
Update changelog
2017-11-28 07:04:57 +01:00
Florian Bruhin
ef1825efb0
Handle sqlite errors during :history-clear
2017-11-28 07:02:33 +01:00
Florian Bruhin
73587b1e16
Add SQLITE_CORRUPT to environmental SQL errors
2017-11-28 06:55:55 +01:00
Florian Bruhin
4fed8518e1
Handle "out of memory" error in sql.init()
2017-11-28 06:53:41 +01:00
Florian Bruhin
814a88b741
Add nEXT to list of alternatives
...
[ci skip]
2017-11-28 06:24:45 +01:00
Ryan Roden-Corrent
40e4e73e36
Ensure HistoryCategory works in isolation.
...
While QSortFilterProxyModel emits layoutChanged when changing the
pattern, QSqlQueryModel emits modelReset. As only layoutChanged was
connected, a HistoryCategory would only work in a model that also had at
least one ListCategory.
The simplest solution is to have the parent model emit the signal
directly. This also emits a single signal on a pattern change rather
that one for each child model.
Resolves #3016 .
2017-11-27 11:49:32 -05:00
pyup-bot
9a8bac18ae
Update pluggy from 0.5.2 to 0.6.0
2017-11-27 16:02:24 +01:00
pyup-bot
b820b9d530
Update pytest-qt from 2.2.1 to 2.3.0
2017-11-27 16:02:22 +01:00
pyup-bot
5f30016901
Update hypothesis from 3.38.0 to 3.38.5
2017-11-27 16:02:21 +01:00
pyup-bot
54db781b97
Update hunter from 2.0.1 to 2.0.2
2017-11-27 16:02:20 +01:00
pyup-bot
5df2025745
Update cheroot from 5.9.1 to 5.10.0
2017-11-27 16:02:18 +01:00
pyup-bot
6c47b5d2d7
Update setuptools from 36.8.0 to 38.2.1
2017-11-27 16:02:17 +01:00
pyup-bot
a4b96c3443
Update check-manifest from 0.35 to 0.36
2017-11-27 16:02:15 +01:00
Jimmy
0381d74e9a
Greasemonkey: privatise some utility functions
2017-11-27 20:10:38 +13:00
Florian Bruhin
0e80be2d30
Clear end2end test data again after initializing
...
If we don't do this, earlier tests can affect later ones when e.g. using "...
should not be logged", as we don't really wait until a test has been fully
finished.
2017-11-27 20:10:38 +13:00
Florian Bruhin
db353c4030
Connect the page signal for GreaseMonkey
...
Looks like we don't get the mainFrame's loadFinished signal properly.
2017-11-27 20:10:38 +13:00
Florian Bruhin
6933bc05b4
Add some debug logging for GreaseMonkey with QtWebKit
2017-11-27 20:10:38 +13:00
Jimmy
df624944f9
Greasemonkey: webkit: injected all scripts on loadFinished.
...
The signal we were using to inject greasemonkey scripts registered to
run at document-start (javaScriptWindowObjectCleared) was unreliable to
non-existant. The initialLayoutCompleted signal is a bit of an odd duck
too I suppose. Anyway, we don't anticipate any scripts would break from
being injected when the page is finished loaded that wouldn't already
have been flaky due to the complexities of the modern web. If there is
an issue hopefully someone raises an issue and we can look into it.
2017-11-27 20:10:38 +13:00
Jimmy
8a5b42ffbd
Greasemonkey: es6ify the greasemonkey wrapper js.
...
Because backwards compatibility sucks I guess.
2017-11-27 20:10:38 +13:00
Jimmy
92b48e77c7
Greasemonkey: add unit tests for GreasemonkeyManager
2017-11-27 20:10:38 +13:00
Jimmy
dd59f8d724
Greasemonkey: add more end2end tests
...
Test document-end and noframes. Because coverage.py told me to.
Hopefully this doesn't slow the test run down too much, particularly the
"should not be logged" bit.
I'm just reusing and existing test html page that used an iframe because
I'm lazy.
2017-11-27 20:10:38 +13:00
Jimmy
361a1ed6e4
Greasemonkey: change PROPS_REGEX to handle non-value keys.
...
We weren't actually picking up the @noframes greasemonkey directive
because of this. I haven't tested this very extensively but it seems to
work for making the property value optional.
2017-11-27 19:27:31 +13:00
Jimmy
9aeb5775c1
greasemonkey: run scripts on subframes on webkit
...
Use the `QWebPage.frameCreated` signal to get notifications of subframes
and connect the javascript injection triggering signals on those frames
too.
I had to add a `url = url() or requestedUrl()` bit in there because the
inject_userjs method was getting called to early or something when
frame.url() wasn't set or was set to the previous page so we were
passing the wrong url to greasemonkey.scripts_for().
I ran into a bizarre (I maybe it is completely obvious and I just don't
see it) issue where the signals attached to the main frame that were
connected to a partial function with the main frame as an argument were
not getting emitted, or at least those partial functions were not being
called. I worked around it by using None to mean defaulting to the main
frame in a couple of places.
2017-11-27 19:27:31 +13:00
Jimmy
4c3461038d
Greasemonkey: add minimal end-to-end test.
...
Just runs a greasemonkey script on a test page and uses console.log to
ensure it is running.
Tests @include, and basic happy path greasemonkey.py operation (loading
and parsing script, scrip_for on webkit), only testing document-start
injecting point but that is the troublsome one at this point.
Tested on py35 debian unstable (oldwebkit and qtwebengine5.9) debian
stable qtwebengine5.7.
Note the extra :reload call for qt5.7 because document-start scripts
don't seem to run on the first page load with the current insertion
point. I need to look into this more to look at ways of fixing this.
2017-11-27 19:27:31 +13:00
Jimmy
7c497427ce
Greasemonkey: various javascript fixups to GM wrapper template.
...
Thanks to @sandrosc. A few breaking changes fixed (default method to
GM_xhr not working, GM_listvalues not cleaning up output, GM_setvalue
param checking logic wrong) and a few hygenic changes made.
2017-11-27 19:27:31 +13:00
Jimmy
c0832eb04b
Greasemonkey: support @nosubframes.
...
And run on frames by default. At least on webengine. There is probably
some api to enumerate frames on a webkit page.
Not tested.
2017-11-27 19:27:31 +13:00
Jimmy
fb019b2dab
Address second round line comments.
...
Add qute version to GM_info object in GM wrapper.
Support using the greasemonkey @namespace metadata for its intended
purpose of avoiding name collisions.
Get a nice utf8 encoded string from a QUrl more better.
2017-11-27 19:27:31 +13:00
Jimmy
efde31aa57
Greasemonkey: Support QTWebEngine versions < 5.8
...
QTWebEngine 5.8 added support for parsing greasemonkey metadata blocks
and scripts added to the QWebEngineScriptCollection of a page or its
profile and then deciding what urls to run those scripts on and at what
point in the load process to run them. For earlier versions we must do
that work ourselves. But with the additional handicap of the less rich
qtwebengine api.
We have acceptNavigationRequest, loadStarted, loadProgress,
loadFinished, urlChanged to choose from regarding points at which to
register scripts for the current page.
Adding scripts on acceptNavigation loadStarted and loadFinished causes
scripts to run too early or too late (eg on the pages being navigated
from/to) and not run on the desired page at the time they are inserted.
We could maybe do some more sophisticated stuff with loadProgress but it
didn't have any better behaviour in the brief testing I gave it.
Registering scripts on the urlChanged event seems to work fine. Even if
it seems like there could be problems with the signal firing too often,
due to not necessarily being tied to the page load progress, that
doesn't seem to have an effect in practice. The event is fired when, for
example, the url fragment changes and even if we add a new script to the
collection (or remove an existing one) it doesn't have an effect on what
is running on the page.
I suspect all of those timing issues is due to the signals being
forwarded fairly directly from the underlying chomium/blink code but the
webengine script stuff only being pushed back to the implementation on
certain events.
Anyway, using urlChanged seems to work fine due to some quirk(s) of the
implementation. That might change with later development but this
codepath is only ever going to be used for version 5.7.
There are other potential optimizations like not removing and then
re-adding scripts for the current page. But they probably wouldn't do
anything anyway, or at least anything that you would expect.
2017-11-27 19:27:31 +13:00
Jimmy
209e43e0ba
Greasemonkey: Match against percent encoded urls only.
...
This change requires urls specified in @include, @exclude and @matches
directives in metadata blocks to be in the same form that
QUrl.toEncoded() returns. That is a punycoded domain and percent encoded
path and query. This seems to be what Tampermonkey on chrome expects to.
Also changes the scripts_for() function to take a QUrl arg so the caller
doesn't need to worry about encodings.
2017-11-27 19:27:31 +13:00
Jimmy
d318178567
Greasemonkey: Fix metadata block regex.
...
This regex was broken since the original PR and subsequent code seemed to be
working around it. Before re.split was returning [everything up to
/UserScript, everything else], now it returns [before UserScript, metadata,
after /UserScript], which is good.
Also I added the check for the UserScript line starting at column 0 as per
spec.
2017-11-27 19:27:31 +13:00
Jimmy
5e49e7eef2
Greasemonkey: Throw Errors if GM_ function args wrong type.
...
These argument type restrictions are mentioned on the greasespot pages for
these value storage functions. We could call JSON.dumps() instead but better
to push that onto the caller so we don't have to try handle deserialization.
Also removes the check for localstorage because everyone has supported that
for years.
2017-11-27 19:27:31 +13:00
Jimmy
d93c583c0d
Greasemonkey: Escape jinja variables for JS strings.
2017-11-27 19:27:31 +13:00
Jimmy
a7f41b4564
Greasemonkey: ensure only GM scripts are cleaned up on reload.
...
WebEngine only. Previously we were just removing every script from the
main world. But some other scripts might got here in the future so new
we are overriding the name field to add a GM- prefix so hopefully we
only remove greasemonkey scripts before adding new ones.
2017-11-27 19:27:31 +13:00
Jimmy
fd5d44182b
Greasemonkey: move GM_* template into seperate file.
...
Also ported it to jinja rather than str.format().
Also ran the js through jslint and fixed up a few very minor things.
2017-11-27 19:27:31 +13:00
Jimmy
c1b912f567
Greasemonkey: move inject_userscripts into webenginesettings
2017-11-27 19:27:31 +13:00
Jimmy
edf737ff7d
Greasemonkey: move scripts for a domain into data class.
...
Also makes scripts that don't include a greasemonkey metadata block
match any url. QWebEngine already has that behaviour.
2017-11-27 19:27:31 +13:00
Jimmy
41035cb5ca
Greasemonkey: restrict page schemes that scripts can run on
...
Scripts shouldn't run on qute://settings or source:// etc.
Whitelist from:
https://wiki.greasespot.net/Include_and_exclude_rules
2017-11-27 19:27:31 +13:00
Jimmy
799730f686
Remove GM_ and userscript variables from global scope.
2017-11-27 19:27:31 +13:00
Jimmy
325c595b89
Greasemonkey: Don't strip gm metadata from scripts when loading.
...
Since we just pass them to webenginescriptcollection on that backend and
that wants to parse it itself to figure out injection point etc.
2017-11-27 19:27:31 +13:00
Jimmy
f26377351c
Greasemonkey: Add greasemonkey hooks for webengine.
...
For qtwebengine 5.8+ only. This is because as of 5.8 some greasemonkey
script support is in upstream. That is, qtwebenginescript(collection)
parses the greasemonkey metadata block and uses @include/match/exclude
to decide what sites to inject a script onto and @run-at to decide when
to inject it, which saves us the trouble. Notes on doing this in <5.8
are below.
Scripts are currently injected into the main "world", that is the same
world as the javascript from the page. This is good because it means
userscripts can modify more stuff on the page but it would be nice if we
could have more isolation without sacrificing functionality. I'm still
looking into why my more feature-full scripts are not having any effect
on the page while running in a separate world.
Userscripts are added to both the default and private profile because I
that if people have scripts installed they want them to run in private mode
too.
We are grabbing the scripts from the greasemonkey module, as opposed to
reading them directly from disk, because the module adds some GM_* functions
that the scripts may expect, and because that is used for webkit anyway.
I have code to support qtwebengine <5.8 but didn't because I am not
happy with the timing of some of the signals that we are provided
regarding page load state, and the actual load state. While the
difference between document-end and document-idle isn't so bad,
injecting document-start scripts when a urlChanged event is emitted
results in the script being injected into the environment for the page
being navigated away from. Anyway, if anyone wants this for earlier
webengines I can oblige them.
2017-11-27 19:27:31 +13:00
Jimmy
be9f8bd0de
Greasemonkey: Lift greasemonkey init app.py
...
To prepare for multiple-backend support.
2017-11-27 19:27:31 +13:00
Jimmy
25f626a436
Greasemonkey: Add run-at document-idle.
...
Supposed to be after all the assets have finished loading and in page js
has run. Not that we can garuntee that last bit. If a script misbehaves
because a precondition isn't yet met I suggest adding a defer method to
the script that adds a timer until the precondition is met.
Also changed the map/filter calls to use list comprehensions to keep
pylint happy. Even if it does look uglier.
2017-11-27 19:27:31 +13:00
Jimmy
13728387d7
Greasemonkey: Fix crash on undefined metadata.
2017-11-27 19:27:31 +13:00
Jimmy
ecdde7663f
Add greasemonkey-reload command.
...
Also add a signal to emit when scripts are reloaded. Had to make
GreasemonkeyManager inherit from QObject to get signals to work.
2017-11-27 19:27:31 +13:00
Andor Uhlár
568d60753e
Add greasemonkey compatible userscript module.
...
WebKit backend only for now. Loads all .js files from a directory,
specified in the greasemonkey-directory key in the storage section,
defaulting to data/greasemonkey, and wraps them in a minimal environment
providing some GM_* functions. Makes those scripts available via the
"greasemonkey" registered object in objreg and injects scripts at appropriate
times in a page load base on @run-at directives.
2017-11-27 19:27:31 +13:00
Florian Bruhin
75a8938e83
Add flake8-bugbear
2017-11-26 21:50:12 +01:00
Florian Bruhin
248a12a8b9
Add flake8-comprehensions
2017-11-26 21:42:50 +01:00
Florian Bruhin
1981239478
Add flake8-builtins
2017-11-26 21:22:33 +01:00
Florian Bruhin
5490f70b25
Remove flake8-pep3101
...
It seems to trigger when using modulo on ints as well, which is kind of
annoying.
See #3320
2017-11-26 20:30:42 +01:00
Florian Bruhin
b5dd647678
Upgrade pydocstyle/flake8-docstrings
...
See #3320
2017-11-26 20:30:32 +01:00
Florian Bruhin
7520a365eb
Update comments
2017-11-26 19:43:49 +01:00
Florian Bruhin
0f3cff60fa
Merge remote-tracking branch 'origin/pr/3335'
2017-11-26 19:42:54 +01:00
Florian Bruhin
95f34d755f
Update changelog
2017-11-26 19:35:58 +01:00
Florian Bruhin
38f8cacd2b
Merge remote-tracking branch 'origin/pr/3336'
2017-11-26 19:35:26 +01:00
Florian Bruhin
4c1f6158bd
Update changelog
...
[ci skip]
2017-11-26 17:32:29 +01:00
Florian Bruhin
67253726fa
Handle empty messages in qt_message_handler
...
I can't reproduce this, but someone on KDE reported always getting a crash (as
msg.splitlines()[0] gives an IndexError) when trying to select a file with
Qt 5.9.3.
2017-11-26 17:31:07 +01:00
Ryan Roden-Corrent
54fffc8264
Resolve crash when editor tab is closed.
...
If an editor is open on a form in a tab and that tab is closed, rewire
the callback to print a warning. Previously, the callback would access a
deleted C++ object and cause a crash.
Resolves #2758 .
2017-11-26 07:50:49 -05:00
Panagiotis Ktistakis
2bb8d404d2
Adjust :bind completion tests
2017-11-26 14:07:41 +02:00
Panagiotis Ktistakis
e05dabefdf
Show default keybinding in :bind completion
2017-11-26 13:34:18 +02:00
Ryan Farley
650b0051e6
remove useless ignores
2017-11-26 01:59:21 -06:00
Ryan Farley
5ed8019115
update flake8 and flake8-deprecated
...
Updated requirements and adjusted the configuration in `.flake8`; other
files have been modified where the lack of per-file auto-ignore caused
problems, where putty's `# flake8: disable=` syntax could be replaced
with a simpler `noqa`, or where pylint directives already suppressed the
same error.
2017-11-26 00:16:14 -06:00
狼耳
e8db59a9ef
Use socat exit status to determine if the socket is usable
...
Instead of checking, if *any* qutebrowser process is running (which may or may not have an IPC socket where we expect it), simply launch a new instance *if socat fails*.
Which it does, if:
* the socket file doesn't exist (qutebrowser simply not running), or
* the socket isn't connectable (qutebrowser crashed, left orphaned socket)
Also put new instances into background, so the script behaves a bit more consistently. (Else it *sometimes* blocks and *sometimes doesn't*, when run.)
2017-11-25 11:09:57 +01:00
Jay Kamat
c9af36909f
Add tests for hint scattering
2017-11-24 13:21:21 -05:00
mhm@mhm.com
9df149fe8f
urlencode fix
2017-11-24 17:15:26 +01:00
Florian Bruhin
03a9cbdfb4
Break long lines
...
(cherry picked from commit 18a45bbd5b )
2017-11-24 16:03:34 +01:00
狼耳
765a22189c
check if qutebrowser process is running
...
Sometimes when qutebrowser crashes, it leaves the IPC socket file behind. In those cases this script still tried to use it, failed, and didn't open your URL at all.
2017-11-24 14:52:33 +01:00
Florian Bruhin
06fc52321e
Ignore new Qt 5.9.3 error message
2017-11-24 14:24:15 +01:00
Florian Bruhin
15c7ede916
Update to PyQt 5.9.2
2017-11-24 14:24:15 +01:00
Lucas Hoffmann
6cc78aeaee
Register qutebrowser as a handler for qute:// links
...
These links mostly occur within qutebrowser's documentation. But the
are also written to the auto generated config file. Clicking them in
any application that consults the desktop database (or uses xdg-open)
will thus open them in qutebrowser correctly.
2017-11-24 13:32:13 +01:00
Artur Shaikhullin
72040a3bbb
Position caret on top element
2017-11-24 17:32:23 +06:00
Florian Bruhin
0afd6b23c9
Add the option name to the backend error message
2017-11-24 09:25:45 +01:00
Florian Bruhin
28d7c5e204
Fix lint
2017-11-24 07:25:10 +01:00
Jay Kamat
739cfc03ba
Fix undercounting short hints
2017-11-23 23:14:21 -05:00
Artur Shaikhullin
8a64ce19c3
Fetch selection for userscripts
2017-11-23 20:18:43 +06:00
Ryan Roden-Corrent
8eab402820
Abort :edit-command on invalid input.
...
Show an error message if the user edits the command such that it is
missing a start character (:, /, or ?). Previously, this would cause the
browser to crash.
Resolves #3326 .
2017-11-23 08:15:27 -05:00
Florian Bruhin
b31360b6e3
Fix line break
2017-11-22 17:19:21 +01:00
Florian Bruhin
750d2c490f
Fix :completion-item-focus --history with / or ?
...
If we have no completion (like when searching), we can just always go through
history with up/down.
2017-11-22 15:34:48 +01:00
Artur Shaikhullin
e7a66d92a8
Selection implentation
2017-11-22 19:56:05 +06:00
Florian Bruhin
5d8c9577a7
Improve hypothesis example generation for configtypes.Dict
2017-11-22 11:53:49 +01:00
Florian Bruhin
72d466d236
Break long lines
2017-11-22 11:34:10 +01:00
Florian Bruhin
487951cd31
Fix joining :jseval path
2017-11-22 10:57:48 +01:00
Florian Bruhin
cbf5fc01fa
Avoid more about:blank loads
2017-11-22 10:15:18 +01:00
Florian Bruhin
221b81ae90
Fix typo in changelog
2017-11-22 09:37:17 +01:00
Florian Bruhin
12f4940ef3
Make :jseval use a fixed path with relative paths
2017-11-22 09:37:17 +01:00
Florian Bruhin
3b3acba34e
Edit description of tabs.persist_mode_on_change
2017-11-22 09:11:17 +01:00
Florian Bruhin
2581be051f
Always leave hint/caret mode when switching tabs
...
See #3323
2017-11-22 08:53:01 +01:00
Florian Bruhin
401a37bf4b
Stabilize :spawn with userscript tests
2017-11-22 08:43:47 +01:00
Florian Bruhin
e5cabb6d23
Match QtWebKit error message for qute://help/img test
2017-11-22 08:40:20 +01:00
Florian Bruhin
fd93e7ba6c
Update docs
2017-11-22 08:02:38 +01:00
Florian Bruhin
94b2a41ed7
Merge remote-tracking branch 'origin/pr/3323'
2017-11-22 08:00:57 +01:00
Florian Bruhin
aa417019ae
Try stabilizing loading about:blank in end2end tests
2017-11-22 07:59:22 +01:00
Florian Bruhin
8acfe501fe
Revert "Stabilize cleaning up open tabs"
...
We're going to fix this in a more generic way.
This reverts commit 8440303d82 .
2017-11-22 07:56:31 +01:00
Florian Bruhin
c4291a8ed5
Update GitHub contributing docs
2017-11-22 07:52:03 +01:00
mhm@mhm.com
e2d5a443cc
lazy sessions
2017-11-21 23:57:06 +01:00
Vladimir Shulyak
358c888760
Fix long line
2017-11-21 22:35:19 +00:00
Vladimir Shulyak
7532db83c4
Add option to persist current mode on tab change
2017-11-21 18:57:41 +00:00
Florian Bruhin
b684e50cdf
Stabilize view-source test
2017-11-21 18:14:17 +01:00
Florian Bruhin
9744a3d0bc
Skip test_webenginesettings without QtWebEngine
2017-11-21 17:58:32 +01:00
Artur Shaikhullin
8aca37e5d5
Implement all caret browsing methods
2017-11-21 19:56:00 +06:00
Florian Bruhin
8440303d82
Stabilize cleaning up open tabs
...
For some reason, about:blank isn't properly loaded sometimes. But this should
always work.
2017-11-21 14:53:31 +01:00
Florian Bruhin
2f12233cb7
Update changelog
2017-11-21 14:10:48 +01:00
Florian Bruhin
6c9f496edf
Add a test for setting content.cache.size to a big value
2017-11-21 14:09:38 +01:00
Florian Bruhin
a451e8ac9d
Add a cache_tmpdir fixture
2017-11-21 14:09:30 +01:00
Florian Bruhin
c9d42c8bea
Enable strict overflow checking in tests
2017-11-21 14:09:20 +01:00
Florian Bruhin
203b6c354f
Fix content.cache.size overflow with QtWebEngine
...
While 64-bit values are allowed with QtWebKit/QNetworkDiskCache, QtWebEngine
only allows 32-bit values here. With the updated sip's strict overflow checking,
that means we get an exception when setting a too big value.
2017-11-21 14:07:49 +01:00
Florian Bruhin
75555fc244
Fix warning regex
2017-11-21 13:21:50 +01:00
Florian Bruhin
cff557d2fc
Try to stabilize command test, take 2
2017-11-21 13:19:11 +01:00
Florian Bruhin
56d1c5c7dd
Stabilize command history test
2017-11-21 11:31:22 +01:00
Florian Bruhin
54af872825
Add missing comma
2017-11-21 10:45:49 +01:00
Florian Bruhin
dc00bc1774
Add an initial Makefile
2017-11-21 10:35:11 +01:00
Florian Bruhin
273747624f
Update tox environment list in contributing docs
2017-11-21 09:24:43 +01:00
Florian Bruhin
c3128494a1
Create CODE_OF_CONDUCT.md
2017-11-21 09:19:06 +01:00
mhm@mhm.com
607cd9ba6e
indent adjusted
2017-11-21 01:19:04 +01:00
mhm@mhm.com
aa40842848
lazy sessions, docstring formatted, settings renamed, javascript notice changed, insert method changed
2017-11-21 00:38:51 +01:00
Florian Bruhin
d90d626ac4
Merge remote-tracking branch 'origin/pr/3316'
2017-11-20 21:17:29 +01:00
Florian Bruhin
25be4d4383
Merge remote-tracking branch 'origin/pr/3318'
2017-11-20 21:16:57 +01:00
Florian Bruhin
203233c894
Track the view correctly in the webengineview fixture
...
This makes sure the view is closed after the test (fixing test_none on AppVeyor)
and also makes sure we have a QApplication.
2017-11-20 20:47:40 +01:00
Florian Bruhin
a5d9661d73
Simplify is_ignored_lowlevel_message
2017-11-20 19:29:31 +01:00
Ryan Roden-Corrent
5495380580
Exit command mode after :edit-command --run.
...
Resolves #3317 , where the command prompt was left open and populated
with text after running the command.
2017-11-20 11:46:26 -05:00
pyup-bot
feb02769ad
Update pytest from 3.2.3 to 3.2.5
2017-11-20 16:02:20 +01:00
pyup-bot
8dcd5708e3
Update py from 1.4.34 to 1.5.2
2017-11-20 16:02:19 +01:00
pyup-bot
934fb5f7d5
Update py from 1.4.34 to 1.5.2
2017-11-20 16:02:17 +01:00
pyup-bot
b3d757d034
Update hypothesis from 3.37.0 to 3.38.0
2017-11-20 16:02:16 +01:00
pyup-bot
8f0332bcf6
Update cheroot from 5.8.3 to 5.9.1
2017-11-20 16:02:14 +01:00
pyup-bot
1cc6e7190e
Update setuptools from 36.7.1 to 36.8.0
2017-11-20 16:02:13 +01:00
Florian Bruhin
abb5c9f638
Ignore Qt 5.7 OpenSSL logging message
2017-11-20 13:58:37 +01:00
Florian Bruhin
3b680d0bff
Pass --disable-seccomp-filter-sandbox for tests with Qt 5.7.1
...
This is a stop-gap so I'm able to run end2end tests at least.
See #3163 .
For unit tests, we need https://github.com/pytest-dev/pytest-qt/pull/193 first.
2017-11-20 13:54:52 +01:00
Artur Shaikhullin
82b1bd10ec
Add some movement caret actions
2017-11-20 17:49:42 +06:00
Florian Bruhin
b6bfe7c171
Update docs
2017-11-19 21:11:10 +01:00
Florian Bruhin
8555b86e3b
Add copyright notice for pyeval_file.py
2017-11-19 21:09:48 +01:00
Florian Bruhin
a2c549b954
Merge remote-tracking branch 'origin/pr/3313'
2017-11-19 21:09:19 +01:00
Florian Bruhin
87b174b418
Simplify :completion-item-focus
2017-11-19 21:07:33 +01:00
Florian Bruhin
112800bab9
Fix backslashes in string
2017-11-19 21:04:57 +01:00
Florian Bruhin
62f37df573
Make cursor keys go through completion if a text was entered
...
This hopefully helps with people who try to use arrow keys for the completion,
while still making the command history somewhat discoverable.
2017-11-19 20:35:16 +01:00
akhilkpdasan
740d629b36
Update utilcmds.py
2017-11-20 00:56:09 +05:30
Florian Bruhin
c14135a6ce
Add :edit-command to docs
2017-11-19 19:57:44 +01:00
Akhil kp
21e731ebeb
fixed build errors(typing errors)
2017-11-19 23:49:11 +05:30
akhilkpdasan
9a58fe229c
fixed spelling error
2017-11-19 19:32:24 +05:30
akhilkpdasan
4644642c38
fixed test for pyeval --file
2017-11-19 19:10:36 +05:30
akhilkpdasan
ba6d90aa7a
fixed docmentation for pyeval
2017-11-19 19:08:52 +05:30
Florian Bruhin
6a90cebe85
Get rid of backslash
2017-11-19 14:29:22 +01:00
Florian Bruhin
28d3771005
Update changelog
2017-11-19 14:25:47 +01:00
Florian Bruhin
5e20aa668a
Merge remote-tracking branch 'origin/pr/3262'
2017-11-19 14:24:48 +01:00
Florian Bruhin
91c909cb80
Merge remote-tracking branch 'origin/pr/3212'
2017-11-19 14:24:40 +01:00
Florian Bruhin
8cd9cdea84
Update changelog
2017-11-19 14:11:20 +01:00
Florian Bruhin
8c7bf12b88
Merge remote-tracking branch 'origin/pr/3306'
2017-11-19 14:08:58 +01:00
Florian Bruhin
c2973ebca3
Merge remote-tracking branch 'origin/pr/3305'
2017-11-19 14:07:26 +01:00
Florian Bruhin
1a1f0fc1ee
Update changelog
2017-11-19 14:06:11 +01:00
Florian Bruhin
2b063f577e
Handle OSError in :config-write-py
2017-11-19 14:06:11 +01:00
Florian Bruhin
8fb03208e7
Improve parsing of fatal stacktraces
...
We now also recognize "Windows fatal exception: ..." message and refuse to
send empty Windows access violation messages.
2017-11-19 14:06:11 +01:00
Florian Bruhin
4a37e40fcc
Merge pull request #3311 from novel/doc-freebsd-port
...
Document installation using FreeBSD port
2017-11-19 14:05:00 +01:00
Akhil kp
c5eab53a87
Added --file for :debug-pyeval
2017-11-19 18:20:58 +05:30
Roman Bogorodskiy
51ce534638
Document installation using FreeBSD port
2017-11-19 14:30:32 +04:00
Ryan Roden-Corrent
d145b304d0
Remove maxsplit from edit_command.
...
This was a copy-paste typo, no need for maxsplit as this command takes
no positional args.
2017-11-18 20:41:23 -05:00
mhm@mhm.com
13dc24f6ca
debug code removed
2017-11-18 14:31:55 +01:00
mhm@mhm.com
cf8130bd22
lazy session, fix: active entry is not the end of the history
2017-11-18 14:28:44 +01:00
mhm@mhm.com
2debeafe1b
lazy sessions, dont save qute://back
2017-11-18 13:51:30 +01:00
mhm@mhm.com
1a33c88c96
lazy sessions, dont save qute://back
2017-11-18 13:47:57 +01:00
mhm@mhm.com
c150c5481a
lazy sessions, dont save qute://back
2017-11-18 13:46:50 +01:00
mhm@mhm.com
c4bb134313
lazy sessions, improved version
2017-11-18 11:05:54 +01:00
Jay Kamat
6338810396
Increase timeouts for javascript tests
2017-11-17 21:42:24 -05:00
mhm@mhm.com
51dea053f4
lazy sessions
2017-11-18 01:00:16 +01:00
mhm@mhm.com
ade7004f8f
lazy sessions
2017-11-18 00:48:31 +01:00
mhm@mhm.com
95f8c07d7f
lazy sessions
2017-11-18 00:31:53 +01:00
Jay Kamat
6c241f96ed
Add test for appendChild #2723
...
Does some of #3295
2017-11-17 17:52:35 -05:00
cryzed
d8887f12c0
Deduplicate documentation
2017-11-17 21:40:08 +01:00
Ryan Roden-Corrent
0f93d53210
Implement :edit-command.
...
:edit-command opens the current command line in an editor, and updates
the command line if the editor exits successfully. If --run is passed,
the command is executed when the editor exits sucessfully.
Resolves #2453 .
2017-11-17 11:16:42 -05:00
Josefson Fraga
3131d3d3bc
Flake8 warnings pointed by travis.
2017-11-17 11:48:34 -03:00
cryzed
274c92a64b
Add documentation additionally to the help page of qute-pass (complaint from the Arch wiki)
2017-11-17 12:42:25 +01:00
Josefson Fraga
96599b9684
revisions set by The Compiler
2017-11-17 02:38:56 -03:00
Artur Shaikhullin
b184d2f94d
dirty initial port of chrome caretbrowser extension
2017-11-16 19:25:15 +06:00
Florian Bruhin
3a012ca1e3
Update changelog
2017-11-16 11:21:00 +01:00
Florian Bruhin
b26f2290bc
Merge remote-tracking branch 'origin/pr/3097'
2017-11-16 11:14:59 +01:00
Florian Bruhin
e856639db7
Update changelog
2017-11-16 10:19:47 +01:00
Florian Bruhin
b3085f5d60
Merge remote-tracking branch 'origin/pr/3291'
2017-11-16 10:17:02 +01:00
Florian Bruhin
e3a3edaf9a
Update list of alternatives
...
[ci skip]
2017-11-16 10:05:26 +01:00
Florian Bruhin
47480d07f0
Make the docs for a tox wrapper script clearer
...
[ci skip]
2017-11-16 08:52:28 +01:00
Florian Bruhin
625a2c3060
Merge remote-tracking branch 'origin/pr/3293'
2017-11-16 08:03:02 +01:00
Ryan Farley
e2169d2d92
importer: fix style issues
2017-11-15 20:00:14 -06:00
Florian Bruhin
8104869ab6
Update docs
2017-11-15 13:04:11 +01:00
dwagle
233cea4b62
discarded unnecessary comment and adjusted some code to make pylint happy, also made adjustments to pytest scenarios
2017-11-15 15:48:21 +05:45
Florian Bruhin
dbefaccf06
Set python_requires in setup.py
2017-11-15 09:47:45 +01:00
Panagiotis K
e4be834b39
Platform-agnostic test.
2017-11-15 09:51:05 +02:00
Jay Kamat
92a6e61b52
Use importorskip to skip stylesheet tests on webkit only systems
2017-11-15 02:05:34 -05:00
Florian Bruhin
ccdd1e5f06
Update changelog
2017-11-15 07:33:03 +01:00
Florian Bruhin
ea71f0e318
Merge remote-tracking branch 'origin/pr/3285'
2017-11-15 07:32:04 +01:00
Florian Bruhin
404f9ea1d0
Merge remote-tracking branch 'origin/pr/3290'
2017-11-15 07:31:10 +01:00
Ryan Farley
2b6763ad13
importer: tests
...
Added tests for Netscape and Mozilla formats.
2017-11-14 19:23:34 -06:00
dwagle
b3b768f4a8
normalize url path and strip trailing slashes when doing gu/gU, normalize every qute://* urls and raise OSError when a url redirects to a directory in qute://help/ pages
2017-11-14 21:23:40 +05:45
Florian Bruhin
e72e8b8556
Revert "Hide quickmark/bookmark completion if empty."
...
This reverts commit 23716f1212 .
See #3016
Fixes #3288
Reopens #960
2017-11-14 13:29:58 +01:00
Florian Bruhin
9febcc2e76
Use https:// links for qutebrowser.org
...
Fixes #3289
2017-11-14 10:43:05 +01:00
Florian Bruhin
62f35ee064
Fix lint
2017-11-14 09:05:28 +01:00
Dasith Gunawardhana
ea70a0dea1
changed setting name and reverted non-issue fix
2017-11-14 01:41:15 -05:00
Florian Bruhin
111cc7093f
Update changelog
2017-11-14 06:20:09 +01:00
Florian Bruhin
1203be2a44
Remove unnecessary str() call
2017-11-14 06:19:42 +01:00
Jay Kamat
28572ce3b1
Fix stylesheet tests crashing when no QtWebEngine available
2017-11-14 00:00:53 -05:00
Dasith Gunawardhana
4419e59d46
prevent WM fullscreen from being unset when desktop_fullscreen is false
2017-11-13 23:25:10 -05:00
Jay Kamat
4845180689
Update version tests for uptime
2017-11-13 23:20:50 -05:00
Jay Kamat
ae48fa68a8
Add an uptime section to qute:version
2017-11-13 21:58:00 -05:00
Dasith Gunawardhana
36c8ca9790
added option to limit fullscreen to window only
2017-11-13 21:38:02 -05:00
Jay Kamat
5913552dfe
Fix style issues in stylesheet tests
2017-11-13 19:57:11 -05:00
Florian Bruhin
408ceefad1
Merge branch 'none-position'
2017-11-13 20:42:22 +01:00
Florian Bruhin
3c9bd25f3d
Merge remote-tracking branch 'origin/pr/3284'
2017-11-13 20:40:30 +01:00
Florian Bruhin
870c15a02c
Merge remote-tracking branch 'origin/pr/3264'
2017-11-13 20:40:23 +01:00
Ryan Roden-Corrent
b72343d126
Yank selected text with completion-item-yank.
...
If text is highlighted in the status command bar, completion-item-yank
should yank that rather than the selected completion item.
Resolves #3281 .
2017-11-13 13:25:18 -05:00
Jay Kamat
0f17e6633d
Stop calling _register automatically for StyleSheetObservers
2017-11-13 12:04:31 -05:00
pyup-bot
ebe44e5f65
Update jinja2 from 2.9.6 to 2.10
2017-11-13 15:59:18 +01:00
pyup-bot
a3f9991ce2
Update hypothesis from 3.36.0 to 3.37.0
2017-11-13 15:59:16 +01:00
pyup-bot
8407d0a227
Update attrs from 17.2.0 to 17.3.0
2017-11-13 15:59:15 +01:00
pyup-bot
327613d02a
Update attrs from 17.2.0 to 17.3.0
2017-11-13 15:59:13 +01:00
pyup-bot
ccc671b998
Update setuptools from 36.6.0 to 36.7.1
2017-11-13 15:59:12 +01:00
Florian Bruhin
b9f807011a
Update changelog
...
[ci skip]
2017-11-13 13:11:05 +01:00
Florian Bruhin
df4a011d48
Put files into the config dir with :config-write-py and rel. paths
2017-11-13 10:58:51 +01:00
Florian Bruhin
5c43dca0da
Improve error message for files which don't exist
2017-11-13 10:47:37 +01:00
Florian Bruhin
8057f5c281
Set __tracebackhide__ for _check_completions
2017-11-13 09:02:16 +01:00
Florian Bruhin
f6cc6677dd
Remove hiding of commands
...
This was often confusing for people - let's instead just hide commands which are
not available in normal mode.
2017-11-13 09:02:16 +01:00
Florian Bruhin
009fa845f4
Update docs
2017-11-13 07:12:48 +01:00
Florian Bruhin
ec6017b3b2
Remove unneeded parens
2017-11-13 07:09:59 +01:00
Florian Bruhin
7f0ecaa89e
Merge remote-tracking branch 'origin/pr/3266'
2017-11-13 07:09:49 +01:00
Florian Bruhin
fc8f2090f0
Merge remote-tracking branch 'origin/pr/3271'
2017-11-13 07:09:29 +01:00
Florian Bruhin
ccb564de36
Merge remote-tracking branch 'origin/pr/3279'
2017-11-13 07:08:53 +01:00
Ryan Roden-Corrent
23716f1212
Hide quickmark/bookmark completion if empty.
...
If there are no quickmarks/bookmarks, hide the entire category in url
completion. Note that this only hides the category if
quickmarks/bookmarks is empty to begin with. An empty category is still
shown if the completion pattern filters out all items in that category.
See #960 .
2017-11-12 22:28:49 -05:00
Florian Bruhin
f6e6f9d27b
Make qutebrowser aware of settings requiring a restart
...
See #3270
2017-11-12 17:17:19 +01:00
Jay Kamat
c1fcabe846
Remove default config-cycle bindings
...
Many people accidentally hit 'x{x,t,b}', hiding their statusbar by mistake
2017-11-11 16:16:26 -05:00
Jay Kamat
f242fc5cd7
Add setting to avoid shrinking pinned tabs
2017-11-11 11:33:33 -05:00
Jay Kamat
e00a072d15
Fix garbage collection of StyleSheetObserver objects
2017-11-10 23:25:46 -05:00
Jay Kamat
324c537a3d
Refactor webkit and webengine js testers to have a common subclass
2017-11-10 13:00:44 -05:00
Jay Kamat
83e28a70c5
Fix error message printing for webengine js tests
2017-11-10 12:34:23 -05:00
Jay Kamat
d39dda38ce
Refactor CallbackChecker into test utils
2017-11-10 12:27:00 -05:00
Jay Kamat
155ee198cd
Update stylesheet tests for updates in stylesheet.js
2017-11-10 12:19:49 -05:00
Jay Kamat
5ac8e5ad3e
Clean up stylesheet tests
2017-11-10 12:19:35 -05:00
Florian Bruhin
c47f0402ab
Fix lint
2017-11-10 13:14:51 +01:00
Florian Bruhin
456c854f06
Improve documentation for :hint --rapid
2017-11-10 10:23:16 +01:00
Florian Bruhin
d19d896881
Update changelog
2017-11-10 09:42:27 +01:00
Florian Bruhin
8df759ecad
Merge remote-tracking branch 'origin/pr/3259'
2017-11-10 09:42:05 +01:00
Florian Bruhin
fa456b0c6e
Update changelog
2017-11-10 09:16:06 +01:00
Florian Bruhin
9bb3f8d677
Regenerate docs
2017-11-10 09:12:24 +01:00
Florian Bruhin
74af52a0c0
Merge remote-tracking branch 'origin/pr/3261'
2017-11-10 09:05:58 +01:00
Florian Bruhin
78f4abf5a1
Merge pull request #3257 from ryan-farley/import-chrome
...
importer: Chrome support
2017-11-10 09:02:09 +01:00
Jay Kamat
2f9a857a27
Add test for styling error pages
2017-11-09 14:44:33 -05:00
Jay Kamat
04b66e1a0a
Add a test for svg files
2017-11-09 14:44:33 -05:00
Jay Kamat
03eae9140e
Implement proper loading of stylesheet.js
2017-11-09 14:44:33 -05:00
Jay Kamat
9a1d10ca11
Add tests which override existing css
2017-11-09 14:44:33 -05:00
Jay Kamat
e7fdff5632
Implement basic stylesheet tests
2017-11-09 14:44:32 -05:00
Jay Kamat
2b5e8daba0
Implement qtwebengine version of JSTester
2017-11-09 14:44:32 -05:00
Ulrik de Muelenaere
b37517e55f
Fix error in stylesheet.js on older QtWebEngine
2017-11-09 19:28:36 +02:00
Ryan Farley
b5bf114ad4
importer: add chrome profile tests
2017-11-09 02:39:43 -06:00
dkanada
2f7a705015
forgot to update the settings page
2017-11-08 15:29:35 -07:00
dkanada
6ecd429d8f
group indicator preferences
2017-11-08 15:27:16 -07:00
dkanada
b8b49637e2
replace changes to desc
2017-11-08 14:46:00 -07:00
dkanada
785bf24652
change the code for the renamed preferences
2017-11-08 14:42:09 -07:00
Ryan Farley
5688fc9910
importer: test unsupported opensearch separate
2017-11-08 15:13:16 -06:00
Ryan Farley
2b7210f6d1
importer: trailing commas
2017-11-08 15:11:07 -06:00
Ryan Farley
8a695648d3
:%s/Qutebrowser/qutebrowser/g
2017-11-08 15:08:20 -06:00
Panagiotis K
59cebae28e
Remove redundant import.
2017-11-08 18:23:51 +02:00
Florian Bruhin
7cc3fb4a4e
Update FAQ entry for WebKitGTK projects
...
[ci skip]
2017-11-08 16:44:46 +01:00
cryzed
222c51aa6e
Ignore additional Qt error messages
2017-11-08 16:34:40 +01:00
Florian Bruhin
180fb0d65a
Fix handling of caret position with Qt 5.10
...
With Chromium 61 in Qt 5.10, we get null when getting .selectionStart on a
non-text element, like changed in the WhatWG HTML standard:
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-textarea/input-selectionstart
See https://www.chromestatus.com/feature/5740194741354496
Older QtWebEngines and QtWebKit raise InvalidStateError instead.
This also changes the surrounding code and API so None is used to say "there's
no caret position available", which seems like a nicer API.
2017-11-08 16:27:26 +01:00
cryzed
6e719d1796
Fix issue #3251
2017-11-08 15:08:36 +01:00
Florian Bruhin
b9aa5df5ed
Add unit tests for UnicodeEncodeError handling
2017-11-08 07:47:11 +01:00
Florian Bruhin
be08cee63c
Make testsuite work with LC_ALL=C
2017-11-07 17:23:38 +01:00
Florian Bruhin
fdc43438ef
Make tests for non-ASCII files work
2017-11-07 17:00:08 +01:00
Florian Bruhin
743dbbbcd6
Break long lines
2017-11-07 11:29:53 +01:00
Florian Bruhin
fdc9dfdf87
Merge remote-tracking branch 'origin/pr/3175'
2017-11-07 11:24:41 +01:00
Florian Bruhin
9f898611f3
Add missing path assignment
2017-11-07 11:24:00 +01:00
Florian Bruhin
32914cfaf8
Remove unneeded backslash
2017-11-07 11:17:18 +01:00
Florian Bruhin
3eafdc13d7
Merge remote-tracking branch 'origin/pr/3177'
2017-11-07 11:17:00 +01:00
Florian Bruhin
4a4948e601
Update docs
2017-11-07 10:00:25 +01:00
Florian Bruhin
73a6b6b730
Merge pull request #3252 from qutebrowser/pyup-scheduled-update-11-06-2017
...
Scheduled weekly dependency update for week 45
2017-11-07 08:19:18 +01:00
Florian Bruhin
0d68b8bb8f
Update changelog
2017-11-07 07:47:17 +01:00
Florian Bruhin
4f0d8a84ee
Merge remote-tracking branch 'origin/pr/3253'
2017-11-07 07:46:30 +01:00
Florian Bruhin
9f40b40942
Merge pull request #3255 from cincodenada/update-dict-docs
...
Update documentation to reflect new dictcli.py script
2017-11-07 07:30:38 +01:00
Joel Bradshaw
52be2dd665
Update documents to reflect new dictcli.py script
2017-11-06 22:21:07 -08:00
Florian Bruhin
8ddf843c64
Adjust flake8 pins
...
Looks like flake8-debugger 3.0.0 works with the old flake8 again, while
flake8-deprecated doesn't anymore (hah, the irony :D).
2017-11-07 06:34:04 +01:00
Florian Bruhin
bc8d767f6e
Pin PyQt5 to 5.9 for now
...
A Linux wheel isn't available yet for 5.9.1, see:
https://www.riverbankcomputing.com/pipermail/pyqt/2017-November/039698.html
2017-11-07 06:32:32 +01:00
Florian Bruhin
aaed6549b3
Merge pull request #3254 from jgkamat/jay/pinned-tabs-mnemonics
...
Fix Qt Mnemonics affecting min tab width
2017-11-07 06:15:23 +01:00
Ryan Farley
f5d719dfd4
importer: Chrome support
...
This adds Chrome/Chromium support to the importer (which ought to be the
last of these). Bookmarks are read from JSON, while keywords/search
engines (the same thing here) are read from the Web Data sqlite3
database, and converted from OpenSearch format.
importer: add tests for opensearch
2017-11-06 21:19:57 -06:00
Jay Kamat
ecf6f4bca0
Fix Qt Mnemonics affecting min tab width
...
See #3245
2017-11-06 15:05:26 -05:00
Jan Verbeek
3e8c84c018
Make :undo re-open all tabs closed by :tab-only
...
This changes the undo stack from a list of UndoEntry objects to a list
of lists of UndoEntry objects, so groups of tabs can be added. Only
:tab-only does that, but it's exposed by TabbedBrowser.close_tab as a
keyword argument.
2017-11-06 19:32:10 +01:00
Florian Bruhin
b1f1248a05
Update changelog
...
[ci skip]
2017-11-06 16:27:17 +01:00
Florian Bruhin
0053b10e4d
Merge remote-tracking branch 'origin/pr/3243'
2017-11-06 16:26:21 +01:00
pyup-bot
82fd26268b
Update pytest-bdd from 2.18.2 to 2.19.0
2017-11-06 15:50:31 +01:00
pyup-bot
409f8327c2
Update hypothesis from 3.33.0 to 3.36.0
2017-11-06 15:50:30 +01:00
pyup-bot
360e0aaa67
Update sip from 4.19.3 to 4.19.5
2017-11-06 15:50:28 +01:00
pyup-bot
b42346b616
Update pyqt5 from 5.9 to 5.9.1
2017-11-06 15:50:27 +01:00
pyup-bot
0fdf0ff3b1
Update pefile from 2017.9.3 to 2017.11.5
2017-11-06 15:50:25 +01:00
pyup-bot
b759dbfc27
Update flake8-deprecated from 1.2.1 to 1.3
2017-11-06 15:50:23 +01:00
pyup-bot
b61a9c9512
Update flake8-debugger from 1.4.0 to 3.0.0
2017-11-06 15:50:22 +01:00
pyup-bot
0cc855019e
Update coverage from 4.4.1 to 4.4.2
2017-11-06 15:50:20 +01:00
pyup-bot
cd27fb6af6
Update coverage from 4.4.1 to 4.4.2
2017-11-06 15:50:19 +01:00
pyup-bot
120fa41009
Update certifi from 2017.7.27.1 to 2017.11.5
2017-11-06 15:50:17 +01:00
pyup-bot
6a415aee4a
Update certifi from 2017.7.27.1 to 2017.11.5
2017-11-06 15:50:16 +01:00
pyup-bot
1fbd209213
Update certifi from 2017.7.27.1 to 2017.11.5
2017-11-06 15:50:14 +01:00
Florian Bruhin
ad4caeac3a
Regenerate docs
2017-11-06 13:52:42 +01:00
Florian Bruhin
e7da2142f3
Merge remote-tracking branch 'origin/pr/3249'
2017-11-06 13:52:19 +01:00
Florian Bruhin
18cd608493
Update docs
2017-11-06 13:47:50 +01:00
Florian Bruhin
29cbf75615
Merge remote-tracking branch 'origin/pr/3249'
2017-11-06 13:46:24 +01:00
Ryan Roden-Corrent
c74cb22374
Improve completion-item-yank documentation.
2017-11-06 07:34:31 -05:00
Florian Bruhin
f56692d836
Update changelog
2017-11-06 12:14:27 +01:00
Florian Bruhin
378b280f9a
Fix qute://gpl
2017-11-06 12:13:54 +01:00
Florian Bruhin
55815bd17b
Add some debug logging for #3219
2017-11-06 10:53:37 +01:00
Florian Bruhin
b55bb5dc6f
Work around QUrl::query() not being available with PyQt 5.9.1
...
See https://www.riverbankcomputing.com/pipermail/pyqt/2017-November/039702.html
2017-11-06 08:50:03 +01:00
Florian Bruhin
2514b009af
Use QUrlQuery to get log level on qute://log
...
This helps with
https://www.riverbankcomputing.com/pipermail/pyqt/2017-November/039702.html
2017-11-06 08:42:59 +01:00
Florian Bruhin
4d8ac7486c
Go back to using subprocess.Popen for :restart
...
With subprocess.run, we wait until the subprocess has completed, which means the
parent process will hang on :restart.
Since we *don't* want to wait for the subprocess here, using subprocess.Popen
seems the right thing to do.
This was introduced in bb54a954fe / #3203
Probably doesn't affect #3210 and #3220 .
2017-11-06 07:45:17 +01:00
Florian Bruhin
22f3fade24
Bump up default font size to 10pt
...
See #1585
2017-11-06 07:36:52 +01:00
Florian Bruhin
f52930c857
Make the window.hide_wayland_decoration option less special
2017-11-06 07:33:13 +01:00
Florian Bruhin
4fdf2d6f40
Update docs
2017-11-06 07:11:00 +01:00
Florian Bruhin
d8392d4852
Merge environment variable init tests
2017-11-06 07:05:32 +01:00
Florian Bruhin
341e8ca864
Add a qt.highdpi setting
...
See #1585
2017-11-06 07:02:07 +01:00
Florian Bruhin
4857374fb0
Update changelog
2017-11-06 06:53:47 +01:00
Florian Bruhin
f222aa30a6
Merge remote-tracking branch 'origin/pr/3250'
2017-11-06 06:53:11 +01:00
Florian Bruhin
e03fffe604
Update changelog
2017-11-06 06:49:21 +01:00
Florian Bruhin
fef6b8e5fb
Merge remote-tracking branch 'origin/pr/3247'
2017-11-06 06:48:50 +01:00
Florian Bruhin
691a152ec8
Remove old config file
2017-11-06 06:48:23 +01:00
Jay Kamat
ca0aa68f74
Fix icon width calculation for pinned tabs
2017-11-05 23:23:33 -05:00
Michal Siedlaczek
9153bf8c19
Additional version() test
2017-11-05 20:12:29 -05:00
Michal Siedlaczek
855d0312b5
Review fixes
2017-11-05 18:12:15 -05:00
Michael Hoang
966aa810df
Set maxsplit to 0 on :buffer
...
Remove double quotes from tests
2017-11-06 06:41:43 +11:00
Florian Bruhin
f6b6b2ed7d
Merge pull request #3244 from sim590/cast-custom-path
...
userscripts/cast: effectively kill old proc
2017-11-05 18:18:06 +01:00
Ryan Roden-Corrent
db3b1aee0d
Add default ctrl+c binding for completion yank.
...
By default, ctrl+c will yank the selection from the completion menu onto
the clipboard, and ctrl+shift+c will yank it onto the primary selection.
Unfortunately ctrl+y was already taken by rl-yank (which,
counter-intuitively to vim users, will paste the last deleted text).
2017-11-05 11:14:28 -05:00
Ryan Roden-Corrent
bb63f9fd92
Implement completion-item-yank.
...
Yank the text from the first column of the completion menu.
Resolves #1588 .
2017-11-05 11:07:38 -05:00
Simon Désaulniers
3cb06f9a81
userscripts/cast: effectively kill old proc
...
Custom location installed castnow can't be killed with the command
`pkill -f /usr/bin/castnow`. Now recover the path to the binary in the path for
calling and killing the program.
2017-11-05 00:19:06 -04:00
Michal Siedlaczek
51a61cf02d
Fix test: sort when comparing file collection
2017-11-04 20:03:53 -04:00
Michal Siedlaczek
9ea986a569
Fixed typo
2017-11-04 20:02:49 -04:00
Michal Siedlaczek
3ac2cfdf73
Support updating dictionaries and removing old versions.
2017-11-04 18:16:05 -04:00
Panagiotis K
5215321e64
Error handling, better code quality.
...
Handling of os errors raised during parent
directory creation.
2017-11-04 20:17:35 +02:00
Florian Bruhin
af93c0fbc0
Fix changelog
...
[ci skip]
2017-11-04 17:15:20 +01:00
Florian Bruhin
87c339587f
Release v1.0.3
...
(cherry picked from commit fc63cea917 )
2017-11-04 17:05:05 +01:00
Florian Bruhin
990be79933
Update changelog
2017-11-04 16:07:04 +01:00
Florian Bruhin
5689a3c0dc
Fix unbinding default keys twice
...
When doing :unbind with a default keybinding the first time, it gets inserted
into bindings.commands with None as value.
When then doing :unbind a second time, instead of just leaving that None value
as-is, we removed it again (because it got treated as a custom binding).
Fixes #3162
2017-11-04 15:17:19 +01:00
Michal Siedlaczek
2dc0115c81
Load the newest version of the dictionary.
2017-11-03 19:20:31 -04:00
Michal Siedlaczek
16ad9182f1
Add en-AU (Australia) to the list of valid languages
2017-11-03 17:24:33 -04:00
Florian Bruhin
b8e1ed752f
Update docs
...
(cherry picked from commit f85f31ebe92c961b29d5882dbf857cf75debd66d)
2017-11-03 15:03:05 +01:00
Florian Bruhin
c22a27d47f
Add missing trailing dots
...
(cherry picked from commit 5f43b02badc20a4fc67931ab6e76f1050ab283aa)
2017-11-03 15:03:05 +01:00
Florian Bruhin
6233358b71
Sort codeowners file
...
(cherry picked from commit 291cddc170caf552b5ed3587bbe5096fac8111e4)
2017-11-03 15:03:05 +01:00
Florian Bruhin
864249d798
Merge remote-tracking branch 'origin/pr/3181'
2017-11-03 15:02:27 +01:00
Florian Bruhin
568bb5d540
Merge pull request #3229 from ryan-farley/import-moz-bookmarks
...
importer: add mozilla places.sqlite support
2017-11-03 14:41:10 +01:00
Florian Bruhin
0f28804032
Merge pull request #3237 from rcorre/completionsort
...
Fix completion sorting
2017-11-03 14:36:42 +01:00
Florian Bruhin
1c2f0c5359
Merge pull request #3232 from cryzed/qute-pass-userscript
...
Add qute-pass userscript
2017-11-03 14:36:11 +01:00
cryzed
600d2a543d
Exit successfully when the user makes no selection
2017-11-03 13:54:43 +01:00
cryzed
4ec2e5485a
Sort candidates alphabetically
2017-11-03 13:14:29 +01:00
cryzed
22dcd775da
Improve warning message and adjust copyright
2017-11-03 11:57:23 +01:00
Florian Bruhin
1536c098cf
Merge pull request #3215 from deewakar/issue3161
...
Add trailing slash to qute://help pages
2017-11-03 11:49:31 +01:00
cryzed
a96e4490ee
Add qutebrowser license header and warning about login details in qute's debug log
2017-11-03 11:32:32 +01:00
cryzed
ee6b4bc7ee
Add option to merge pass candidates for the fully-qualified and registered domain name
2017-11-03 11:25:35 +01:00
Ulrik de Muelenaere
ce1494e5ec
Update stylesheet.js to ES6
2017-11-03 12:17:35 +02:00
Ulrik de Muelenaere
72c57d16f4
Merge branch 'master' into stylesheet
2017-11-03 12:13:52 +02:00
Florian Bruhin
d53a96d9f2
Merge pull request #3208 from 7lb/refactor/make_completer_less_stateful
...
[RDY] Make completer less stateful
2017-11-03 10:47:52 +01:00
Florian Bruhin
be325853d8
Revert "Inject JS into the profile"
...
This reverts commit acfb3aa26f .
The related code doesn't really belong in webenginesettings.py after all, and
for some reason I don't understand right now this breaks tests in
javascript.feature because window._qutebrowser is undefined when running them.
2017-11-03 09:59:00 +01:00
Florian Bruhin
25bda66260
Merge pull request #3191 from gyorb/refactor/enum
...
use Enum start number
2017-11-03 09:30:47 +01:00
Marcel Schilling
7e07f5c996
standardize placeholders in configdata descriptions
...
* Keep descriptions concise.
* Prefer starting descriptions with a noun.
* Don't explain that placeholders are placeholders/get replaced.
* Introduce placeholder list by the following line:
'The following placeholders are defined:'
* List placeholders in a markdown-style list:
'* `{<placeholder>}`: <description>.'
2017-11-03 08:48:30 +01:00
Marcel Schilling
af9c94bd23
add myself as codeowner for configdata YAML file
...
* to be notified of changes so I can help maintain consistency
2017-11-03 08:44:11 +01:00
Marcel Schilling
c6d7509220
rephrase configdata descriptions
...
* see discussion of PR #3181
2017-11-03 08:44:11 +01:00
Marcel Schilling
87ec7a1a0b
prefer nouns for configdata descriptions
...
* reserve interrogative words for selection type options
2017-11-03 08:44:11 +01:00
Marcel Schilling
aebe4c8f9e
assume single user in configdata descriptions
...
* 'a user' -> 'the user'
2017-11-03 08:44:11 +01:00
Marcel Schilling
a6451c05d7
add missing units to configdata descriptions
...
* fixes #3171
2017-11-03 08:44:11 +01:00
Marcel Schilling
01b29cd640
use interrogative words for configdata descriptions
...
* for selections, use appropriate determiner/pro-adverb/pronoun:
* 'When to [...].'
* 'How to [...].'
* 'Which [...] to [...].'
* 'What [...] to [...].'
2017-11-03 08:44:11 +01:00
Marcel Schilling
0a908206bc
avoid boolean redundancy in configdata descriptions
...
* 'Enable or disable [...]' -> 'Enable [...]'
What else? ---^^^^^^^
2017-11-03 08:44:11 +01:00
Marcel Schilling
494aceec45
use imperative mood for bools in configdata descriptions
...
* considers ConfirmQuit and BoolAsk in addition to Bool
2017-11-03 08:44:11 +01:00
Marcel Schilling
f76af6c949
define type before desc in configdata YAML file
2017-11-03 08:44:11 +01:00
Marcel Schilling
b187a83d59
avoid spaces before colons in confidata YAML file
...
* ' desc : [...]' -> ' desc: [...]'
space ----^ no space ----^
2017-11-03 08:44:11 +01:00
Marcel Schilling
56671e5787
avoid articles in configdata descriptions
...
* includes `valid_value` descriptions in addition to `desc` fields
2017-11-03 08:44:11 +01:00
Marcel Schilling
e744a7c25a
avoid code duplication in configdata descriptions
...
* available placeholders are defined for tabs.title.format
* tabs.title.format_pinned refers to that definition
* window.title.format repeats the identical(!) definition
* this replaces the repetion by another reference
2017-11-03 08:44:11 +01:00
Marcel Schilling
fe8b9519c8
avoid redundancy in configdata descriptions
...
* drop phrases referring to the settings themselves:
* 'set ...'
* 'control ...'
* 'definitons of ...'
2017-11-03 08:44:11 +01:00
Marcel Schilling
fd52409d0c
standardize units in configdata descriptions
...
* encapsulate units in parentheses: ('(in <unit>)')
* move units right behind the corresponding noun
2017-11-03 08:44:11 +01:00
Marcel Schilling
e126faf8c1
prefer 'duration' in configdata descriptions
2017-11-03 08:44:11 +01:00
Marcel Schilling
7672fb5241
avoid abbreviations in configdata description
...
* chars -> characters
* px -> pixels
* ms -> milliseconds
* regexes -> regular expressions
* includes `valid_value` descriptions in addition to `desc` fields
ms_fix
2017-11-03 08:44:11 +01:00
Marcel Schilling
99ad1547bc
break long lines in configdata YAML file
...
* max. 79 chars (as per PEP8)
* two long lines remain (as I didn't know how to safely break them):
> 389 - "http://malwaredomains.lehigh.edu/files/justdomains.zip "
> -> 390 - "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext "
> 391 type:
> --
> 2222 Sh: open qute://history
> ->2223 xx: config-cycle statusbar.hide ;; config-cycle tabs.show always switching
> 2224 xt: config-cycle tabs.show always switching
2017-11-03 08:44:11 +01:00
Marcel Schilling
31e7d8dd3f
fix capitalization in configdata descriptions
...
* url -> URL
* os -> OS
* Page Cache -> page cache
* Spatial Navigation -> spatial navigation
2017-11-03 08:44:11 +01:00
Marcel Schilling
a55d12bf70
add missing periods (.) to configdata descriptions
...
* includes `valid_value` descriptions in addition to `desc` fields
2017-11-03 08:44:11 +01:00
Marcel Schilling
0c01d9b61a
fixed typos in configdata descriptions
2017-11-03 08:44:11 +01:00
Ryan Roden-Corrent
a9926e44f0
Don't check date string in test_histcategory.
...
We really just need to check that the row exists here, the date doesn't
matter. Checking the date here is actually flaky with regards to time.
When running locally at 11:50 EST, it failed with:
```
assert self._model.data(self._model.index(row, col)) == item
AssertionError: assert '1969-12-31' == '1970-01-01'
- 1969-12-31
+ 1970-01-01
```
It was wrong to assume that an atime of 0 would always format to
1970-01-01.
2017-11-02 22:10:00 -04:00
Ryan Roden-Corrent
47447c047a
Ensure completions are sorted after filtering.
...
I previously removed the sorting logic from SortFilter thinking it was
unnecessary if we construct the model with a sorted list. However, this
only worked when no pattern was set, and the items are misordered as
soon as a pattern is input.
This patch reintroduces alpha-sorting, which can be disabled by passing
sort=False to the ListCategory constructor. The session completion test
had to be tweaked as it simulated the incorrect assumption that the
session list is not alpha-ordered; sessions come out of the
session-manager pre-sorted so we may as well use alpha-sorting in the
session completion model.
Resolves #3156 .
2017-11-02 22:10:00 -04:00
cryzed
78eb7b5da8
Select pass candidates for the fully-qualified domain name first, then for the registered domain and finally the IPv4 address if that is what the URL was
2017-11-03 02:43:33 +01:00
Florian Bruhin
acfb3aa26f
Inject JS into the profile
...
Closes #3216
2017-11-02 21:59:22 +01:00
Florian Bruhin
a14ef88acf
Remove some obsolete/deprecated eslint customizations
2017-11-02 20:00:29 +01:00
Florian Bruhin
1cf66976d2
Merge remote-tracking branch 'origin/pr/3225'
2017-11-02 19:43:04 +01:00
Luca Benci
c28d681736
Change test to avoid calling private functions
2017-11-02 19:42:33 +01:00
Florian Bruhin
bb208f4e77
Un-hide :open-editor
...
It can be used in normal mode as well, and it's nice to have it discoverable.
Fixes #3235 .
2017-11-02 19:32:45 +01:00
Florian Bruhin
5469a238de
Fix docs for new editor replacements
...
See #3100
2017-11-02 19:30:47 +01:00
Gyorgy Orban
98c6b49cde
use enum module instead or usertypes.enum
...
Remove the usertypes.enum from the source and use
the standard enum module instead.
Enum start number is available since python 3.5
2017-11-02 18:56:11 +01:00
plexigras
6e624bcd3c
Merge branch 'master' into es6ify-js
2017-11-02 16:44:25 +01:00
cryzed
16fefc1c7b
Make changes suggested here: 0e3c42db69
2017-11-02 14:06:17 +01:00
Florian Bruhin
c0eae5d4e4
Update changelog
2017-11-02 11:35:40 +01:00
Florian Bruhin
9a69ccc9e3
Merge remote-tracking branch 'origin/pr/3100'
2017-11-02 11:32:45 +01:00
Florian Bruhin
4a1cdef887
Fix indent
2017-11-02 11:03:19 +01:00
Florian Bruhin
3385585ca5
Merge remote-tracking branch 'origin/pr/3203'
2017-11-02 11:02:49 +01:00
Florian Bruhin
4498141c8b
Update changelog
2017-11-02 09:15:41 +01:00
Florian Bruhin
f620ffd9d4
Merge remote-tracking branch 'origin/pr/3228'
2017-11-02 09:14:49 +01:00
Florian Bruhin
1c39715267
Clarify qute://configdiff/old title
2017-11-01 22:36:59 +01:00
Ryan Farley
2e051ab008
importer: add mozilla places.sqlite support
...
This adds supports for the places.sqlite format as used by Firefox,
Seamonkey, Pale Moon, and presumably others. Search engine support is
limited to keyword-style '%s' functionality.
vulture whitelist for row_factory
2017-11-01 15:33:13 -05:00
cryzed
0e3c42db69
Rename qute-passmenu to qute-pass again
2017-11-01 20:40:59 +01:00
cryzed
6d37e4671a
Add support for not automatically entering insert mode
2017-11-01 19:08:49 +01:00
cryzed
09d55cb271
Add support for only inserting the username or password
2017-11-01 19:01:17 +01:00
cryzed
c97b416cb1
Rename qute-pass to qute-passmenu
2017-11-01 18:19:46 +01:00
cryzed
19fc4de484
Add qute-pass userscript
2017-11-01 17:57:30 +01:00
Gyorgy Orban
bb54a954fe
use subprocess run
...
The usage of subprocess.run is recommended since python 3.5.
Popen, check_call, call and check_output calls were replaced with run.
2017-11-01 09:59:32 +01:00
Florian Bruhin
385337eb90
Use lts version of NopeJS
...
Looks like npm doesn't work with Node v9:
https://github.com/nodejs/node/issues/16649
2017-11-01 09:24:57 +01:00
Jay Kamat
cb7e6ab02d
Abort pinned tab prompt if tab is destroyed
...
Closes #3223
2017-10-31 19:07:01 -04:00
Luca Benci
24231ae405
Remove unnecessary parens
2017-10-31 23:22:17 +01:00
Luca Benci
bc0c877b87
Formatting
2017-10-31 23:21:37 +01:00
Luca Benci
370405c0ed
Remove assert
2017-10-31 23:20:13 +01:00
Luca Benci
35597a7c01
Change tests for trailing-space behaviour change
2017-10-31 23:15:11 +01:00
Luca Benci
dcc53026a3
Stay within 79 columns
2017-10-31 23:14:07 +01:00
plexigras
fa8476f762
keep old pac_utils.js
2017-10-31 16:40:09 +01:00
Florian Bruhin
dc26808a94
Fix setting names in FAQ
2017-10-31 14:41:36 +01:00
plexigras
905c984148
change some lambdas to functions
2017-10-31 12:54:26 +01:00
plexigras
d4d791f14e
es6ified js
2017-10-31 11:53:35 +01:00
Florian Bruhin
0b86b302a2
pylint: Turn off some more too-many-* stuff globally
...
Humans are just better at judging what's okay here than a machine.
2017-10-31 07:35:00 +01:00
dwagle
95539961a4
made some adjustments in tests/end2end/features/qutescheme.feature for the tests to pass. These are to account for changes made in f70740c, 4c9482b and aab7496
2017-10-31 12:08:43 +05:45
Florian Bruhin
2becc17099
Merge remote-tracking branch 'origin/pr/2966'
2017-10-31 07:15:52 +01:00
Florian Bruhin
dad7e7b9d2
Update changelog
2017-10-31 07:06:04 +01:00
Florian Bruhin
e9483bc485
Merge remote-tracking branch 'origin/pr/3122'
2017-10-31 07:05:38 +01:00
dwagle
f70740cc3a
set original query parameters if any before redirecting to new_url
2017-10-31 11:47:06 +05:45
Ulrik de Muelenaere
95b41b311f
Disable ESLint no-bitwise rule
2017-10-30 22:24:59 +02:00
Ulrik de Muelenaere
3adc2e0f83
Add filter to NodeIterator checking for styled nodes
2017-10-30 19:56:12 +02:00
Ulrik de Muelenaere
34b27437d0
Clarify function names in stylesheet.js
2017-10-30 19:55:37 +02:00
Ulrik de Muelenaere
0540a43995
Check for deleted window
2017-10-30 19:52:15 +02:00
Jay Kamat
64b6852ae3
Fix a couple style issues
2017-10-30 12:40:44 -04:00
dwagle
4c9482be84
added a Scenario: Opening link with qute://help to tests/end2end/features/qutescheme.feature
2017-10-30 17:49:22 +05:45
dwagle
aab7496916
fixes issue #3161
2017-10-30 17:09:45 +05:45
Florian Bruhin
43aa7423ab
Update docs
2017-10-30 08:26:47 +01:00
Florian Bruhin
9d415587bc
Mark flaky test as flaky
2017-10-30 07:05:54 +01:00
Florian Bruhin
08965399c5
Update changelog
2017-10-30 06:59:16 +01:00
Florian Bruhin
daee729fc2
Merge remote-tracking branch 'origin/pr/3200'
2017-10-30 06:58:46 +01:00
Florian Bruhin
3d53ffb7ef
Bump up YAML load deadline some more
2017-10-30 06:55:55 +01:00
Ulrik de Muelenaere
2fe1a1db89
Remove unused variable
2017-10-29 00:23:11 +02:00
Ulrik de Muelenaere
51d48f6b00
Rewrite user stylesheet injection for WebEngine
...
This now works correctly in XML documents. The stylesheet is applied at
document creation to reduce flickering, and is updated if the
user_stylesheets setting is changed after page load.
2017-10-28 22:16:29 +02:00
Florian Bruhin
0d1e716760
Add Vim Vixen to list of alternatives
2017-10-28 18:20:17 +02:00
Florian Bruhin
023c59f8c0
Reset the webserver process correctly between tests
...
If we don't call before_test(), if the server shows an error, all following
tests will fail.
See #3207
2017-10-28 17:29:55 +02:00
Florian Bruhin
f44985548b
Merge pull request #3211 from regines/cheatsheet-update
...
Update cheatsheet
2017-10-28 17:24:31 +02:00
Regina Hug
493468e08f
Update cheatsheet
...
Fixes #2466
2017-10-28 17:35:35 +02:00
Jay Kamat
2a4163b2c7
Fix ellipsis on pinned tabs with index > 10
...
See #3209
2017-10-27 17:20:55 -04:00
Luca Benci
249164eb9b
Fix test_quickcomplete_flicker
...
The test needed to be fixed because of how the completer behaviour
changed.
Before:
completer always scheduled a completion update on selection changed,
but the updates themselves were ignored if not needed.
Now:
completer only schedules completion updates when actually needed, but
never ignores a completion update.
So, before it was correct to check whether `set_model` was called, now
we must check if the completion was actually scheduled. This can be
done by checking the parameters with which `_change_completed_part`
is called, since a completion is scheduled only when `immediate=True`
2017-10-27 22:25:41 +02:00
Luca Benci
f5f11f7f4e
Remove _ignore_change
2017-10-27 20:15:33 +02:00
Luca Benci
2947b75ab9
Make eslint happy
2017-10-27 19:52:10 +02:00
Ryan Roden-Corrent
8f068dda1b
Disable pylint's too-many-boolean-expressions.
2017-10-27 07:23:41 -04:00
Florian Bruhin
17e0f6d23c
Remove -f for :bind in configuring.asciidoc
...
[ci skip]
2017-10-27 07:15:25 +02:00
Ryan Roden-Corrent
24f466b2c3
Add --related flag to edit-url.
2017-10-26 22:13:35 -04:00
Jay Kamat
97d719b179
Add a simple benchmark for _update_tab_titles
2017-10-26 21:33:10 -04:00
Ryan Farley
879e8dfb2c
fix D401 in importer
2017-10-26 17:09:45 -05:00
Florian Bruhin
dc01b4eaf0
Use Pygments for syntax highlighting
2017-10-26 22:42:55 +02:00
Florian Bruhin
d7dac40c2c
Update Gentoo install instructions again
2017-10-26 21:38:37 +02:00
Ryan Roden-Corrent
6519f500a9
Add --private flag to edit_url.
...
The command :edit-url --private (or :edit-url -p) will spawn a new
private window with the url input from the editor.
I had to add 'Given I have a fresh instance' to the feature file to
ensure tests were not interfering.
Resolves #3185 .
2017-10-26 07:21:51 -04:00
Florian Bruhin
02c996a785
Fix wrong 'When' in bdd file
2017-10-26 09:47:02 +02:00
Florian Bruhin
eee5f8263f
Merge remote-tracking branch 'origin/pr/3179'
2017-10-26 09:43:42 +02:00
Florian Bruhin
c883d6b429
Merge remote-tracking branch 'origin/pr/3196'
2017-10-26 08:46:21 +02:00
Florian Bruhin
1c9dc581a4
Skip "Clearing history" test on Windows
2017-10-26 08:45:15 +02:00
Florian Bruhin
c443def24e
Explicitly mention qute://configdiff/old link target
...
Thanks GitHub for just stripping the link...
2017-10-26 08:14:40 +02:00
Ryan Farley
5d2975293b
remove unused import
2017-10-25 16:49:12 -05:00
Luca Benci
ff7edf79e7
Rethrow exception if we can't handle it
2017-10-25 22:53:54 +02:00
Luca Benci
ae2dad7d18
Only catch the correct exception
2017-10-25 22:43:17 +02:00
Luca Benci
3fd7fb3e14
Do not assume elem.selectionStart exists
2017-10-25 22:38:44 +02:00
Ryan Farley
3d87f4ebdf
default to Netscape format for importer
2017-10-25 14:52:53 -05:00
Luca Benci
df3f0124fc
Add test
2017-10-25 21:37:22 +02:00
Luca Benci
f195b7e4d2
Fix flake8 failures
2017-10-25 21:18:53 +02:00
Florian Bruhin
d8461d79cc
Update changelog
2017-10-25 20:50:48 +02:00
Florian Bruhin
2ab441a5a3
Merge remote-tracking branch 'origin/pr/3129'
2017-10-25 20:49:55 +02:00
lxhillwind
4c7f6e5339
Update configfiles.py: line too long fix
2017-10-26 02:04:09 +08:00
lxhillwind
048b792c6f
add <EOL> in :config-write-py generated file
2017-10-26 00:52:22 +08:00
lxhillwind
66c5350989
handle <EOL> of :config-write-py generated file
2017-10-26 00:06:53 +08:00
Florian Bruhin
2051a5d95e
Stabilize :history-clear test
...
Something seems special with the previous view:source tab which prevents us
from loading the new page.
See #3003
2017-10-25 14:08:31 +02:00
Florian Bruhin
94f8bb9574
bdd tests: Make sure initial about:blank check is redone on restart
...
When we did "Given I have a fresh instance", we immediately did run the commands
without waiting for the initial about:blank load again.
With Qt 5.10, this causes issues as the loadFinished signal is emitted with
about:blank then, and not the real URL.
See #3003
2017-10-25 14:06:55 +02:00
Ryan Farley
38e3c1ee8f
fix whitespace
2017-10-24 19:58:38 -05:00
Ryan Farley
137a7114e1
importer: documentation of bookmark types
2017-10-24 19:41:22 -05:00
Ryan Farley
4ed7fe731d
removed wrong option
2017-10-24 17:31:42 -05:00
Florian Bruhin
ed2f473a8e
Make it more clear that :messages helps with failing processes
2017-10-24 22:56:04 +02:00
Florian Bruhin
cb4aea2f69
Update/clarify some docs
2017-10-24 22:39:41 +02:00
Jay Kamat
cb6f4313d7
Lower tabbar cache bound and clean up code
2017-10-24 10:18:10 -04:00
Florian Bruhin
984dd1ba8c
Fix remaining pylint/flake8 issues
2017-10-24 09:37:10 +02:00
Florian Bruhin
1d18e808b1
Merge remote-tracking branch 'origin/pr/3182'
2017-10-24 09:31:25 +02:00
Florian Bruhin
6b1519ed52
Regenerate docs
2017-10-24 08:57:45 +02:00
Florian Bruhin
43bca9793e
Merge remote-tracking branch 'origin/pr/3136'
2017-10-24 08:57:28 +02:00
siddhugolu
c94327748e
Merge branch 'master' of https://github.com/qutebrowser/qutebrowser into finer_pylint_pragmas
2017-10-24 12:20:13 +05:30
siddhugolu
570f1a849f
modified as requested
2017-10-24 12:20:07 +05:30
Christopher Pezley
f67c445f3d
Add test for opening non-ascii paths from command line.
2017-10-23 22:27:00 +02:00
Florian Bruhin
d2b315cac1
Update install instructions for Fedora/Gentoo
...
[ci skip]
2017-10-23 11:57:34 +02:00
Florian Bruhin
9fd53fd445
Add Anonymous to backers file
...
[ci skip]
2017-10-23 08:58:24 +02:00
Florian Bruhin
989d6d2b44
Add Kevin Kainan Li to backers
...
[ci skip]
2017-10-23 08:28:45 +02:00
siddhugolu
bc9d305354
modified as requested
2017-10-23 01:46:02 +05:30
siddhugolu
4862b2faf9
modified pylint pragmas
2017-10-22 23:52:35 +05:30
Luca Benci
1f521da134
Add missing full-stops
2017-10-22 20:03:46 +02:00
Luca Benci
96bbdb19e6
Add missing docstrings
2017-10-22 20:02:32 +02:00
Luca Benci
8b91a74aef
Fix broken test after default config change
2017-10-22 20:02:06 +02:00
Christopher Pezley
f53d8135b0
Add test for opening non-ascii paths.
2017-10-22 19:39:46 +02:00
Christopher Pezley
96eff65690
Log when url contains characters not present in current locale.
2017-10-22 18:41:29 +02:00
Florian Bruhin
af98f9a77d
Fix position in changelog
...
[ci skip]
2017-10-22 17:34:37 +02:00
Florian Bruhin
288fe3f808
Update changelog
2017-10-22 17:33:40 +02:00
Florian Bruhin
bd0289423e
Merge remote-tracking branch 'origin/pr/3180'
2017-10-22 17:33:06 +02:00
Florian Bruhin
a704526582
Remove messages.unfocused
2017-10-22 17:30:47 +02:00
Ryan Farley
31f1025ff8
escape search engine URLs in importer
2017-10-21 18:12:25 -05:00
Michael Hoang
e5f2d27ed9
Ensure that a window with the given win_id exists
2017-10-22 08:22:45 +11:00
Luca Benci
56d29a1b5f
Avoid scheduling spurious completion updates
...
Instead of setting `_ignore_change` to `True` before calling
`_change_completed_part` we just stop `_cmd` from emitting
`update_completion`.
This has the nice side-effect that when writing a complete command
`_ignore_change` was set to `True` regardless, and thus hitting space
would not update the completion view.
Now, hitting space will (as always) schedule a completion update that
now will not be incorrectly ignored
2017-10-21 23:20:37 +02:00
Jay Kamat
49daa7aab8
Add most recent tab bar to cache statistics
2017-10-21 16:18:23 -04:00
Christopher Pezley
bdfb9c60cc
Fix issue where opening a file whose name contains characters not
...
present in locale would cause a crash.
Fixes qutebrowser/qutebrowser/1450
2017-10-21 21:01:07 +02:00
Florian Bruhin
34fc5335d9
Merge remote-tracking branch 'origin/pr/3176'
2017-10-21 19:04:01 +02:00
Florian Bruhin
13116b2679
Stabilize IPC test
...
We can get earlier log messages from objreg
2017-10-21 19:02:35 +02:00
Florian Bruhin
33df4eb865
Skip test_fake_haiku on Windows
2017-10-21 19:01:22 +02:00
Jay Kamat
5ba4e13cab
Fix typo in :home on pinned tab test
2017-10-21 01:32:56 -04:00
Jay Kamat
b499474599
Prevent calling _tab_pinned on every tab twice
2017-10-21 00:32:05 -04:00
Jay Kamat
caae1c7008
Fix blowing cache for different icons
2017-10-20 22:13:54 -04:00
Jay Kamat
fde4495bc7
Clear cache on config changes
2017-10-20 16:35:11 -04:00
Luca Benci
dee0799e15
Avoid crash with LC_ALL=C and unicode filename
2017-10-20 22:06:59 +02:00
Jay Kamat
e705ea7e56
Rename _minimum_tab_size_hint_helper
2017-10-20 15:40:11 -04:00
Jay Kamat
f6cc9d53b8
Merge branch 'master' into jay/cache-tabsize
2017-10-20 15:24:22 -04:00
Florian Bruhin
4c2aeb01a8
Update docs
2017-10-20 12:47:48 +02:00
Florian Bruhin
589e9b7153
Fix string escaping in config.source test
2017-10-20 10:05:42 +02:00
Florian Bruhin
3dc06aad24
Update changelog
2017-10-20 09:15:22 +02:00
Florian Bruhin
128a16173e
Merge remote-tracking branch 'origin/pr/3165'
2017-10-20 09:14:41 +02:00
Florian Bruhin
5fe6e60ffd
Fix lint
2017-10-20 09:12:23 +02:00
Florian Bruhin
c3e9343a6d
Update changelog for scrolling improvements
...
See #2233 , #2822
2017-10-20 08:59:39 +02:00
Florian Bruhin
8504d41db3
Use Qt API for QtWebEngine scrolling
...
See #2233
Fixes #2822
2017-10-20 08:58:28 +02:00
Florian Bruhin
dd927ded6b
Only update tab/window title on scroll if needed
...
This way, if {scroll_pos} is not in the window/tab title template,
we don't redraw anything unnecessarily.
See #2233
2017-10-20 08:25:43 +02:00
Florian Bruhin
280dddda6b
Set backend in TestRectOnView.test_zoomed
2017-10-20 08:07:10 +02:00
Florian Bruhin
fd8e5e30c6
Re-add scroll filtering and disable it for mark/scroll tests
...
See #2233
2017-10-20 07:38:51 +02:00
Florian Bruhin
455b90ecad
Log which dictionaries have been found
...
See #3166
2017-10-20 07:14:32 +02:00
Martin Fraga
2bfa853847
Add keyhint radius configuration option
...
The radius for the keyhint dialog box should be configurable vi via
c.keyhint.radius. The default was set to 6px, which is the previous
hardcoded value.
2017-10-19 02:03:59 -07:00
Luca Benci
9613deb89d
Document new editor.command placeholders
2017-10-18 21:20:05 +02:00
Luca Benci
0436526203
Change default editor command
2017-10-18 21:08:22 +02:00
Luca Benci
9b177ae8e7
Remove single-function test class (move test out)
2017-10-18 20:33:14 +02:00
Luca Benci
937d0d0688
Add some more tests
2017-10-18 20:30:16 +02:00
Luca Benci
0d7a557396
Fix configtypes tests so that placeholder is True
2017-10-18 20:30:03 +02:00
Luca Benci
cf04219f79
Rename possible_placeholder to arg
2017-10-18 20:20:05 +02:00
Luca Benci
7907840ead
Add full stops
2017-10-18 20:19:47 +02:00
Luca Benci
addccd7492
Move comment to docstring and fix typo
2017-10-18 20:19:09 +02:00
Florian Bruhin
378498bbd7
Add a test for multiple config.source() errors
2017-10-18 14:06:54 +02:00
Florian Bruhin
5a9042ab3e
Add a config.source() method
2017-10-18 13:53:26 +02:00
Florian Bruhin
34787edf4e
Add Xresources to config recipes
...
[ci skip]
2017-10-18 10:46:12 +02:00
Florian Bruhin
354c3c8c9b
Handle unknown filetypes with qute://help
2017-10-18 09:02:39 +02:00
Luca Benci
6f1b9b7984
Add tests for line & column calculation
2017-10-17 23:19:10 +02:00
Luca Benci
06b990c0d1
Add ShellCommand tests for {file}
2017-10-17 23:03:42 +02:00
Luca Benci
f710536092
Move line and column calculation to own function
2017-10-17 22:48:43 +02:00
Luca Benci
233e72fef1
Adjust docstring
2017-10-17 22:38:11 +02:00
Florian Bruhin
9dc9bcaf39
Make standarddir work on HaikuOS
...
For some reason, it returns an empty DataLocation.
2017-10-17 22:37:14 +02:00
Luca Benci
e508224a46
Avoid the use of chained replaces
2017-10-17 22:35:01 +02:00
Luca Benci
b3445bc35a
Add default value for caret_position
2017-10-17 22:08:54 +02:00
Ryan Farley
af8a5c58da
use sys.exit
2017-10-17 14:48:56 -05:00
Ryan Farley
73c5666ff9
various importer fixes
...
* Line breaks reinserted
* None in place of ''
* Check for browser before selecting default input format (to fix
KeyError)
* Remove redundant -S option and clarify help to make it slightly more
obvious what output formats make sense
* Added long-form arguments and slightly more sensible names (not really a
fix, but I personally like having them)
2017-10-17 14:48:56 -05:00
Ryan Farley
a6ed079011
make browser argument optional
2017-10-17 14:48:56 -05:00
Ryan Farley
84b2b05254
help text mod
...
Browser choices are now formatted in the help text rather than listed
manually. Redundant line regarding output default removed from epilogue
2017-10-17 14:48:56 -05:00
Ryan Farley
d85a15f0a2
style, variable name typo
2017-10-17 14:48:56 -05:00
Ryan Farley
aa0613c6d8
support multiple input formats
...
This restructures things to better support future implementations of
other input formats. The default formats are specified in a global dict
of browsers, which prevents duplicating the list of choices for browser
in bother get_args() and main(), and a new option enables overriding of
the default.
2017-10-17 14:48:56 -05:00
Ryan Farley
799fe5deb3
default to new search format
2017-10-17 14:48:56 -05:00
Ryan Farley
898dde566d
fix whitespace issues
2017-10-17 14:48:56 -05:00
Ryan Farley
c163f702c2
fix config.val in format
2017-10-17 14:48:56 -05:00
Ryan Farley
31bbc8c5b3
importer support for keywords and search engines
...
This allows importer.py to process Netscape HTML exports from Firefox
(and other Mozilla browsers) with three distinct types:
* bookmarks (sans shortcuturl attribute)
* keywords (bookmarks with a shortcuturl attribute)
* searches (keywords with a URL containing a %s substitution)
The first two can be combined at will in either quickmark or bookmark
output formats, the only difference being that keywords will be used in
place of titles when exporting to quickmark format. Searches are
exported to qutebrowser.conf format, or the new config.py format.
Dictionaries are used in the import function for readability's sake, but
the command line arguments follow the same general formula of true-false
flags used to select input bookmark types and the output format.
2017-10-17 14:48:55 -05:00
Florian Bruhin
828ffd4979
Update changelog
2017-10-17 21:19:46 +02:00
Florian Bruhin
11f97f71f4
Merge remote-tracking branch 'origin/pr/3150'
2017-10-17 21:19:11 +02:00
Florian Bruhin
807b7701d5
Re-add blank line
2017-10-17 21:11:14 +02:00
Jay Kamat
62b6d62cd7
Clean up sub-module import and unneeded +
2017-10-17 14:22:18 -04:00
Jay Kamat
5d11a1fd75
Prevent :home from bypassing pinned tab warnings
...
Closes #3138
2017-10-17 11:37:37 -04:00
Jay Kamat
95761c5023
Fix crashes on qute_pylint module when not running in the root
...
Useful for editors that run from non-root directories for
integrations, but skips some tests. Shouldn't impact tests run normally.
2017-10-17 10:36:37 -04:00
Florian Bruhin
5c6a821b1e
Update changelog
2017-10-17 15:35:58 +02:00
Florian Bruhin
96bec9f9d7
Fix error code for "database is locked"
...
See #2930
2017-10-17 15:35:23 +02:00
Florian Bruhin
12c9590524
Always use shortest match for completion.use_best_match
2017-10-17 15:01:37 +02:00
Florian Bruhin
4984c9d05c
Update docs
2017-10-17 14:57:41 +02:00
Florian Bruhin
161b96be1e
Fix long line
2017-10-17 13:10:00 +02:00
Florian Bruhin
bf1af698bd
Merge pull request #3147 from fiete201/Fix_debian_install_instructions_for1.0.2
...
fix debian install instructions to fit debian9 and new apt
2017-10-17 13:10:40 +02:00
Fritz Reichwald
2fccc083af
fix debian install instructions to fit debian9 and new apt
2017-10-17 12:03:27 +02:00
Florian Bruhin
4f263505ee
Improve tests for partial matching
2017-10-17 11:49:46 +02:00
Florian Bruhin
2e64dda592
Clean up getting matching commands
2017-10-17 11:40:34 +02:00
Florian Bruhin
52423fa426
Remove unneeded variable
2017-10-17 11:37:19 +02:00
Florian Bruhin
c3441ae4a8
Update changelog
2017-10-17 11:34:46 +02:00
Florian Bruhin
c233099bca
Merge remote-tracking branch 'origin/pr/3063'
2017-10-17 11:34:35 +02:00
Florian Bruhin
44e5dc1c5a
Add a comment to @xfail_norun
2017-10-17 10:45:58 +02:00
Florian Bruhin
458a45c172
Remove old deprecated commands
2017-10-17 10:44:22 +02:00
Florian Bruhin
f1ddf58260
Add a deprecated :tab-detach
2017-10-17 10:30:47 +02:00
Florian Bruhin
f84af0a6fb
Fix docstring
2017-10-17 09:33:20 +02:00
Florian Bruhin
ced4713fda
Reverse if/else
2017-10-17 09:14:59 +02:00
Florian Bruhin
2c86788901
Update changelog
2017-10-17 09:14:02 +02:00
Florian Bruhin
cce4ff6d53
Merge remote-tracking branch 'origin/pr/3054'
2017-10-17 09:10:45 +02:00
Florian Bruhin
8d169597ae
Fix lint for standardpaths_tester
2017-10-17 09:06:52 +02:00
Florian Bruhin
9470bff464
Merge pull request #3137 from qutebrowser/pyup-scheduled-update-10-16-2017
...
Scheduled weekly dependency update for week 42
2017-10-17 08:13:19 +02:00
Florian Bruhin
a8eae03ee9
Update release checklist
2017-10-17 07:52:43 +02:00
Florian Bruhin
373ad28d2e
Release v1.0.2
...
(cherry picked from commit 55a88ceea6 )
2017-10-17 07:46:02 +02:00
Florian Bruhin
14a63b8a82
Include appdata file in MANIFEST
2017-10-17 07:39:44 +02:00
Florian Bruhin
6bc35a1842
Remove blank lines
2017-10-17 07:39:09 +02:00
Florian Bruhin
dd683ea08c
Merge remote-tracking branch 'origin/pr/3139'
2017-10-17 07:38:48 +02:00
Florian Bruhin
db874d8bba
Show apps with/without QApplication in standardpaths_tester
2017-10-17 06:34:08 +02:00
Florian Bruhin
1a7612e559
Bump up yaml timeout a bit
2017-10-17 06:28:22 +02:00
Florian Bruhin
d8384ced0a
Show better error message when trying to toggle with :set
2017-10-17 06:26:42 +02:00
Florian Bruhin
544c508fac
Add standardpaths_tester.py
2017-10-17 06:22:40 +02:00
Florian Bruhin
8acd014d39
Ignore new Qt 5.10 debug build messages
2017-10-17 06:22:26 +02:00
suve
2ad7bafcdf
Add "faq" and "help" links in appdata.xml file
2017-10-16 22:30:51 +02:00
suve
914d72a216
Remove the .desktop suffix from <id> in appdata.xml
...
This used to be required by the standard, but is no longer the case.
2017-10-16 22:26:46 +02:00
suve
30f7f7b03c
Change <id> in appdata.xml to match the {tld}.{vendor}.{product} scheme
2017-10-16 22:05:07 +02:00
suve
18776456f3
Add <provides> to appdata.xml file
2017-10-16 21:58:58 +02:00
suve
3084e7be02
Add <categories> to appdata.xml file
2017-10-16 21:58:51 +02:00
suve
a76fdfe205
Add more URLs to appdata file
2017-10-16 21:55:24 +02:00
suve
1d5d6acdea
Add <launchable> info to appdata.xml
2017-10-16 21:34:08 +02:00
suve
039edd8d85
Add a basic appdata.xml file
2017-10-16 21:32:53 +02:00
Aneesh Roy
50983f01b8
New tab opens as unrelated
2017-10-16 17:14:48 +01:00
pyup-bot
eec129807e
Update hypothesis from 3.32.0 to 3.33.0
2017-10-16 16:53:15 +02:00
pyup-bot
dd70019d4c
Update setuptools from 36.5.0 to 36.6.0
2017-10-16 16:53:13 +02:00
Aneesh Roy
4d780e23af
Add tabs.close_mouse_button_on_bar ignore option
2017-10-16 15:49:19 +01:00
Aneesh Roy
674269724f
Configurable behavior of close mouse button on bar
2017-10-16 15:44:52 +01:00
Florian Bruhin
e89fda189a
Fix tab sizing when we get a QPainter and not a QStylePainter
...
I'm not sure yet how that happens, but I got a crash report for that.
See #3099
2017-10-16 13:44:51 +02:00
Florian Bruhin
e766fe14fc
Fix HTML escaping in completion
2017-10-16 12:27:13 +02:00
Florian Bruhin
7adab9ec78
Fix long line
2017-10-16 09:58:44 +02:00
Florian Bruhin
5307b97ca5
Improve checkpyver error message
2017-10-16 09:24:31 +02:00
Florian Bruhin
caeab959a5
Update changelog
2017-10-16 08:32:11 +02:00
Florian Bruhin
8756997dc8
Merge remote-tracking branch 'origin/pr/3099'
2017-10-16 08:30:03 +02:00
Florian Bruhin
09868c1e7f
Update docs
2017-10-16 08:17:45 +02:00
Florian Bruhin
3797b0cfed
Merge remote-tracking branch 'origin/pr/3034'
2017-10-16 08:12:15 +02:00
Florian Bruhin
3d02feac2b
Merge pull request #3118 from jgkamat/jay/git-version
...
Change qute:version git commit to display hash
2017-10-16 07:59:52 +02:00
Florian Bruhin
2a65cadb67
Fix setting monospace fonts with None values
...
Fixes #3130
2017-10-16 06:18:09 +02:00
Florian Bruhin
e003b11670
Fix overflow handling for QtWebKit scrolling
...
If we do "m * val / 100", the value gets bigger, so we need to check for an
overflow afterwards.
2017-10-15 22:30:17 +02:00
Florian Bruhin
fa4a66f7b3
Add SQLITE_READONLY to environmental errors
2017-10-15 21:10:11 +02:00
Adrien Folie
57e1135abe
fix blurry favicons on hidpi displays
2017-10-15 19:24:15 +02:00
Florian Bruhin
e90a5f509e
Improve install docs
...
[ci skip]
2017-10-15 12:25:57 +02:00
Florian Bruhin
392ea8825b
Clarify completion keybinding changes
...
See #3125
[ci skip]
2017-10-15 12:21:14 +02:00
Florian Bruhin
af3c9a2b9e
Update changelog
2017-10-15 00:29:45 +02:00
Florian Bruhin
16b2df56df
Merge remote-tracking branch 'origin/pr/3115'
2017-10-15 00:27:14 +02:00
Florian Bruhin
2eba2cc8f5
Skip another history test on AppVeyor
2017-10-15 00:26:26 +02:00
Florian Bruhin
f4796b5ec6
Add missing period
2017-10-15 00:22:19 +02:00
Florian Bruhin
e3a305a814
Regenerate docs
2017-10-15 00:21:56 +02:00
Florian Bruhin
71f48a1e30
Move statusbar colors together in configdata.yml
2017-10-15 00:21:35 +02:00
Florian Bruhin
69d4bb6c6a
Merge remote-tracking branch 'origin/pr/3119'
2017-10-15 00:20:47 +02:00
Jay Kamat
4ff44eff7b
Clean up logic for finding git hash
...
Also add implementation for release scripts as well
2017-10-14 18:08:52 -04:00
Florian Bruhin
8f9bb67762
Merge pull request #3102 from rcorre/configuring_pylint
...
Note how to ignore pylint in configuring doc.
2017-10-15 00:05:11 +02:00
Jay Kamat
08b562ea0c
Add caching for tab sizes
2017-10-14 17:59:50 -04:00
Florian Bruhin
01d2654c23
Improve history formatting in crashdialog
2017-10-14 22:27:30 +02:00
Florian Bruhin
bad349aacf
Fix getting history in crash dialog
2017-10-14 22:23:03 +02:00
Kimat Boven
8ca0c87b1f
FakeUrl had no url
2017-10-14 22:14:01 +02:00
Kimat Boven
ffab9e263f
it was not possible to show the current_url in tab or window title
...
note that I couldn't use {url} as field for the FormatString
2017-10-14 22:14:01 +02:00
Florian Bruhin
5dacf1431f
eslint: Disable multiline-comment-style
2017-10-14 21:41:56 +02:00
Florian Bruhin
27c46f20c0
Make sure the config default values are mutable
...
While the old values meant the same thing, they weren't mutable, so the config
couldn't modify them with a simple .append().
Fixes #3104
2017-10-14 16:40:44 +02:00
Florian Bruhin
97a14c14b3
Update changelog
...
[ci skip]
2017-10-14 12:50:34 +02:00
Florian Bruhin
0195f717c3
Move QOpenGL imports to the top
...
We don't support Qt < 5.4 anymore anyways.
2017-10-14 12:11:41 +02:00
Florian Bruhin
b3f395453b
Run Nvidia shader workaround earlier
...
We need to do it before utils.opengl_vendor(), and it fits better there anyway.
This was a regression in v1.0.
See #2554 , #3106
2017-10-14 12:10:21 +02:00
sMailund
f5cccfb097
re-add erroneously removed line
2017-10-14 10:43:34 +02:00
sMailund
14005e3684
trigger color change on passthrough mode
2017-10-14 10:30:44 +02:00
sMailund
57c4285dbc
configure colorflags for passthrough mode
2017-10-14 10:29:34 +02:00
sMailund
4d2ca878ea
add color configuration to passthrough mode
2017-10-14 10:26:55 +02:00
Jay Kamat
ee3d7463f6
Change qute:version git commit to display hash
...
Replaces output of git-describe
Closes #3095
2017-10-13 23:30:07 -04:00
Florian Bruhin
d411ec1eba
Mark content.notifications as QtWebKit-only
2017-10-13 23:18:36 +02:00
Luca Benci
440740d30b
Don't crash when opening editor under webkit
2017-10-13 20:40:08 +02:00
Ryan Roden-Corrent
dde50c23bc
Fix up pylint notes in configuring.asciidoc.
...
- Use short form of pylint disable
- Update the following code block as well
- Add pylint ignore for missing-module-docstring
2017-10-13 07:44:26 -04:00
Florian Bruhin
db8fa5fdb6
Skip "History with invalid URL" test on Windows
...
For some reason, this hangs a lot on AppVeyor
2017-10-13 10:45:40 +02:00
Panagiotis K
630384e07f
Fix tests.
2017-10-13 10:39:34 +03:00
Florian Bruhin
2872ae5641
Release v1.0.1
2017-10-13 09:21:56 +02:00
Florian Bruhin
cbe0ff94a1
Ignore inotify_add_watch Qt warning
...
This happens on Travis from time to time.
2017-10-13 09:12:31 +02:00
Florian Bruhin
19a0a026dc
Update Firefox extension list in README
...
[ci skip]
2017-10-13 08:07:32 +02:00
Florian Bruhin
2bf9a81451
Prevent empty segfault reports
2017-10-13 07:52:55 +02:00
Luca Benci
ad9ac2191b
Also accept {file} placeholder
2017-10-12 23:48:49 +02:00
Luca Benci
6425061b3a
Substitute new editor.command placeholders
...
Added placeholders are:
* `{file}` has the same function as `{}`
* `{line}` is the 1-based line number
* `{column}` is the 1-based column number
* `{line0}` like `{line}`, but 0-based
* `{column0}` like `{column}` but 0-based
2017-10-12 22:46:05 +02:00
Luca Benci
cdf4f69251
Pass caret_position to editor's edit()
2017-10-12 22:43:31 +02:00
Luca Benci
67e41af875
Add sanity check and accessor for caret_position
2017-10-12 22:43:06 +02:00
Florian Bruhin
35d5038ab1
Add missing test
2017-10-12 22:42:58 +02:00
Luca Benci
f43a597370
Add cursor_position to serialize_elem output
2017-10-12 22:42:40 +02:00
Florian Bruhin
bf1d6acb06
Properly fix up version checks...
2017-10-12 22:41:52 +02:00
Bryan Gilbert
0e527d2584
Consistently space + center favicons when using vertical tabs
2017-10-12 14:55:13 -04:00
Florian Bruhin
07b1b3fbd4
Update changelog
...
[ci skip]
2017-10-12 19:59:46 +02:00
Florian Bruhin
8539d092df
Fix version checking in earlyinit
...
With the previous commit, we also checked that PyQt was >= 5.7.1, but we want to
support PyQt 5.7.0. Instead, we now check the individual components by hand.
Also, the previous check accidentally allowed PyQt >= 5.2.0 instead of 5.7.0.
2017-10-12 19:41:49 +02:00
Florian Bruhin
dfe2f9e38c
Also check PyQt version for qtutils.version_check()
...
With an older PyQt built against a newer Qt, we still don't have its features
available.
This also drops support for exact=True with compiled=True as the semantics for
that are unclear, and it's not used.
2017-10-12 19:13:20 +02:00
Florian Bruhin
4f870f902c
Fix loading of monospace fonts in configtypes.QtFont
...
See #3096
2017-10-12 18:26:54 +02:00
Ryan Roden-Corrent
69ced4e033
Note how to ignore pylint in configuring doc.
...
The doc explains how to ignore flake8 errors, but the `c` and `config`
variables may also make pylint unhappy
2017-10-12 11:51:03 -04:00
Joakim Reinert
efef588c30
fix lints in completer
2017-10-12 14:43:22 +02:00
Panagiotis K
10388b0515
Remove an unused variable.
2017-10-12 15:16:35 +03:00
Panagiotis K
0a753915ff
Prompt for non-existing download directories.
...
Closes #2120
2017-10-12 15:00:35 +03:00
Joakim Reinert
7c584e7b6c
add optional interval argument to start function of Timer stubs
...
Fixes failing tests for completer
2017-10-12 13:02:37 +02:00
Florian Bruhin
e9f9449237
Release v1.0.0
2017-10-12 09:15:02 +02:00
Florian Bruhin
e6ffcfc673
Remove QtWebKit reference from manpage
2017-10-12 09:14:51 +02:00
Florian Bruhin
5905b27299
Update changelog and install docs for v1.0.0
2017-10-12 09:12:39 +02:00
Florian Bruhin
5dca8cc8e5
Fix nested lists in changelog
...
[ci skip]
2017-10-12 08:57:41 +02:00
Florian Bruhin
80f46192b5
Update changelog for v1.0.0
...
See #3090
[ci skip]
2017-10-11 22:44:47 +02:00
Florian Bruhin
20f935e1f1
Prepare release checklist for v1.0.0
...
[ci skip]
2017-10-11 22:27:42 +02:00
Florian Bruhin
c87d369725
Improve fonts.monospace tests
2017-10-11 22:14:58 +02:00
Florian Bruhin
f035d4f362
Fix quote handling for fonts.monospace family
2017-10-11 22:14:58 +02:00
Florian Bruhin
a21a60c5ca
Fix updating fonts when fonts.monospace is changed
...
Fixes #2973
2017-10-11 22:14:55 +02:00
Florian Bruhin
cbe9ff7435
Fix reading of fonts.monospace on init
...
See #2973
2017-10-11 22:06:47 +02:00
Florian Bruhin
96c0cde8b8
Fix copy-paste error in colors.messages.warning.border description
2017-10-11 16:26:52 +02:00
Florian Bruhin
ba92f32e9f
Merge pull request #3073 from qutebrowser/sql-errors
...
Handle some sqlite errors gracefully
2017-10-11 14:48:01 +02:00
Florian Bruhin
64443a3eed
Fix docstrings
2017-10-11 14:40:05 +02:00
Florian Bruhin
1b5f1aaebf
Merge remote-tracking branch 'origin/pr/3055'
2017-10-11 14:37:59 +02:00
Florian Bruhin
4bca180a44
Pass HOME to PyInstaller environment
...
This prevents some weird Homebrew errors.
2017-10-11 14:09:45 +02:00
Florian Bruhin
f5e7388bfe
Improve YAML deadline warning
...
See #2777
2017-10-11 13:15:15 +02:00
Florian Bruhin
4827e98b4e
Fix lint
2017-10-11 13:15:15 +02:00
Florian Bruhin
5f7ce74e66
Install LibYAML on macOS on Travis
...
See #2777
2017-10-11 13:15:15 +02:00
Florian Bruhin
d78c184b6a
Break long lines in travis_run.sh
2017-10-11 13:15:15 +02:00
Florian Bruhin
1a8de3b504
Check for YAML C extensions on Travis
...
See #2777
2017-10-11 13:15:15 +02:00
Florian Bruhin
35335d954b
Show error when YAML load took too long
...
See #2777
2017-10-11 13:15:11 +02:00
Florian Bruhin
9c080538ba
Add a setting to force the platform and improve Wayland handling
...
Closes #3078
See #2932
2017-10-11 09:23:21 +02:00
Florian Bruhin
e9a50f5f9f
Another attempt at stabilizing qutescheme.feature
2017-10-11 08:46:53 +02:00
Florian Bruhin
bdc82bc633
Fix lint
...
See https://github.com/PyCQA/pylint/issues/1698
2017-10-11 08:41:23 +02:00
Michael Hoang
249e497d36
Add test for window completion
2017-10-11 17:18:13 +11:00
Michael Hoang
29f66dcd95
Merge :tab-detach with :tab-give
2017-10-11 17:18:12 +11:00
Florian Bruhin
59a1609dd8
Handle RuntimeError in AbstractTab __repr__
...
Apparently it can happen that we try to get a repr of an already destroyed tab.
In that case, we display <RuntimeError> as the URL now.
2017-10-11 08:02:27 +02:00
Florian Bruhin
2a3369e2fe
Show nicer errors when trying to set deleted/renamed options
2017-10-11 08:00:38 +02:00
Florian Bruhin
0cd5d4300b
Rename qt_args and force_software_rendering to add qt. prefix
...
Closes #3077
2017-10-11 07:45:38 +02:00
Michael Hoang
67437a0d5d
Add :tab-give and :tab-take commands and tests
2017-10-11 16:27:35 +11:00
Michael Hoang
b7061dc7db
Separate logic for resolving buffers from index
2017-10-11 16:27:35 +11:00
Florian Bruhin
abbd69f604
Implement deleting/renaming values in configdata.yml
...
This is needed for #3077 , but also is used for the deletion in #2847 now.
See #2772 .
2017-10-11 07:13:51 +02:00
Anton S
fadc8f1e0b
[review] convey via_ipc from process_pos_args to get_window
2017-10-11 00:45:22 +03:00
Anton S
085304a1de
[review] removed ApplicationActivate handler due to bugs
2017-10-11 00:28:20 +03:00
Luca Benci
c8d41a4f87
Make tests pass
2017-10-10 22:54:49 +02:00
Luca Benci
052c527e4c
Avoid explicit config monkeypatching
2017-10-10 22:52:57 +02:00
Luca Benci
787e3db3d5
Move tests to test_runners.py
2017-10-10 22:51:40 +02:00
Luca Benci
5078080bb0
Add (not fully working) tests for use_best_match
2017-10-10 22:02:25 +02:00
Anton S
ba1a7a8de8
[review] force_raise -> no_raise
2017-10-10 23:02:10 +03:00
Florian Bruhin
211de6d664
Leave qute://settings after tests are done
...
Let's see whether this helps with the flakyness where the next test (for pyeval)
tries to set frame_flattening...
2017-10-10 21:45:57 +02:00
Florian Bruhin
0afbcc0faa
Update Saka Key url
2017-10-10 21:45:57 +02:00
Florian Bruhin
4c1273ba0a
Fix indent
2017-10-10 14:59:24 +02:00
Anton S
e1f5da3eff
[review] docstrings, url logging, etc.
2017-10-10 14:13:49 +03:00
Anton S
e537826ff5
fixed docstring, converted list to set
2017-10-10 01:46:49 +03:00
Anton S
40185385cf
moved methods to restore initial order
2017-10-10 01:37:39 +03:00
Anton S
14da05f7b1
use open_url to handle FileOpen event
2017-10-10 01:31:31 +03:00
Anton S
00f0e519a9
added option to suppress window raising
2017-10-10 01:30:58 +03:00
Anton S
552d041422
reused some code from process args
2017-10-10 01:30:14 +03:00
Anton S
5301a42495
raise last focused window if requested
2017-10-10 01:00:34 +03:00
Anton S
6b7cecc840
separated window raising into it's own function
2017-10-10 01:00:33 +03:00
Florian Bruhin
c9c827aa3e
Merge pull request #3074 from qutebrowser/pyup-scheduled-update-10-09-2017
...
Scheduled weekly dependency update for week 41
2017-10-09 22:31:29 +02:00
Florian Bruhin
8a6ea6a375
Add spaces around args with annotations
...
Looks like pylint 1.7.3/.4 notices those
2017-10-09 21:21:17 +02:00
pyup-bot
a6e363e779
Update tox from 2.8.2 to 2.9.1
2017-10-09 16:53:19 +02:00
pyup-bot
db8a84cf82
Update pytest-qt from 2.2.0 to 2.2.1
2017-10-09 16:53:18 +02:00
pyup-bot
c25bbcc0cb
Update pytest from 3.2.2 to 3.2.3
2017-10-09 16:53:16 +02:00
pyup-bot
756dca8a0e
Update parse-type from 0.4.1 to 0.4.2
2017-10-09 16:53:15 +02:00
pyup-bot
191ee67403
Update hypothesis from 3.30.3 to 3.32.0
2017-10-09 16:53:13 +02:00
pyup-bot
513773e81d
Update pylint from 1.7.2 to 1.7.4
2017-10-09 16:53:12 +02:00
Joakim Reinert
0226025308
add adjustable amount of chars required to update completions
2017-10-09 16:51:19 +02:00
Joakim Reinert
019d66a4c6
add adjustable delay for completion updates
2017-10-09 16:51:19 +02:00
Florian Bruhin
d6d13770a3
Add missing history tests
2017-10-09 16:17:55 +02:00
Florian Bruhin
b5777299fd
Fix getting a short text from the SqlError
2017-10-09 16:08:56 +02:00
Florian Bruhin
b608259751
Handle some sqlite errors gracefully
...
We mark some SQL errors as "environmental", and then show those as error
messages instead of raising an exception.
Fixes #3004
Workaround for #2930
2017-10-09 16:06:24 +02:00
Luca Benci
0578349e29
Default completion.use_best_match to false
2017-10-09 11:12:42 +02:00
Luca Benci
71048a1b55
Add (and use) completion.use_best_match config
2017-10-09 11:12:37 +02:00
Luca Benci
9d0dfd5726
Always run best-matching command
2017-10-09 11:12:28 +02:00
Florian Bruhin
6498273b31
Add libraries to userscript docs
2017-10-09 07:51:13 +02:00
Florian Bruhin
83aa936276
Ignore _on_history_trigger for destroyed tabs
2017-10-09 07:13:43 +02:00
Florian Bruhin
e95260092c
Add some more dwb keybindings
...
See #13
2017-10-09 07:00:59 +02:00
Florian Bruhin
0e64511d63
Split up _init_envvars from configinit.early_init
2017-10-09 06:52:14 +02:00
Florian Bruhin
f63b95c298
Fix the window.hide_wayland_decoration setting
...
Fixes #2267
2017-10-09 06:50:29 +02:00
Florian Bruhin
220d1be500
Fix docstring
2017-10-08 23:10:08 +02:00
Florian Bruhin
36ef68c698
Add :bind --default
...
Closes #3059
2017-10-08 21:48:48 +02:00
Florian Bruhin
83fdb68fc2
Update docs for spellcheck.languages
2017-10-08 21:30:02 +02:00
Florian Bruhin
8c1e95787d
Improve error message for PercOrInt
...
Fixes #3068
2017-10-08 19:47:05 +02:00
Florian Bruhin
6c3f90146f
Make qtutils.version_check strict by default
...
This also renames 'strict' to 'compiled' to be more descriptive.
It also fixes a crash when starting qutebrowser with an older compiled Qt
version which was introduced recently (calling setSpellCheckEnabled).
2017-10-08 19:08:37 +02:00
Florian Bruhin
13b7647443
Merge pull request #3057 from jnphilipp/master
...
Support playlist in mpv userscript.
2017-10-08 17:15:40 +02:00
Florian Bruhin
1d1faf8d25
Merge remote-tracking branch 'origin/pr/2940'
2017-10-08 16:53:10 +02:00
Florian Bruhin
6c300f41dd
Don't use urllib.parse.urljoin to concatenate URLs
...
It doesn't support more than two arguments, and it's not really needed with the
predictable URLs we have anyways.
See #2891 .
2017-10-08 16:46:15 +02:00
Florian Bruhin
1d7af2e74b
Use double quotes to avoid escaping
2017-10-08 15:25:21 +02:00
Florian Bruhin
8ce69e1e57
Update docs (and lowercase qutebrowser)
2017-10-08 15:24:48 +02:00
Florian Bruhin
277daa334d
Merge remote-tracking branch 'origin/pr/2891'
2017-10-08 15:23:01 +02:00
Florian Bruhin
e63d11527d
Get rid of CommandRunner.run_safely_init
...
All messages are queued nowadays.
2017-10-08 14:42:42 +02:00
Florian Bruhin
51ea56375e
Improve error handling for config commands
...
- Use self._handle_config_error() for key commands too
- Catch getting an invalid key properly
- Remove (wrong) "set: " prefix
2017-10-08 14:40:10 +02:00
Florian Bruhin
8d34d4d4f5
Turn on overflow checking in sip
2017-10-08 12:58:28 +02:00
jnphilipp
f1b53cdbdc
Update view_in_mpv
2017-10-07 23:10:48 +02:00
Michal Siedlaczek
00666feaf6
FAQ update for spellcheck & test fix
2017-10-07 15:54:22 -04:00
Bryan Gilbert
be3727a599
Improved zoom level management and enforcement
2017-10-06 20:30:06 -04:00
Florian Bruhin
0d8edd54fb
Mention macOS/Windows upgrades in install docs
...
[ci skip]
2017-10-06 14:25:46 +02:00
Michal Siedlaczek
4bac2f3e44
Initialize profiles with spellchecking turn on by default.
2017-10-06 07:58:26 -04:00
Florian Bruhin
54e5176f28
Revert "Only emit perc_changed signal when the percentage actually changed"
...
This reverts commit 1d50c2c39a .
This breaks various end2end test relying on getting log messages for scrolling.
2017-10-06 10:16:41 +02:00
Florian Bruhin
cb357b326d
Merge pull request #3058 from josealberto4444/master
...
Small typos and bugs fixed in docs
2017-10-06 09:00:02 +02:00
Florian Bruhin
1d50c2c39a
Only emit perc_changed signal when the percentage actually changed
...
QtWebEngine emits scrollPositionChanged a lot during smooth scrolling, and
there's no reason we need to update percentages when they didn't *actually*
change.
This reduces the updates with a single spacebar press from 6-7 to 2-3 on my
machine, which might not be enough though.
See #2233
2017-10-06 08:51:48 +02:00
Florian Bruhin
e1d358f4c1
Ignore another Qt error message
2017-10-06 08:50:57 +02:00
Florian Bruhin
acf3945efc
Mark hints.auto_follow_timeout test as flaky
...
It fails on CI sometimes when the CI is too slow
2017-10-06 08:48:47 +02:00
Florian Bruhin
a7955505be
Try stabilizing completion test
2017-10-05 20:03:35 +02:00
Florian Bruhin
2651688ef4
Only show customized options for :config-unset completion
2017-10-05 18:40:34 +02:00
Michal Siedlaczek
fd9a5fa334
Style fixes
2017-10-05 09:56:13 -04:00
Florian Bruhin
2c9003fd4b
Adjust macOS QtWebKit instructions
2017-10-05 15:36:26 +02:00
josealberto4444
5f69247033
Actually fix bullet list
2017-10-05 14:13:05 +02:00
josealberto4444
9503f23abc
Direct https link to the actual license
2017-10-05 14:10:13 +02:00
josealberto4444
d8e9d10c00
Unify style and fix some bugs
2017-10-05 14:10:00 +02:00
josealberto4444
30aab8ef79
Small typos
2017-10-05 13:32:10 +02:00
Florian Bruhin
618586f8b0
Merge branch 'config-write-py'
2017-10-05 11:30:50 +02:00
Florian Bruhin
953d028bd6
Mention config commands in configuring.asciidoc
2017-10-05 11:22:54 +02:00
Florian Bruhin
581b09b08f
Update changelog
2017-10-05 11:22:54 +02:00
Florian Bruhin
c63d16e2ea
tests: Get rid of duplicate key config stubs
2017-10-05 11:22:54 +02:00
Florian Bruhin
012f79b244
Make sure key_config_stub is available when needed
2017-10-05 11:05:16 +02:00
Florian Bruhin
712e4a975a
Add a test to make sure :write-config-py files actually work
2017-10-05 10:48:14 +02:00
Florian Bruhin
3cb93b22ae
Add tests for :config-write-py
2017-10-05 10:34:25 +02:00
Florian Bruhin
ade0e1bd0b
Finish ConfigPyWriter and tests
2017-10-05 10:21:31 +02:00
jnphilipp
e0c76fcb4f
Support playlist in mpv userscript.
2017-10-05 09:42:47 +02:00
Florian Bruhin
231b0522ca
Refactor write_config_py
2017-10-05 09:01:33 +02:00
Florian Bruhin
8dc34cf78a
Write commented lines with :write-config-py when writing defaults
2017-10-05 08:50:41 +02:00
Anton S
91c6847e59
[review] style fixes
2017-10-05 01:49:13 +03:00
Anton S
0f1444125f
[osx] proper plist to show up in browsers list (by The-Compiler)
2017-10-05 01:16:43 +03:00
Anton S
5350b948ea
[review] gather plist params in one place
2017-10-05 01:13:23 +03:00
Florian Bruhin
763d035ee3
Add environment variables to skip backendproblem checks
...
This is usually a bad idea, but might be useful in some special situations.
2017-10-04 22:25:14 +02:00
Florian Bruhin
2f33f93a98
Update FILES in manpage
...
[ci skip]
2017-10-04 22:16:36 +02:00
Florian Bruhin
d3d644d6a5
Try to stabilize :window-only test
2017-10-04 21:09:46 +02:00
Florian Bruhin
09f2b06081
build_release: Fix casing for framework name
2017-10-04 19:09:54 +02:00
Michal Siedlaczek
6d9f04355c
Strip JSON response from Google API of the 5-byte prefix
...
Read more here:
* https://github.com/google/gitiles/issues/22
* https://github.com/google/gitiles/issues/82
2017-10-04 10:06:14 -04:00
Michal Siedlaczek
c5d695b59e
Remove spellcheck.enabled option.
2017-10-04 09:54:59 -04:00
Michał Siedlaczek
e20ad95666
Merge branch 'master' into spell
2017-10-04 09:47:42 -04:00
Michal Siedlaczek
6a486058c5
Review fixes
2017-10-04 09:22:35 -04:00
Florian Bruhin
bae49c9366
Update Windows install instructions
2017-10-04 11:49:04 +02:00
Florian Bruhin
9257538dcf
Regenerate docs
2017-10-04 11:48:46 +02:00
Florian Bruhin
36857d9250
Remove valid values for Bool from docs
2017-10-04 11:46:42 +02:00
Florian Bruhin
6fa001481d
Add some comments to generated config.py
2017-10-04 11:43:14 +02:00
Florian Bruhin
7fc5e42cca
Initial :config-write-py implementation
2017-10-04 11:14:24 +02:00
Florian Bruhin
f18b730f24
Update changelog
2017-10-04 09:36:08 +02:00
Florian Bruhin
f0c0fea281
Merge branch 'pr/3025'
2017-10-04 09:28:40 +02:00
Florian Bruhin
96ff0c61ef
Try to stabilize :completion-item-del for :buffer test
2017-10-04 09:11:02 +02:00
Florian Bruhin
3b689166f8
Skip flaky :buffer test entirely
2017-10-04 09:10:48 +02:00
Florian Bruhin
da4402e98c
Don't rely on order in test_clear
2017-10-04 09:02:34 +02:00
Florian Bruhin
38270de120
Avoid configdata init in test_configinit
...
See #2777
2017-10-04 09:01:31 +02:00
Florian Bruhin
cc871389c9
Increase pytest-faulthandler timeout a bit
...
See #2777
2017-10-04 08:58:35 +02:00
Florian Bruhin
6037d44d0e
Remove unused imports
2017-10-04 08:56:32 +02:00
Florian Bruhin
969b8f3200
Fix test_configcommands on Python 3.5
...
looks like assert_called_once() was introduced in 3.6
2017-10-04 08:55:33 +02:00
Florian Bruhin
37fa7a0d3e
Fix casing in test name
2017-10-04 08:47:33 +02:00
Florian Bruhin
208b4d1cbc
Make configfiles.YamlConfig iteration deterministic
2017-10-04 08:47:10 +02:00
Florian Bruhin
42550cd2e6
Merge remote-tracking branch 'origin/pr/3048'
2017-10-04 06:47:48 +02:00
Florian Bruhin
9bba3ddf0d
Update changelog
2017-10-04 06:47:08 +02:00
Florian Bruhin
ae4d5153b9
Add missing docstring
2017-10-04 06:47:08 +02:00
Florian Bruhin
cdf0cf56fa
Merge remote-tracking branch 'origin/pr/3056'
2017-10-04 06:45:08 +02:00
Florian Bruhin
7cbb2b079f
Use existing tabbed_browser_stubs fixture in tests
2017-10-04 06:35:42 +02:00
Florian Bruhin
8c660d1bf4
Add a :version command
2017-10-04 06:23:15 +02:00
Ryan Roden-Corrent
4a9e22163b
Filter keyhints based on count prefix.
...
If a count prefix is given, only hint commands that can take a count.
2017-10-03 22:15:21 -04:00
Ryan Roden-Corrent
5d787c84ea
Show keyhint even with count prefix.
...
The keyhintwidget was not showing up when a keychain was prefixed with a
count. For example, 'g' would show a keyhint but '5g' would not. Now
keyhints are shown even when a count is given.
Resolves #3045 .
2017-10-03 22:04:53 -04:00
Michal Siedlaczek
932e7a9ab9
Review fixes
2017-10-03 20:07:06 -04:00
Anton S
68481bc989
[osx] declare html files support as well
2017-10-04 00:02:03 +03:00
Florian Bruhin
feaccb3083
Rename :scroll-perc to :scroll-to-perc
...
Closes #2819
2017-10-03 22:59:32 +02:00
Florian Bruhin
7f28097f55
Be explicit about constraints instead
2017-10-03 22:17:29 +02:00
Florian Bruhin
d70bdb5552
Honour --no-err-windows in more places
...
Fixes #3053
2017-10-03 21:28:55 +02:00
Florian Bruhin
16d369d98c
bdd: Include captured log when subprocess didn't start
...
Fixes #3052
2017-10-03 21:13:56 +02:00
Florian Bruhin
6c2958b646
Set star_args_optional for :config-cycle
2017-10-03 20:49:16 +02:00
Florian Bruhin
22adcfba75
Stop using mocks in test_editor
2017-10-03 20:43:38 +02:00
Florian Bruhin
3907d1e032
Update changelog
2017-10-03 20:43:38 +02:00
Florian Bruhin
22088d9f7b
Remove --force for :bind and config.bind(...)
...
Turns out --force is just in the way for most people, and at least for default
bindings it's easy to reset them.
Also, it makes :config-source fail when config.py contains keybindings.
Closes #3049
2017-10-03 20:43:38 +02:00
Florian Bruhin
727580d1f4
Add a :config-edit command
...
See #2794
2017-10-03 20:43:38 +02:00
Florian Bruhin
555930791f
Refactor ExternalEditor to be able to edit an existing file
2017-10-03 19:24:04 +02:00
Michael Hoang
c8c6199369
Add tests for :set-cmd-text --run-on-count
2017-10-04 03:57:26 +11:00
Michael Hoang
8506e1f4f2
Add arg to run when count given for :set-cmd-text
2017-10-04 03:57:23 +11:00
Florian Bruhin
8edaad51c3
Add a :config-source command
...
See #2794
2017-10-03 16:28:11 +02:00
Florian Bruhin
0695cfccfc
Improve some configfile tests
2017-10-03 14:33:33 +02:00
Florian Bruhin
999d70ae40
Add missing config.py tests
2017-10-03 14:13:10 +02:00
Florian Bruhin
586c6e810f
Fix xfail check
2017-10-03 13:58:53 +02:00
Florian Bruhin
9f10fa105c
Merge adblock.feature into misc.feature
2017-10-03 13:42:04 +02:00
Florian Bruhin
2f9d1875cd
Clear BDD process settings between each test
...
Fixes #1310
2017-10-03 13:38:16 +02:00
Florian Bruhin
9383452ab9
Use a real YAML config for config tests
2017-10-03 13:06:50 +02:00
Florian Bruhin
ed8c3f4aa2
Add :config-clear and :config-unset
...
See #2794
2017-10-03 12:45:39 +02:00
Florian Bruhin
3772084cbf
Adjust test_histcategory for NOT NULL constraints
2017-10-03 10:28:36 +02:00
Florian Bruhin
31f49afdb2
Fix incorrect docstring
2017-10-03 10:28:36 +02:00
Florian Bruhin
1603b15cfd
Default to NOT NULL for table constraints
...
Ideally, we'd update all existing tables to add the new constraints, but sqlite
doesn't offer an easy way to do so: https://www.sqlite.org/lang_altertable.html
Since that migration really isn't worth the effort, we only set the constraint
for new tables...
2017-10-03 10:28:36 +02:00
Florian Bruhin
b06a38ce7e
Reorder methods
...
(cherry picked from commit ba9bd292dbc43bf0ad382a1ef060c87ee651b5d7)
2017-10-03 10:28:19 +02:00
Florian Bruhin
ad867a3b90
Merge branch 'pr/3024'
2017-10-03 10:17:01 +02:00
Florian Bruhin
58bef6ba97
Regenerate docs
2017-10-03 10:16:41 +02:00
Josefson Fraga
92f9a8503e
add required redirect (url,title,atime,redirect)
2017-10-03 01:55:31 -04:00
Florian Bruhin
368e9a5cf9
Update changelog
2017-10-03 07:39:24 +02:00
Florian Bruhin
4ed60efa80
Add missing qapp fixture
2017-10-03 07:38:10 +02:00
Florian Bruhin
f533e3b751
Move config toggling to :config-cycle
...
This removes :set option! and allows :config-cycle option instead.
2017-10-03 07:38:10 +02:00
Florian Bruhin
81993a70a2
Split off :config-cycle from :set
...
Before, we allowed :set to take multiple values, which often lead to confusing
error messages when a user forgot to quote the value.
Now, we instead have a dedicated :config-cycle command for that.
See #1840 , #2794
2017-10-03 07:37:55 +02:00
Josefson Fraga
665a76561e
add insertions to ComandHistory table as well
2017-10-02 22:50:52 -04:00
Florian Bruhin
64e0313090
Fix commas in settings docs
...
Otherwise, asciidoc interprets it as a third parameter to the xref...
Fixes #3046
2017-10-02 20:12:32 +02:00
Josefson Fraga
4dc232f259
pylint fixes
2017-10-02 13:54:24 -04:00
Michael Hoang
8ae0bd2797
Update :buffer tests for count support
2017-10-02 23:44:04 +11:00
Michael Hoang
138ce60c1d
Add count support to buffer command
2017-10-02 23:44:04 +11:00
Florian Bruhin
5af8a95c82
Refactor SQL error handling
...
This renames SqlException to SqlError (to be more consistent with how Python
names exceptions), and adds an utility function which logs a few more useful
details about errors.
See #3004
2017-10-02 09:48:15 +02:00
Florian Bruhin
eacdbe132e
Update changelog
...
[ci skip]
2017-10-02 09:06:11 +02:00
Florian Bruhin
85532248fa
Merge remote-tracking branch 'origin/pr/2879'
2017-10-02 09:05:01 +02:00
Florian Bruhin
506b1cdbc1
Improve input.insert_mode.auto_load tests
...
This also adds a test for #2858 (also see #2879 )
2017-10-02 09:04:37 +02:00
Florian Bruhin
9c1b604cb1
Update changelog
2017-10-02 07:51:58 +02:00
Florian Bruhin
14dacbaa92
Fix typo
2017-10-02 07:49:31 +02:00
Florian Bruhin
0df4569502
Merge remote-tracking branch 'origin/pr/2847'
2017-10-02 07:49:20 +02:00
Florian Bruhin
fbf9817dcb
Rename test classes
2017-10-02 07:15:00 +02:00
Florian Bruhin
a8fc561707
Split config commands off to their own file.
2017-10-02 07:08:30 +02:00
Josefson Fraga
c6d140a40a
adding script to import history data from other browsers
2017-10-02 00:26:47 -04:00
Josefson Fraga
8cb6b832d1
script to import history data from other browsers
2017-10-02 00:24:59 -04:00
Florian Bruhin
32d529b54e
Fix typo in configuring docs
...
[ci skip]
2017-10-02 06:24:29 +02:00
Anton S
a576fae893
[osx] declare URLs support in Info.plist
2017-10-02 01:04:12 +03:00
Florian Bruhin
a273baf8a0
Make sure :bind/unbind works properly when bindings.commands is None
...
To make this work, we should never return None when trying to get bindings to
modify.
Fixes #3026
2017-10-01 21:43:00 +02:00
Florian Bruhin
0fbd914432
Fix completion for empty config values
...
If we have an empty string in the completion, that already gets completed as ''.
If we return "", we'd have '""' in the completion.
Fixes #3027
2017-10-01 20:14:49 +02:00
Anton S
ab6bfe61b8
[osx] first step to become default browser
2017-10-01 00:39:13 +03:00
Florian Bruhin
1b88fec7f0
Fix key chain in configuring docs
...
[ci skip]
2017-09-30 23:23:24 +02:00
Florian Bruhin
e0ff95d62a
Remove outdated note from quickstart docs
...
[ci skip]
2017-09-30 22:55:36 +02:00
Florian Bruhin
59d5c0f8e8
Merge pull request #3039 from gilbertw1/fix-config-doc-alias
...
fix example config.py alias creation example
2017-09-30 15:21:52 +02:00
Bryan Gilbert
ba06323696
fix example config.py alias creation example
2017-09-30 09:02:17 -04:00
Florian Bruhin
1a381bf0a5
eslint: Report unused disables
2017-09-29 22:29:18 +02:00
Florian Bruhin
dca962ca03
Make userscripts work on both Python 2 and 3
2017-09-29 13:38:38 +02:00
Florian Bruhin
0b5af757ec
Clarify settings which need a restart
...
[ci skip]
2017-09-28 21:51:07 +02:00
Florian Bruhin
322d97c3fa
Only show warning message stack with --debug
2017-09-28 21:30:32 +02:00
Florian Bruhin
5c181a23ab
Fix default prompt color
...
The former value was interpreted as a comment in the YAML...
2017-09-28 21:24:12 +02:00
Florian Bruhin
02bcec37f4
Darken default prompt color a bit more
2017-09-28 19:20:29 +02:00
Florian Bruhin
4e57b79e91
Merge branch 'webengine-by-default'
2017-09-28 18:41:41 +02:00
Florian Bruhin
9d963d55f5
Fix :debug-cache-stats with QtWebEngine
...
When we use --backend webengine, the QtWebKit stuff might be importable, but the
history still isn't initialized because of that.
2017-09-28 17:42:21 +02:00
Florian Bruhin
4b9bbaa04d
Skip test_force_software_rendering with QtWebKit
2017-09-28 17:30:53 +02:00
Florian Bruhin
45db0eaccb
Really force QtWebEngine for test_force_software_rendering init
2017-09-28 11:44:21 +02:00
Florian Bruhin
6496442503
Skip test_force_software_rendering on CI
...
We can't be sure we have hardware acceleration there
2017-09-28 11:42:02 +02:00
Florian Bruhin
6c25e96621
Remove unused imports
2017-09-28 11:38:52 +02:00
Florian Bruhin
3be0a78819
Fix configinit tests
2017-09-28 11:05:53 +02:00
Florian Bruhin
865fc2e0de
Handle -s argument earlier
...
This makes sure we can e.g. set software_rendering via -s
2017-09-28 10:10:14 +02:00
Florian Bruhin
45c6ffe991
Add a test for force_software_rendering
2017-09-28 10:04:47 +02:00
Florian Bruhin
6770a474c4
Force software rendering earlier
...
We need to do this before a QApplication exists
2017-09-28 09:52:56 +02:00
Florian Bruhin
35beb84e85
Fix tests and lint
2017-09-28 09:38:57 +02:00
Florian Bruhin
dfa65a0bfe
Remove requirements badge
...
Now that we use pyup weekly they'll be outdated most of the time, and it's not
really an useful metric for users anyways.
2017-09-28 09:29:00 +02:00
Florian Bruhin
f077f52997
Add asserts for the backend
2017-09-28 08:57:48 +02:00
Florian Bruhin
c77cff3fcb
Also fail with DISPLAY with wayland platform plugin
...
QtWebEngine spews errors at us, and while it seems to work with Weston for some
reason (despite errors logged), it doesn't with sway.
2017-09-28 08:56:05 +02:00
Florian Bruhin
b906c862bb
Remove ipc-server from objreg
2017-09-28 08:52:32 +02:00
Florian Bruhin
ce0622e38a
Document how initialization roughly works
2017-09-28 08:41:10 +02:00
Florian Bruhin
e5958e6061
Override --backend argument from backend problem dialog
2017-09-28 08:41:10 +02:00
Florian Bruhin
defcf5394a
Move SSL backend checking to backendproblem.py
2017-09-28 08:41:10 +02:00
Florian Bruhin
fa902c5d82
Improve error dialogs when QtWebKit/QtWebEngine was not found
2017-09-28 08:41:10 +02:00
Florian Bruhin
093f34183c
Add improved checks for Nouveau/Wayland for QtWebEngine
...
Closes #2368
Closes #2932
See #2335
2017-09-28 08:41:10 +02:00
Florian Bruhin
ca4a997559
Update settings for QtWebEngine by default
...
See #2335
2017-09-28 08:41:10 +02:00
Jay Kamat
bb8d41cedc
Add indicator padding to minimumTabSizeHint
...
Previously, indicator_padding was not taken into account, causing
problems when using a indicator_padding too small
Also removed icon padding to width calculation (seemed to be overestimating)
2017-09-27 21:04:06 -04:00
Florian Bruhin
e1f3829383
Cache the completion delegate stylesheet
...
We removed various caches in b5eac744b5 but the
completion delegate stylesheet gets rendered a lot, causing things to slow down.
The rendering takes around 1ms, but it gets done ~10k times with a simple
profiling run, so that adds up quickly.
We don't use a functools.lru_cache here as the stylesheet template never
changes.
Thanks a lot to gilbertw1 for tracking this down!
See #2812 - there's probably more possible, but this should fix the performance
regression some people saw with the new config.
2017-09-27 23:16:40 +02:00
Florian Bruhin
fac322058e
Improve crashdialog result codes
2017-09-27 11:46:51 +02:00
Florian Bruhin
6573888dc6
Fix :bind completion with invalid commands
...
Now that Command doesn't validate things anymore, we can't rely on parsing to
work.
2017-09-27 11:10:25 +02:00
Florian Bruhin
fef1a65247
Fix ListOrValue.to_doc signature
2017-09-27 10:37:42 +02:00
Florian Bruhin
9607f3de59
Improve type documentation of settings
...
Use .get_name() for the docs
2017-09-27 08:25:52 +02:00
Florian Bruhin
c694bff902
Allow direct values for url.start_pages and content.user_stylesheets
2017-09-27 08:21:03 +02:00
Jay Kamat
cc84c1722d
Merge remote-tracking branch 'upstream/master' into jay/remote-pintab-width
2017-09-26 18:07:10 -04:00
Jay Kamat
59c6555537
Remove the tabs.width.pinned setting
2017-09-26 18:06:23 -04:00
Florian Bruhin
2dfcf9c506
Remove unused imports
2017-09-26 21:37:20 +02:00
Florian Bruhin
b879f5e648
Slightly re-style prompts
...
See #2104
2017-09-26 21:28:01 +02:00
Florian Bruhin
6af879887f
Drop --relaxed-config
2017-09-26 20:12:21 +02:00
Florian Bruhin
8e000dfe54
Make qute://configdiff usable with the new config too
...
Closes #2983
2017-09-26 19:39:47 +02:00
Florian Bruhin
1704438777
Reintroduce crash dialogs for QtWebKit
2017-09-26 19:25:53 +02:00
Florian Bruhin
6b5d34c7fb
Fix updating of stylesheet when scrolling.bar is set
...
Fixes #2981
2017-09-26 11:28:40 +02:00
Florian Bruhin
474bf8ad06
Remove unneeded as-import
2017-09-26 10:47:07 +02:00
Florian Bruhin
e32d311d8e
Update changelog
2017-09-26 08:48:53 +02:00
Florian Bruhin
277beae399
Merge branch 'pr/2984'
2017-09-26 08:48:45 +02:00
Florian Bruhin
b96ba8e41f
Merge pull request #3031 from qutebrowser/pyup-scheduled-update-09-25-2017
...
Scheduled weekly dependency update for week 39
2017-09-26 08:43:23 +02:00
Florian Bruhin
dba631102a
Try to stabilize :window-only test
2017-09-26 08:41:07 +02:00
Florian Bruhin
ff6df0c8ca
Don't use utils.is_* in qutebrowser.spec
...
Looks like PyInstaller doesn't like that.
This partially reverts ef1c83862b .
2017-09-26 07:31:45 +02:00
Florian Bruhin
e7dba338b5
Pass %APPDATA% to pyinstaller env
...
This hopefully helps with PyInstaller creating a ~ directory
2017-09-26 07:30:54 +02:00
Florian Bruhin
5a60630450
Don't use utils.is_* in build_release.py
...
This partially reverts ef1c83862b
Otherwise, we'd have to have PyQt5 installed in the environment which runs
build_release.py.
2017-09-26 07:25:59 +02:00
Florian Bruhin
e766cf5ed1
build_release: print artifacts if not releasing
2017-09-26 07:13:54 +02:00
Florian Bruhin
6e226c6885
Add a recipes section to configuring.asciidoc
...
Closes #2987
Closes #2969
Closes #3009
See #2975
2017-09-26 07:08:42 +02:00
Florian Bruhin
38449e3e2b
Make sure the autoconfig.yml is saved periodically
...
Fixes #2982
2017-09-26 06:41:55 +02:00
Florian Bruhin
38038df703
Compare objects with :set with multiple values
2017-09-25 21:24:12 +02:00
Florian Bruhin
1086e31f28
Split up configinit tests
2017-09-25 21:24:12 +02:00
Florian Bruhin
6aed6bca93
Make loading autoconfig.yml opt-in when a config.py exists
...
This lets the user control the precedence those files should have, and also
simplifies the code quite a bit.
Fixes #2975
2017-09-25 21:24:12 +02:00
Florian Bruhin
5a080207ff
Bump up hypothesis deadline some more
2017-09-25 21:20:30 +02:00
Florian Bruhin
930bc9c998
Merge pull request #3032 from forkbong/fix-faq-link
...
Fix the link to faq.html in help page
2017-09-25 20:13:16 +02:00
Panagiotis Ktistakis
54eb23eab1
Fix the link to faq.html in help page
2017-09-25 20:54:28 +03:00
pyup-bot
4d4eee15d6
Update pluggy from 0.4.0 to 0.5.2
2017-09-25 16:47:20 +02:00
pyup-bot
414dc29493
Update parse-type from 0.3.4 to 0.4.1
2017-09-25 16:47:19 +02:00
pyup-bot
2a1f628e4e
Update hypothesis from 3.28.3 to 3.30.3
2017-09-25 16:47:17 +02:00
pyup-bot
d23d53de1c
Update wheel from 0.29.0 to 0.30.0
2017-09-25 16:47:16 +02:00
pyup-bot
9ecc0d8ef7
Update six from 1.10.0 to 1.11.0
2017-09-25 16:47:14 +02:00
pyup-bot
3605b1b510
Update setuptools from 36.2.7 to 36.5.0
2017-09-25 16:47:13 +02:00
Florian Bruhin
c7c198b949
Stabilize hint test
2017-09-25 08:22:40 +02:00
Ian Walker
ad2bb45446
Allow user to cancel proxy authentication request
2017-09-25 15:00:17 +09:00
Ian Walker
78bddaefe6
Move _on_proxy_authentication_required to WebEngineTab
2017-09-25 14:47:54 +09:00
Florian Bruhin
07862ce52e
Merge branch 'pr/3029'
2017-09-25 06:57:02 +02:00
Florian Bruhin
8408d6ed9b
Fix emacs syntax highlighting in configdata.yml
2017-09-25 06:56:33 +02:00
Florian Bruhin
d7273283ce
Regenerate docs
2017-09-25 06:55:17 +02:00
Florian Bruhin
40f0f75ad5
Improve error message for duplicate keys in config.py
2017-09-24 19:43:30 +02:00
Florian Bruhin
fb9fca2477
Merge pull request #3017 from rcorre/overwrite-hist-backup
...
Append multiple history backups on import.
2017-09-24 14:24:53 +02:00
arza
cb68e4b6b2
Remove extra backslashes in configdata.yml
2017-09-23 22:58:30 +03:00
arza
1784dc777d
Add table headers and widen input fields in qute://settings
2017-09-23 22:24:17 +03:00
Ryan Roden-Corrent
888a1b8c57
Append multiple history backups on import.
...
Previously, a successful import of the text history into sqlite would
move 'history' to 'history.bak'. If history.bak already existed, this
would overwrite it on unix and fail on windows.
With this patch, the most recently imported history is appended to
history.bak to avoid data loss.
Resolves #3005 .
A few other options I considered:
1. os.replace:
- fast, simple, no error on Windows
- potential data loss
2. numbered backups (.bak.1, .bak.2, ...):
- fast, no data loss, but more complex
3. append each line to the backup as it is read:
- more efficient than current patch (no need to read history twice)
- potentially duplicate data if backup fails
2017-09-23 13:06:11 -04:00
Ian Walker
e2e9bbacce
Move _on_proxy_authentication_required to WebEngineTab
2017-09-23 17:26:41 +09:00
Florian Bruhin
b8389e4496
Revert "Fix NUL byte error handling on Python 3.4"
...
This reverts commit a7d5a98cc4 .
Not needed anymore now that we dropped support.
2017-09-22 22:30:02 +02:00
Florian Bruhin
e8ceeceac8
Fix mock check with Python 3.5
...
Looks like .assert_not_called() doesn't work on function mocks with 3.5.
2017-09-22 22:28:40 +02:00
Florian Bruhin
459bbc3a6f
Add configinit to PERFECT_FILES
2017-09-22 20:26:56 +02:00
Florian Bruhin
4e46c34e5a
Use .assert_not_called() for mocks
2017-09-22 19:58:38 +02:00
Florian Bruhin
e27c54a5c1
Fix modeparser tests
2017-09-22 19:49:52 +02:00
Florian Bruhin
5be44756e3
Remove unused imports
2017-09-22 17:29:01 +02:00
Michal Siedlaczek
b840b8066b
Spell only when pyqt>=5.8
2017-09-22 11:16:59 -04:00
Florian Bruhin
1e2015be65
Make bindings win over mappings
...
Fixes #2995
2017-09-22 17:13:17 +02:00
Florian Bruhin
7f4cba8bc2
Improve load_autoconfig docs
...
Closes #2993
2017-09-22 14:23:41 +02:00
Florian Bruhin
d5a1fff637
Move init stuff from config.py to configinit.py
...
Closes #2997
2017-09-22 14:11:54 +02:00
Florian Bruhin
d1a4a028cd
Use more idiomatic comparison
2017-09-22 13:24:26 +02:00
Florian Bruhin
69d19e49df
Fix flake8
2017-09-22 13:20:18 +02:00
Florian Bruhin
501764d1cb
Fix documented default values for falsey non-strings
...
Fixes #3015 .
2017-09-22 13:18:27 +02:00
Florian Bruhin
d9a3268405
Explain relationship between 'c' and 'config.set' better
...
[ci skip]
2017-09-22 11:33:42 +02:00
Florian Bruhin
43ab27634f
Fix vulture
2017-09-22 11:07:54 +02:00
Florian Bruhin
7f8ae531aa
Add config.configdir and config.datadir to config API.
...
Fixes #1419
2017-09-22 09:59:46 +02:00
Florian Bruhin
9b22480b07
Raise config.py errors happening in tests
2017-09-22 09:09:45 +02:00
Florian Bruhin
ebf378a945
Add docs about importing modules in config.py
2017-09-22 08:58:41 +02:00
Florian Bruhin
1dbd156c2f
Simplify some config.py tests
2017-09-22 08:53:08 +02:00
Florian Bruhin
276b244466
Merge remote-tracking branch 'origin/pr/2970'
2017-09-22 08:37:23 +02:00
Florian Bruhin
10016ae240
Remove unused import
2017-09-22 08:23:06 +02:00
Jay Kamat
43ce10efc3
Simplify and reorganize configfile tests
...
Also make save/load of sys.path a little more robust
2017-09-22 02:05:55 -04:00
Jay Kamat
4e22b4666d
Convert save-restore of sys to a context-manager
...
Also improve and simplify tests for save/load of sys.module and sys.path
2017-09-22 02:05:55 -04:00
Jay Kamat
7ddde334da
Add tests for module/path isolation
2017-09-22 02:05:55 -04:00
Jay Kamat
333c0d848b
Restructure save/load of state to be more extensible
...
Also save/load sys.modules as well
- This is a little rough, but I can't find a better way...
2017-09-22 02:05:54 -04:00
Jay Kamat
0332dce458
Get config path from config.py location, rather than standarddir
2017-09-22 02:05:54 -04:00
Jay Kamat
a2952e13a8
Add qutebrowser config directory to python path
...
This is done so config.py can import other python files in the config
directory. For example, config.py can 'import theme' which would load
a theme.py.
The previous path is restored at the end of this function, to avoid
tainting qutebrowser's path
2017-09-22 02:05:52 -04:00
Florian Bruhin
c652b0f96c
Remove old monkeypatch
2017-09-21 23:59:16 +02:00
Florian Bruhin
f4017eb5b6
Ignore more Python warnings when importing in earlyinit
...
With a17c4767d6 we moved the first time
pkg_resources is imported to earlyinit.py, which means less warnings were
suppressed.
Fixes #2990
2017-09-21 23:24:22 +02:00
Florian Bruhin
cd9fe57d84
build_release: Also run asciidoc2html on Linux
2017-09-21 23:03:02 +02:00
Florian Bruhin
3f18a5ada7
Update metainfo in setup.py
2017-09-21 22:57:29 +02:00
Florian Bruhin
c74236dd96
Move some data from setupcommon to setup.py
...
We can't get rid of setupcommon entirely (it's needed by PyInstaller), but at
least we can get the data back to setup.py.
Fixes #2996
2017-09-21 22:54:58 +02:00
Florian Bruhin
599a5b9648
Remove windows/pip instructions from earlyinit
...
Windows: The instructions are outdated and not really relevant anymore with the
standalone packages;
pip: Let's recommend tox/virtualenv by just linking to the install docs.
Closes #2998
2017-09-21 22:48:15 +02:00
Michal Siedlaczek
2150154350
Skip end2end spell tests if a dictionary is/isn't installed
2017-09-21 16:36:47 -04:00
Florian Bruhin
1c76a51c1e
Improve configtypes.Command docs
2017-09-21 22:31:11 +02:00
Michal Siedlaczek
396f82d474
Valid dictionaries
2017-09-21 16:30:58 -04:00
Florian Bruhin
64b783d9c0
Do not validate commands in the config and with :bind
...
There are just way too many gotchas related to valid modes, aliases, and
circular dependencies when validating aliases/bindings in the config.
Let's just remove this and let invalid commands fail late, when they're actually
used.
2017-09-21 22:30:48 +02:00
Florian Bruhin
f97f427100
Add an assertion for Completer._partition
2017-09-21 21:50:33 +02:00
Florian Bruhin
32b2b3dfd9
Add test for invalid value type in YAML file
2017-09-21 21:15:37 +02:00
Florian Bruhin
b1ddb9a6df
Remove confusing test
...
That's not the behavior we actually have in the config anymore when using
conf._yaml.load().
2017-09-21 20:27:45 +02:00
Florian Bruhin
691cd2d09b
More test_configfiles cleanups
2017-09-21 20:19:02 +02:00
Florian Bruhin
3e0d49a4b3
Add TestYaml class to test_configfiles
2017-09-21 19:57:54 +02:00
Florian Bruhin
f821fb793a
Initialize configdata in test_configfiles
2017-09-21 19:37:22 +02:00
Michal Siedlaczek
9e620ce6e9
Fix spell with new config
2017-09-21 12:09:55 -04:00
Florian Bruhin
2f7cbfa1ee
Make sure the changelog is in releases
...
[ci skip]
2017-09-21 17:42:57 +02:00
Florian Bruhin
7cad8f41f2
Remove unknown YAML data from config
...
I considered introducing another list of deleted options (or a "deleted: True"
in configdata.yml), similar to what we had with the old config.
However, let's take the easier route and just delete everything we don't know
from configdata.yml. If someone edits it by hand, it's their fault :P
See #2772 , #2847
2017-09-21 16:29:40 +02:00
Michal Siedlaczek
132b1f705e
Revert requirements changes
2017-09-21 09:56:38 -04:00
Michal Siedlaczek
329cfa5756
End2end tests for spell checking
2017-09-21 09:56:33 -04:00
Michal Siedlaczek
cf229cb9c8
Dictionary path bug fix & added warning whenever a selected dictionary isn't installed
2017-09-21 09:56:27 -04:00
Michal Siedlaczek
e61e6b124e
Check if spelling supported by QWebEngineProfile (version 5.8 or higher)
2017-09-21 09:56:27 -04:00
Michal Siedlaczek
95592770a7
Fixing test dependencies and other test issues
2017-09-21 09:53:51 -04:00
Michal Siedlaczek
fac0e44a7e
Test all available languages and getting installed langs when the dir doesn't exist
2017-09-21 09:52:31 -04:00
Michal Siedlaczek
82433e04ad
Set default value for spelling settings and limit number of installed languages for testing
2017-09-21 09:52:09 -04:00
Michal Siedlaczek
d923ab9ae5
Moved and renamed the language list file
2017-09-21 09:51:52 -04:00
Michal Siedlaczek
c2197102a3
Enable spell checking and installing dictionaries for QtWebEngine
2017-09-21 09:51:52 -04:00
Florian Bruhin
cb57525f69
Fix whitespace
2017-09-21 13:43:30 +02:00
Florian Bruhin
a559477028
Merge remote-tracking branch 'origin/pr/2953'
2017-09-21 13:43:01 +02:00
Florian Bruhin
e0e7d4ca67
Stabilize test_quitting_process_expected
2017-09-21 13:42:24 +02:00
Florian Bruhin
53b1ffe953
Merge remote-tracking branch 'origin/pr/2965'
2017-09-21 09:12:56 +02:00
Florian Bruhin
9a6de48efa
Break long line
2017-09-21 09:12:25 +02:00
Florian Bruhin
fb33985f07
Merge remote-tracking branch 'origin/pr/2992'
2017-09-21 09:12:03 +02:00
Florian Bruhin
192c063743
Mark another window.open test as flaky
...
See https://travis-ci.org/qutebrowser/qutebrowser/jobs/277846887
2017-09-21 08:58:56 +02:00
Florian Bruhin
106edc953a
Merge branch 'is-os'
2017-09-21 08:57:32 +02:00
Jay Kamat
d5c2f2855a
Clean up pinned_tab width implementation
...
Misc fixes from PR
2017-09-20 20:48:48 -04:00
Florian Bruhin
9913550688
Fix windows condition
2017-09-20 18:28:18 +02:00
Jay Kamat
e49aa35c75
Remove pinned_width variables
...
Now it calculates the number of pinned tabs directly, instead of
keeping track of a variable. Potentially slower though.
2017-09-20 11:31:05 -04:00
Jay Kamat
da57d21f0c
Remove pinned-width from config
2017-09-20 11:31:05 -04:00
Jay Kamat
b46f116075
Switch pinned tabs to use their title width
...
Previously, their width was determined by a config setting
Closes #2845
2017-09-20 11:31:03 -04:00
Florian Bruhin
9d360f80cf
Use __attrs_post_init__ to validate ArgInfo
...
This makes qutebrowser compatible with attrs < 17.1.0, such as attrs 16.3.0
coming with Debian Stretch.
2017-09-20 17:27:28 +02:00
Felix Van der Jeugt
6892705e18
cover setting-saving-loading-getting yaml config
2017-09-20 15:52:42 +02:00
Penaz91
6132a3d7ca
Made _handle_auto_insert_mode public
2017-09-20 15:52:07 +02:00
Penaz91
7f03b0d0d5
Deleted a commented-out line
2017-09-20 13:37:40 +02:00
Penaz91
ccba76f757
Fix for Issue #2879
2017-09-20 13:31:44 +02:00
Penaz91
f5c15b6ce8
Merge branch 'qutebrowser-master'
2017-09-20 13:23:40 +02:00
Penaz91
6a997851eb
Merge branch 'master' of https://github.com/qutebrowser/qutebrowser into qutebrowser-master
2017-09-20 13:23:20 +02:00
Ryan Roden-Corrent
5cd00f699e
Resolve KeyError when deleting URL with space.
...
Resolves #2963 .
2017-09-20 07:15:59 -04:00
Ryan Roden-Corrent
f9440b8026
Use CommandParser for configmodel.bind.
...
The parsing bind() did manually is now available through CommandParser.
Resolves #2952 .
This also adds a unit test for the case when there is no current
binding, as I broke that while working on this and there was no test to
catch it :)
2017-09-20 07:05:38 -04:00
Florian Bruhin
1d964ccdaf
Only run system datadir test on Linux
2017-09-20 12:20:46 +02:00
Florian Bruhin
2a4f10f0f5
Add qapp for tabbed_browser_stubs
2017-09-20 11:30:18 +02:00
Florian Bruhin
46cfd5353d
Use a pytest marker to fake an OS
2017-09-20 11:30:18 +02:00
Florian Bruhin
ef1c83862b
Use utils.is_* for platform checks everywhere
2017-09-20 11:10:24 +02:00
Florian Bruhin
e4594bd688
Use attributes for utils.is_*
2017-09-20 11:10:23 +02:00
Florian Bruhin
9ddc59e8e5
Also add utils.is_posix()
2017-09-20 11:10:23 +02:00
Florian Bruhin
e50ab3f72c
Merge remote-tracking branch 'origin/pr/2972'
2017-09-20 10:08:08 +02:00
Felix Van der Jeugt
285b534384
make changed dirty and save on duplicate write
2017-09-20 10:04:34 +02:00
Florian Bruhin
31bd4d7ffe
Make sure ProxyId is hashable
...
Fixes proxy auth with QtWebEngine
2017-09-20 09:30:58 +02:00
Florian Bruhin
10c84dfb90
Use unpacking to access config mutables
2017-09-20 08:52:11 +02:00
Florian Bruhin
55cbb39127
Merge remote-tracking branch 'origin/pr/2999'
2017-09-20 08:48:22 +02:00
Florian Bruhin
50b19462f4
Bring back accidentally deleted hunk
2017-09-20 08:17:04 +02:00
Florian Bruhin
ba1cf06be6
Reintroduce handling for typing.Union.__union_params__
...
Looks like Python 3.5.2 doesn't have typing.Union.__args__.
2017-09-20 08:17:04 +02:00
Florian Bruhin
a519d54e7d
Remove hypothesis strict setting
...
It was deprecated as normal python warnings are used now
2017-09-20 08:17:04 +02:00
Florian Bruhin
54ceb52eaf
Switch to using Item.get_report() for vulture
2017-09-20 08:17:04 +02:00
Florian Bruhin
1d2d31d0f9
Remove duplicate key mapping
2017-09-20 08:17:04 +02:00
Florian Bruhin
22be2bf7ab
Fix circular import in ImportFake in test_version
...
We can't use importlib.import_module() when we patched that away...
2017-09-20 08:17:04 +02:00
Florian Bruhin
f74d93b4e9
Merge pull request #3000 from swalladge/fix_readme_link
...
fix link to configuring page in readme
2017-09-20 08:06:07 +02:00
Samuel Walladge
5b8b6cfa99
fix link to configuring page in readme
2017-09-20 15:29:09 +09:30
Ian Walker
a3456c41e4
Mark url argument as unused
2017-09-20 12:51:38 +09:00
Ryan Farley
dd4294de03
fix #2979 : use dictionary for mutable tracking
...
Using a dictionary instead of a list keeps only one working copy,
allowing consistency in between calls of update_mutables()
2017-09-19 16:26:02 -05:00
Florian Bruhin
1de25c14e4
Add attrs to setup.py
2017-09-19 22:36:37 +02:00
Florian Bruhin
58a43d0851
Update changelog
2017-09-19 22:23:32 +02:00
Florian Bruhin
3a5241b642
Start using attrs
...
Closes #1073
2017-09-19 22:21:45 +02:00
Ryan Farley
a530b0cc95
fixed iteration
2017-09-19 14:19:28 -05:00
Ryan Farley
cc540bb166
Merge branch 'master' into mutable-dict
2017-09-19 14:07:46 -05:00
Ryan Farley
83473b9c69
fix test for new tuples
2017-09-19 14:00:44 -05:00
Felix Van der Jeugt
8e14d1b7e6
remove unused import
2017-09-19 17:47:38 +02:00
Felix Van der Jeugt
8db630d358
don't copy values but set dirty
2017-09-19 17:26:03 +02:00
Felix Van der Jeugt
7b192d426e
add unit test and fix issues with it
2017-09-19 15:30:28 +02:00
Florian Bruhin
7226750363
Bump up Hypothesis deadline globally
2017-09-19 15:08:56 +02:00
Felix Van der Jeugt
0e743f0e09
save only a changed autoconfig file
2017-09-19 14:33:34 +02:00
Florian Bruhin
1a1a6ebf79
Improve bind documentation
...
[ci skip]
2017-09-19 13:56:29 +02:00
Florian Bruhin
bb073e1709
Bump up another hypothesis deadline
2017-09-19 13:38:44 +02:00
Florian Bruhin
248afde21e
configapi: Also allow mode as posarg
2017-09-19 13:18:44 +02:00
Florian Bruhin
e8ae672c93
Check for read errors in test_configfiles
2017-09-19 13:18:16 +02:00
Florian Bruhin
7d1549aaeb
Make mode optionally in ConfigAPI.bind and .unbind
2017-09-19 13:14:41 +02:00
Florian Bruhin
a23492fe27
Bump up hypothesis deadline for Content-Disposition test
2017-09-19 11:16:03 +02:00
Florian Bruhin
51afe14965
Set backend to QtWebKit in cookie tests
2017-09-19 11:07:11 +02:00
Florian Bruhin
cfbe0f8cbc
Update dependencies in README
...
[ci skip]
2017-09-19 10:46:46 +02:00
Florian Bruhin
59236802c1
Update dependencies
...
Closes #2985
2017-09-19 10:41:57 +02:00
Florian Bruhin
55a4eb18f2
Get rid of httpbin
...
Fixes #2949
2017-09-19 10:35:54 +02:00
Florian Bruhin
40b26d7492
Always require QtOpenGL
...
It makes it a bit easier to explain things, and it makes the transition to
QtWebEngine smoother.
2017-09-19 08:16:26 +02:00
Florian Bruhin
97a7cee878
Update documentation for installing via tox
2017-09-19 07:57:49 +02:00
Florian Bruhin
e9b8288e4b
Add a test for Config._set_value without backend
2017-09-19 07:08:56 +02:00
Florian Bruhin
13a8867e13
Add tests for config.get_backend()
2017-09-19 07:05:36 +02:00
Florian Bruhin
7bece81519
Make sure tests always have object.backend set
2017-09-19 06:46:08 +02:00
Florian Bruhin
43ff79be0b
Merge branch 'drop-legacy'
2017-09-18 23:07:58 +02:00
Florian Bruhin
8ae87bbde2
Remove typing module from version.py
...
It comes with python now
2017-09-18 23:06:49 +02:00
Florian Bruhin
b1b6c462c1
Add a backend setting
...
See #2589
2017-09-18 23:02:08 +02:00
Florian Bruhin
61e183d9bb
Fix indent
2017-09-18 23:01:18 +02:00
Florian Bruhin
cd701e95fa
Reintroduce __hash__ for CertificateErrorWrapper
2017-09-18 23:01:18 +02:00
Florian Bruhin
5c0ebc1f94
Fix lint
2017-09-18 23:01:18 +02:00
Florian Bruhin
f10d334c90
Remove Python 3.5 block for Gentoo
2017-09-18 23:01:17 +02:00
Florian Bruhin
3772dc5930
Drop legacy QtWebKit support
...
See #2742
2017-09-18 23:01:17 +02:00
Florian Bruhin
3e70bf5af9
Make sure we never compare against an uninit'ed backend
2017-09-18 23:01:17 +02:00
Florian Bruhin
5298d14084
Move backend initialization to config.py
2017-09-18 23:01:17 +02:00
Florian Bruhin
01da144a03
Revert ipc.py socket opts handling
2017-09-18 23:01:17 +02:00
Florian Bruhin
a17c4767d6
Check libraries before Qt version
...
Importing qtutils for version_check needs pkg_resources, so we need to check
that's available earlier.
Also, import pkg_resources also shows warnings on older setuptools versions
because of invalid escapes, so we need to import it with warnings suppressed.
2017-09-18 23:01:17 +02:00
Florian Bruhin
db807a1bbc
Reintroduce downloadview workaround
...
This still seems to be an issue on AppVeyor
2017-09-18 23:01:17 +02:00
Florian Bruhin
cf07bfc5c5
Make sure the :set-cmd-text command is registered
2017-09-18 23:01:17 +02:00
Florian Bruhin
505321c336
Drop support for Python 3.4
...
See #2742
2017-09-18 23:01:17 +02:00
Florian Bruhin
852baaa8c3
Drop support for Qt < 5.7.1
...
See #2742
2017-09-18 23:01:17 +02:00
Florian Bruhin
2b4304908a
Drop Debian Jessie / Ubuntu Xenial from Travis
...
Closes #2780
2017-09-18 23:00:49 +02:00
Florian Bruhin
ee4d92364e
Fix off-by-one issue for odd/even tabs
2017-09-18 14:29:14 +02:00
Ian Walker
9867200c38
Change username/password prompt for proxyAuthenticationRequired
...
Update webview.py to more closely follow the webkit/networkmanager.py
on_proxy_authentication_required().
2017-09-18 15:55:44 +09:00
Florian Bruhin
8e2b2d113b
Improve explanations for dicts in the config
2017-09-18 06:25:39 +02:00
Ryan Farley
c6ea0f8372
Use dictionary for configuration mutable storage
...
Includes a test for persistence of intermediate mutations in a
configuration file (i.e. more than one update) and a switch of the
_mutable attribute in configurations to a dictionary of (old, new)
values rather than (name, old, new). get_obj() now checks for an
existing mutable value and returns a reference to that value, only
making an initial copy; this preserves changes between update_mutables()
2017-09-17 16:07:52 -05:00
Florian Bruhin
66e4c3286a
Fix lint
2017-09-17 22:53:32 +02:00
Florian Bruhin
f83696a670
Update changelog
2017-09-17 22:53:32 +02:00
Florian Bruhin
fe05947b54
Add a new qt_args setting
...
See #2589
2017-09-17 22:53:27 +02:00
Florian Bruhin
34042522f1
Set default hints font in pt and not px
2017-09-17 22:13:13 +02:00
Florian Bruhin
7b42e38dae
Fix more file move issues
2017-09-17 22:10:06 +02:00
Florian Bruhin
1959a76393
Update contributing docs
2017-09-17 22:06:56 +02:00
Florian Bruhin
2398a58526
Fix more file move issues
2017-09-17 21:54:42 +02:00
Florian Bruhin
b711d15617
Try to fix file moving issues
2017-09-17 21:49:49 +02:00
Florian Bruhin
73873c5bbd
Update changelog
2017-09-17 21:45:18 +02:00
Florian Bruhin
6191a81eff
Move qutebrowser.desktop to misc/
2017-09-17 21:40:35 +02:00
Florian Bruhin
609ed6d261
Make codecov.yml hidden
2017-09-17 21:40:35 +02:00
Florian Bruhin
4c616a5733
Move all documentation files to doc/
2017-09-17 21:27:38 +02:00
Florian Bruhin
3e0ca5d94d
Stop using objreg for state-config
2017-09-17 21:04:34 +02:00
Florian Bruhin
70b8585e95
Move qtutils.unset_organization to standarddir
2017-09-17 20:44:08 +02:00
Florian Bruhin
f40103cbba
Don't require qapp for configtypes tests anymore
...
We need to make sure they work without a QApplication, and the only reason they
needed one before was standarddir.
2017-09-17 20:38:34 +02:00
Ryan Farley
b35a808712
test multiple mutations for config
...
This detects the problem in #2979
2017-09-17 13:24:05 -05:00
Florian Bruhin
6f1b8bd1d9
Make sure the config is available before the QApplication
...
See #2589
2017-09-17 20:06:35 +02:00
Florian Bruhin
21a10fcb17
Break up long line
2017-09-17 16:33:37 +02:00
Florian Bruhin
e4d05e3fec
Log error information when config init fails
2017-09-17 14:13:36 +02:00
Florian Bruhin
884f73f349
Mention how c works in configuring docs
2017-09-17 12:35:29 +02:00
Florian Bruhin
62b30af12a
Fix unit tests for end2end SQL change
2017-09-17 11:49:42 +02:00
Florian Bruhin
36ca819cb3
Merge branch 'standarddir'
2017-09-17 11:19:26 +02:00
Florian Bruhin
975df02704
Improve configuring docs
...
Thanks Meline! :)
2017-09-17 11:17:59 +02:00
Florian Bruhin
f85f4630ff
Turn off SQL history writing during end2end tests
...
This hopefully makes them a bit faster, and also should help with weird hangs we
had in tests.
2017-09-17 10:58:30 +02:00
Florian Bruhin
f6d878f33f
Mark window.open test as flaky
2017-09-17 10:36:28 +02:00
Florian Bruhin
f29bafcdb2
Fix expected dir on macOS
2017-09-17 10:35:05 +02:00
Florian Bruhin
7ed64efa08
Fix standarddir.cache() on Windows
2017-09-17 10:35:05 +02:00
Florian Bruhin
d4709f7c44
Fix docs for bindings.default
2017-09-17 09:50:10 +02:00
Florian Bruhin
b31db0d0d5
Add another str() for paths
...
Using py.path for os.path is only supported since 3.6
2017-09-17 09:49:06 +02:00
Florian Bruhin
5aa653a54f
Fix IPC socket location test
...
We use fake_runtime_dir which simply patches XDG_RUNTIME_DIR for this test.
Since we patch QApplication.applicationName() during the tests, but standarddir
doesn't use that anymore, we get a different name.
2017-09-17 09:49:06 +02:00
Florian Bruhin
df9726a152
Fix standarddir without AppDataLocation
2017-09-17 09:49:06 +02:00
Lakshay Kalbhor
813a7b2c3a
Removed if statements
2017-09-17 10:56:53 +05:30
Lakshay Kalbhor
476ca6d42f
Added 'startswith()' to each OS
2017-09-17 10:27:21 +05:30
Florian Bruhin
9354297276
Add test for standarddir without QApplication
...
See #2791 .
2017-09-16 23:48:06 +02:00
Florian Bruhin
9706dcbda5
Fix lint
2017-09-16 23:48:02 +02:00
Florian Bruhin
a1fa40f067
Remove the ability to migrate old QtWebEngine data
...
Versions before v0.9.0 (which didn't even support hinting with QtWebEngine!)
used to write QtWebEngine data to:
~/.local/share/qutebrowser/qutebrowser/QtWebEngine/Default
~/.cache/qutebrowser/qutebrowser/QtWebEngine/Default
In v0.9.0 this was changed to:
~/.local/share/qutebrowser/webengine
~/.cache/qutebrowser/webengine
Now we don't try to migrate data from the old location anymore.
2017-09-16 23:48:02 +02:00
Florian Bruhin
a85e19a5e1
Add initial support for early standarddir init
...
See #2589 , #2791
2017-09-16 23:47:22 +02:00
Florian Bruhin
046a16f924
Bind <Ctrl-Shift-N> and <Ctrl-Shift-W> by default
...
See #2954
2017-09-16 22:22:36 +02:00
Florian Bruhin
7c11d3ecd9
Document new default values in configuring docs
2017-09-16 22:18:44 +02:00
Florian Bruhin
624c3a4c27
Merge branch 'new-config'
2017-09-16 16:12:21 +02:00
Florian Bruhin
1aa918bb86
Add configdata.yml to qutebrowser.spec for PyInstaller
2017-09-16 16:12:00 +02:00
Lakshay Kalbhor
c5ceb6b880
Added functions to check OS/Platform
2017-09-16 19:23:05 +05:30
Florian Bruhin
8420f03f18
Fix some issues with configuring.asciidoc
2017-09-16 15:22:53 +02:00
Florian Bruhin
0ae1f5909d
Strip the old text for configdiff
...
This means we don't report an unneeded whitespace hunk anymore.
2017-09-16 14:41:37 +02:00
Florian Bruhin
2afd7549bc
Encode Unicode in old config as escapes
...
This seems to fix #2971 .
2017-09-16 14:39:37 +02:00
Florian Bruhin
800464d311
Fix dict documentation in configuring.asciidoc
2017-09-16 14:20:48 +02:00
Florian Bruhin
714c18db0e
Fix \b escapes in old config file
2017-09-16 14:20:08 +02:00
Florian Bruhin
0aa85f5967
Skip SSL download test if SSL is not supported
...
This makes the testsuite pass entirely with a PyPI PyQt and OpenSSL 1.1
2017-09-16 10:43:59 +02:00
Florian Bruhin
3179e8c7b9
Always autoescape jinja environments unless overridden
...
We were only rendering .html files before, so the old _guess_autoescape function
had the effect of always autoescaping .render() (from a file) but never
autoescaping .from_string(). However, most places using .from_string() actually
render (Qt-)HTML via jinja, so they should escape stuff!
Now, we always autoescape, except when the caller uses the
jinja.environment.no_autoescape() context manager, which places rendering
stylesheets now do.
This impacted:
- Confirm quit texts (no HTML here)
- config.py loading errors
(where this was found because of an error containing - a <keybinding>)
- Certificate error prompts
(should be fine from what I can tell, as the only user-controllable output is
the hostname, which cannot contain HTML)
2017-09-16 10:43:59 +02:00
Florian Bruhin
337d57b940
Be more clever about missing qute://help pages
2017-09-16 10:43:59 +02:00
Ian Walker
eaa1bdcddb
Show error page when user cancels proxy authentication dialog
2017-09-16 17:13:16 +09:00
Ian Walker
9face7567c
Removed QAuthenticator import
2017-09-16 17:01:18 +09:00
Florian Bruhin
c8f3743008
Remove auto_save.config setting
...
This is not needed anymore now that we have config.load_autoconfig=False and
wasn't even read anywhere.
2017-09-15 22:22:09 +02:00
Florian Bruhin
1bcc66b5b9
Add documentation for new config
...
This also changes qute://help to show the documentation generation error if a
help page wasn't found. This way, people who pull from git but not re-generate
the documentation hopefully get the idea.
2017-09-15 22:22:09 +02:00
Florian Bruhin
4f6e085be8
Quote a completed value if it contains "
2017-09-15 22:17:38 +02:00
Florian Bruhin
a7d5a98cc4
Fix NUL byte error handling on Python 3.4
...
Looks like Python 3.4 raises TypeError and not ValueError...
2017-09-15 22:17:38 +02:00
Florian Bruhin
d901bee88e
Fix test_oserror on older Pythons
2017-09-15 22:17:38 +02:00
Florian Bruhin
543bc3bcaa
Fix default :open keybindings
...
:open -i (--implicit) is now -r (--related).
2017-09-15 22:17:38 +02:00
Florian Bruhin
42039eee99
Fully remove ConfigAPI.val
2017-09-15 19:01:03 +02:00
Florian Bruhin
3be7299cb4
Fix completions for FlagList
2017-09-15 18:41:08 +02:00
Florian Bruhin
54c417391d
Add a qute://configdiff page
2017-09-15 18:26:33 +02:00
Florian Bruhin
2e8419db27
Fix lint
2017-09-15 17:24:39 +02:00
Florian Bruhin
c9625cb311
Add more tests for YAML error handling
2017-09-15 17:21:11 +02:00
Florian Bruhin
3f8817cc2d
Use blocking message boxes for config errors
2017-09-15 17:21:11 +02:00
Florian Bruhin
745ef63451
Start implementing autoconfig.yml error handling
2017-09-15 17:21:11 +02:00
Florian Bruhin
a92ffd9770
Improve NoOptionError traceback
2017-09-15 17:21:11 +02:00
Florian Bruhin
413c7ec1ac
Add config type docstrings to settings.asciidoc
2017-09-15 17:21:11 +02:00
Florian Bruhin
d7d8d191c0
Remove FIXMEs
...
backend validation: I decided not to do this, as it is quite annoying when
switching between backends.
2017-09-15 17:20:58 +02:00
Florian Bruhin
3d3391b55e
Clean up *_tmpdir fixtures
2017-09-15 14:32:03 +02:00
Florian Bruhin
fa4ea912c9
Get rid of init_standarddir fixture
...
Instead, always patch in tmpdir's so we don't write to qute_test folders.
2017-09-15 14:30:46 +02:00
Florian Bruhin
e87a782411
Move command-history init to cmdhistory.py
2017-09-15 14:27:15 +02:00
Florian Bruhin
54214873f4
Resurrect :debug-cache-stats test
2017-09-15 14:16:42 +02:00
Florian Bruhin
54dfc083f9
Remove default_config fixture
2017-09-15 14:13:27 +02:00
Florian Bruhin
9f955f251a
Reshape comments
2017-09-15 14:11:45 +02:00
Florian Bruhin
ee5dd7fad2
Remove interpolation FIXME and DEFAULT_FONT_SIZE
...
This is just not going to happen, and with the new config we have no good way of
supporting a DEFAULT_FONT_SIZE.
2017-09-15 14:11:10 +02:00
Florian Bruhin
e0621c6eda
Fix initializing without a config.py
2017-09-15 14:08:37 +02:00
Florian Bruhin
7c39600508
Change default bindings for Up/Down in command mode
...
Those now look at the history again.
Looking at the behavior in different applications:
- vim: History
- spacemacs: Completion if open, else history
- luakit: Completion if open, else history
- dwb: Always completion (has no history?)
- vimb: Nothing if completion open, else history
- vimperator: Always history
So this is consistent with at least some of them - the much more important
factor is that <Tab> is probably intuitively easy to discover if up/down doesn't
do what's expected, but <ctrl-p>/<ctrl-n> are not.
2017-09-15 14:08:37 +02:00
Florian Bruhin
f406e8d9ca
Remove config.val support for config.py
2017-09-15 14:08:37 +02:00
Florian Bruhin
25baf3b97e
Add more tests for config.py error handling
2017-09-15 13:30:09 +02:00
Florian Bruhin
bb648b62f3
Make sure we honour config_api.load_autoconfig even with errors
...
We don't raise ConfigFileErrors inside read_config_py so we can get back the
config_api object. Instead we raise it in config.init().
2017-09-15 12:07:54 +02:00
Florian Bruhin
5efce10c2c
Add initial tests for config.py error handling
2017-09-15 12:07:54 +02:00
Florian Bruhin
4da9b8c495
check_coverage: Truncate long floats
2017-09-15 12:07:54 +02:00
Florian Bruhin
c5c566aadc
tests: Bump up timeout for CallbackChecker
2017-09-15 12:07:54 +02:00
Florian Bruhin
bbffda669a
Fix lint
2017-09-15 12:07:54 +02:00
Florian Bruhin
c031a7ab3d
Fix another Python 3.4 circular import
2017-09-15 12:07:54 +02:00
Florian Bruhin
b8fb88f4c2
Improve config error handling
...
- Errors are now combined if possible
- Rich text output in message boxes
- ConfigContainer errors are collected properly
2017-09-15 12:07:54 +02:00
Ian Walker
506ee571b1
Add handler for proxyAuthenticationRequired()
2017-09-15 08:36:59 +09:00
Florian Bruhin
490de32b49
Initial attempt at error handling for config.py
2017-09-14 21:51:29 +02:00
Florian Bruhin
5a11c96e56
Don't fail tests because of OpenSSL 1.1 warnings
...
"Downloading with SSL errors" from downloads.feature still fails, but like this,
at least all other tests pass without the need to modify LD_LIBRARY_PATH.
2017-09-14 18:23:40 +02:00
Florian Bruhin
b3734b151b
Handle mutations in config.py correctly
2017-09-14 17:38:33 +02:00
Florian Bruhin
cb806aefa3
Initial config.py support
...
See #2795
2017-09-14 17:38:33 +02:00
Florian Bruhin
ed6933a839
tests: Ignore "Invalid node channel message" log from Chromium
2017-09-14 16:15:07 +02:00
Florian Bruhin
0a3a1b756d
Mark confirm_quit test to only run on Windows
...
See #2964
2017-09-14 16:14:01 +02:00
Florian Bruhin
6618c3a6e8
Don't use shlex for configtypes.ShellCommand
...
We accidentally did show the command as a list in to_str(). However, after
correcting that to use shlex.escape, we got ugly qutebrowser command lines
when tabbing to the default value, because of how shlex handles double-escaping:
>>> print(shlex.quote("gvim -f '{}'"))
'gvim -f '"'"'{}'"'"''
While in this case, outputting "gvim -f '{}'" would be much more appropriate, it
doesn't look like we can teach shlex.quote to do that.
Instead, we now only accept a list as input for ShellCommand, at the price that
the user needs to do
:set editor.command '["gvim", "-f", "{}"]'
instead of
:set editor.command 'gvim -f {}'
Fixes #2962 .
2017-09-14 14:44:24 +02:00
Florian Bruhin
12260e068a
Don't move cache directory on Windows
2017-09-14 13:35:42 +02:00
Florian Bruhin
5cd14c941b
Fix race condition is :jseval test
2017-09-14 09:33:58 +02:00
Florian Bruhin
0de7b2eb83
Skip standarddir migrations when a basedir is given
2017-09-14 00:37:54 +02:00
Florian Bruhin
3dc67df180
Fix minor standarddir migration issues
2017-09-14 00:37:54 +02:00
Florian Bruhin
d1e69a75dd
tests: Ignore some more Mac Mini messages
2017-09-14 00:37:54 +02:00
Florian Bruhin
cee51df4fb
Refactor JS log handling and use a dict for javascript.log
...
Fixes #2828
2017-09-14 00:37:01 +02:00
Florian Bruhin
1fc9817cd4
Remove support for ambiguous keybindings
2017-09-14 00:37:01 +02:00
Florian Bruhin
bf9d401198
Reorder statusbar settings in configdata.yml
2017-09-13 21:32:36 +02:00
Florian Bruhin
13f49738d7
Fix typo in content.user_stylesheets
2017-09-13 21:32:36 +02:00
Florian Bruhin
8537e92d39
Add backend: QtWebKit for hints.find_implementation
2017-09-13 21:32:36 +02:00
Florian Bruhin
9d95dec5ea
Handle standarddir.config() correctly on macOS
...
With auto=False we should get ~/.qutebrowser
2017-09-13 21:32:36 +02:00
Florian Bruhin
08b5fc8e3b
Stabilize qute://plainlog test
...
Looks like we actually get a loading event on Qt 5.9 just fine, and there was a
race condition here otherwise.
2017-09-13 21:32:36 +02:00
Florian Bruhin
718dd21573
Handle auto-config location properly with --basedir
2017-09-13 21:32:36 +02:00
Florian Bruhin
70a9a7e5c8
Fix macOS testsuite issues
2017-09-13 21:32:36 +02:00
Florian Bruhin
231193f7a6
Fix standarddir test coverage
2017-09-13 21:32:36 +02:00
Florian Bruhin
2f394d3c9f
Mock out all moving functions for standarddir.init()
2017-09-13 21:32:36 +02:00
Florian Bruhin
50aab7a802
Skip tests needing AppDataLocation on older Qt versions
2017-09-13 21:32:22 +02:00
Florian Bruhin
f7d17c4c55
Allow existing empty dir when migrating files
...
Remove old empty directory if it exists - otherwise, we move old/data to
new/data/data.
2017-09-13 21:32:22 +02:00
Florian Bruhin
0498e042a0
Ignore another macOS log line
2017-09-13 21:32:22 +02:00
Florian Bruhin
e84c1fa82f
Call _init_config in test_fake_mac_auto_config
2017-09-13 21:32:22 +02:00
Florian Bruhin
2a9441dfbf
Make moving data in standarddir more generic
2017-09-13 21:32:22 +02:00
Florian Bruhin
8c4bc76de6
Stabilize hint test which failed on macOS
2017-09-13 17:26:56 +02:00
Florian Bruhin
ad2598b475
Add initial support for standarddir.config(auto=True)
...
This doesn't actually migrate things yet.
See #2791 , #383 .
2017-09-13 17:26:56 +02:00
Florian Bruhin
a2f16dbecd
Merge standarddir.system_data() into standarddir.data(system=True)
...
See #2791
2017-09-13 17:26:56 +02:00
Florian Bruhin
2d500d4efa
Also don't create ~/Downloads in standarddir.downloads()
...
This means we need to create it in downloads.py instead.
Fixes #2418
2017-09-13 17:26:56 +02:00
Florian Bruhin
91f5e72f02
Remove download dir from path info
...
This always returns the default Qt path (e.g. ~/Downloads) and also creates it
each time.
See #2418
2017-09-13 17:26:56 +02:00
Florian Bruhin
a1f91f799f
Add completion.util to PERFECT_FILES
2017-09-13 17:26:56 +02:00
Florian Bruhin
1fe1cd45f5
Remove dead code
...
This code is not called/needed anymore with the changes done in the new-config
branch.
2017-09-13 17:26:56 +02:00
Florian Bruhin
b185e57406
Remove change_qapp_name in test_standarddir
...
This is already done in conftest.py anyways
2017-09-13 17:26:56 +02:00
Florian Bruhin
56bbd73622
Introduce standarddir caching
...
This makes things a bit more complicated, but is needed to make standarddir (and
thus the config) work without a QApplication.
2017-09-13 17:26:56 +02:00
Florian Bruhin
56b673ca05
tests: Don't use <Ctrl+Backspace> to clear qute://settings fields
...
This won't work on macOS
2017-09-13 10:29:54 +02:00
Florian Bruhin
5d50ec612d
Disable qsettings subdir test on macOS
...
QSettings uses a plist file there.
2017-09-13 10:21:23 +02:00
Florian Bruhin
40882c4ce2
Fix python version for -cov envs
2017-09-13 00:53:33 +02:00
Florian Bruhin
73ea316501
Use upper-case Monospace in test_progress_affecting_statusbar_height
...
While the test worked again with eb4691adfc , it
broke again immediately because of 40ee89bddc .
With that fix in, the lower-case monospace in the set value was immediately
replaced by the full list of fonts again. With an upper-case Monospace, this
won't happen.
Fixes #2825 , for real this time.
2017-09-12 22:51:52 +02:00
Florian Bruhin
b04a233e8d
Adjust :unbind signature to match :bind
2017-09-12 22:51:52 +02:00
Florian Bruhin
f70c5968a9
Improve documentation for command modes
2017-09-12 22:12:37 +02:00
Florian Bruhin
07079664a6
Don't use alias in default binding
...
See #2957
2017-09-12 22:12:37 +02:00
Florian Bruhin
eb4691adfc
Fix test_progress_affecting_statusbar_height on Windows
...
Fixes #2825
2017-09-12 22:12:37 +02:00
Florian Bruhin
40ee89bddc
Initialize monospace fonts in tests properly
...
See #2825
2017-09-12 22:12:37 +02:00
Florian Bruhin
a60e932454
Remove :wq from docs
2017-09-12 22:12:37 +02:00
Florian Bruhin
bcb486379a
Fix python version for -cov envs
2017-09-11 22:43:45 +02:00
Florian Bruhin
fe8ffcc5c3
Quote default xos4 Terminus font properly
2017-09-11 21:50:35 +02:00
Florian Bruhin
9bcd120dcc
Only mark completion issue as flaky
2017-09-11 19:33:27 +02:00
Florian Bruhin
a4e215cee4
AppVeyor: Use PyQt 5.9
2017-09-11 19:09:49 +02:00
Florian Bruhin
f6a0500bd3
Merge branch 'master' into new-config
...
This pulls the travis changes to drop the old Qt 5.2 environment.
2017-09-11 18:39:41 +02:00
Florian Bruhin
9b8c21cace
travis: Stop marking macOS as allowed to fail
2017-09-11 18:33:08 +02:00
Florian Bruhin
a65d70820a
Add macOS xfail for session completion test
...
See #2956
2017-09-11 18:33:08 +02:00
Florian Bruhin
50d43b0678
Fix some macOS testsuite issues
2017-09-11 18:33:08 +02:00
Florian Bruhin
2538fec0c5
Ignore Mach IPC message
2017-09-11 18:33:08 +02:00
Florian Bruhin
c62e748b7b
travis: Use Python 3 pip
2017-09-11 18:33:08 +02:00
Florian Bruhin
4794d1970b
travis: Update macOS
2017-09-11 18:33:07 +02:00
Florian Bruhin
f320da07b4
Increase timeout for test_version
2017-09-11 18:33:07 +02:00
Florian Bruhin
836c8de87d
travis: Use Python 3.6 everywhere
2017-09-11 18:32:23 +02:00
Florian Bruhin
37464c8e3a
travis: Re-add installing eslint to travis_install
2017-09-11 18:32:23 +02:00
Florian Bruhin
9e10f891ff
Print output earlier in test_version
2017-09-11 18:32:23 +02:00
Florian Bruhin
9a8088586f
tests: Ignore dbus-uuidgen error messages
2017-09-11 18:32:23 +02:00
Florian Bruhin
816369f0ef
travis: Clean up Travis scripts
2017-09-11 18:32:23 +02:00
Florian Bruhin
e6864b6599
travis: Run eslint without tox on Travis
2017-09-11 18:32:23 +02:00
Florian Bruhin
1491f20201
Remove geolocation tests
...
They just cause more trouble than they're worth.
2017-09-11 18:32:23 +02:00
Florian Bruhin
a11baeb84d
travis: Fix some more issues
2017-09-11 18:32:23 +02:00
Florian Bruhin
b4f30f6df2
Move coverage to QtWebEngine environment with PyPI-PyQt
2017-09-11 18:30:23 +02:00
Florian Bruhin
49a389542e
travis: Update travis_install.sh
2017-09-11 18:30:23 +02:00
Florian Bruhin
eae276b539
travis: Initial .travis.yml update for containers
2017-09-11 18:30:21 +02:00
Florian Bruhin
1d66aacb36
Remove old :wq handler
2017-09-09 11:05:15 +02:00
Florian Bruhin
a283a1bb65
Merge branch 'master' into new-config
2017-09-09 10:52:02 +02:00
Florian Bruhin
2117824cf9
Merge pull request #2914 from rcorre/configmerge
...
Merge master into new-config
2017-09-09 10:52:17 +02:00
Ryan Roden-Corrent
a8b0a42791
Remove extra blank line from utilcmds
2017-09-08 08:00:29 -04:00
Florian Bruhin
8fce08a927
Merge pull request #2950 from instinctive/patch-1
...
Use python3-qt5-webengine for Fedora
2017-09-08 11:16:00 +02:00
instinctive
adb552ee6e
Use python3-qt5-webengine for Fedora
...
This was the incantation that worked for me on Fedora 26.
2017-09-07 14:29:45 -07:00
Ryan Roden-Corrent
deb6cccff9
Fix merge resolution in messageview.
...
Remove a line that was acidentally re-added while merging master into
new-config.
2017-09-07 12:08:26 -04:00
Ryan Roden-Corrent
a6d14ad7dc
Fix two new-config/master merge resolutions.
...
Remove icon from jinja.render call (removed in master).
Add 'When the unwritable dir is unwritable' to download feature file.
2017-09-07 08:58:55 -04:00
Ryan Roden-Corrent
607c64742c
Fix configmodel nitpicks
2017-09-07 08:56:11 -04:00
Ryan Roden-Corrent
f0509d1c26
Fix web_history_max_items default value.
...
Should default to -1, not 1000 as the new history completion is better
able to handle large numbers of entries. I believe this was acidentally
reset to 1000 while fixing a merge conflict.
Also re-run src2asciidoc.
2017-09-07 08:45:05 -04:00
Ryan Roden-Corrent
6e0f65c063
Remove duplicate line from pytest.ini.
2017-09-07 07:34:26 -04:00
Ryan Roden-Corrent
aec736439c
Restore history cache stats.
...
Acidentally removed in merge.
2017-09-07 07:32:51 -04:00
Ryan Roden-Corrent
63e0574411
Remove stray FIXME:conf
2017-09-07 07:32:46 -04:00
Florian Bruhin
7f30fe377c
Update CONTRIBUTING for new completion
2017-09-07 13:01:21 +02:00
Ryan Roden-Corrent
a5ecb75fcd
Really avoid flakiness in test_models.
...
Ensure the OrderedDict is actually ordered consistently.
2017-09-05 07:52:42 -04:00
Ryan Roden-Corrent
3726502017
Fix bad merge from master to newconfig.
2017-09-05 07:44:36 -04:00
Ryan Roden-Corrent
fc02216754
Avoid flakiness in test_models.
...
Ensure config values are ordered consistently by using an OrderedDict.
2017-09-04 16:30:54 -04:00
Ryan Roden-Corrent
0d78c72018
Remove config dependency from get_cmd_completions.
...
In order to really resolve the python3.4 circular import, this should
take the completion info as an argument and not depend on the config
module.
2017-09-04 15:00:35 -04:00
Ryan Roden-Corrent
3bfa01f0d0
Pass CompletionInfo to completion functions.
...
In python3.4, there is a circular dependency between the config module
and configmodel.bind. This is resolved by dependency injection. The
config/keyconfig instances are embedded in a struct passed to every
completion function, so the functions no longer depend on the modules.
This will also enable completion functions to access other previously
inaccessible info, such as the window id.
See #2814 .
2017-09-04 14:01:48 -04:00
Florian Bruhin
1938520878
eslint: Turn off function-paren-newline
2017-09-04 15:48:33 +02:00
Florian Bruhin
ee147bb327
Merge pull request #2942 from kepi/fix/pfill_visible_input
...
password_fill: Stop filling username to invisible input fields
2017-09-04 15:34:27 +02:00
Florian Bruhin
2598fd8c5d
Add a note about Gentoo and bindist to INSTALL
...
Closes #2944
2017-09-04 15:03:04 +02:00
Kepi
69ea2cf327
password_fill: Stop filling username to invisible input fields
...
There is no reason to fill usernames into invisible input fields. We are
probably not leaking anything but it can break some apps (like TTRSS).
2017-09-01 15:48:02 +02:00
Ryan Roden-Corrent
6a292f9d56
Merge quteurls.feature into qutescheme.feature.
2017-08-28 07:18:14 -04:00
Florian Bruhin
79d3c49f26
Merge pull request #2909 from jgkamat/jay/fix-2900
...
Fix saving a session with --only-active-window
2017-08-28 07:58:25 +02:00
Florian Bruhin
25780eb2bc
Merge pull request #2905 from rcorre/urlencode
...
Consistently format urls in history.
2017-08-28 07:56:45 +02:00
Florian Bruhin
6b795e0093
Merge pull request #2923 from gilbertw1/feature-add-format-json
...
implemented format_json userscript
2017-08-28 07:41:46 +02:00
Ryan Roden-Corrent
61a03a7808
Add quteurls.feature
...
Move Scenario: Open qute://version from misc.feature to quteurls.feature
See #2779 .
2017-08-27 22:37:04 -04:00
Ryan Roden-Corrent
37ba256900
Ensure web-history-max-items has int64 as maxval.
...
See #2779 .
2017-08-27 22:29:01 -04:00
Ryan Roden-Corrent
d2d55531e6
Remove double-registration of proxy factory.
...
Due to a bad merge, proxy.init() was called twice.
2017-08-27 22:27:34 -04:00
Bryan Gilbert
536c28a952
implemented format_json userscript
2017-08-27 21:37:58 -04:00
Florian Bruhin
8e92848356
Switch pyup to Mondays
2017-08-24 05:50:33 +02:00
Florian Bruhin
187facd5c7
Merge pull request #2915 from qutebrowser/pyup-scheduled-update-08-21-2017
...
Scheduled weekly dependency update for week 34
2017-08-24 05:51:37 +02:00
Ryan Roden-Corrent
b89caf0458
Use REPLACE when rebuilding completion table.
...
When upgrading from an old table that used different url formatting, two
entries might map to the same key, so we'll need to replace the previous
entry to avoid a primary key conflict.
2017-08-23 21:26:27 -04:00
Florian Bruhin
074cc1b723
Another one
2017-08-23 09:37:51 +02:00
Florian Bruhin
df909ca75b
Fix sorting for vulture
2017-08-23 08:33:50 +02:00
Florian Bruhin
f1fc078dc1
Remove vulture exclude
...
Looks like it was removed in
d35e73deda ,
and passing [] seems to be equal to the default nowadays anyways.
2017-08-22 08:08:28 +02:00
pyup-bot
8a0b7b9441
Update vulture from 0.24 to 0.25
2017-08-21 16:24:38 +02:00
pyup-bot
7f2e8d8147
Update vulture from 0.24 to 0.25
2017-08-21 16:24:36 +02:00
pyup-bot
6c83016657
Update pytest-rerunfailures from 2.2 to 3.0
2017-08-21 16:24:34 +02:00
pyup-bot
67e3de06c7
Update hypothesis from 3.18.0 to 3.19.1
2017-08-21 16:24:32 +02:00
pyup-bot
86a9487fb2
Update glob2 from 0.5 to 0.6
2017-08-21 16:24:29 +02:00
pyup-bot
dc61e8ecdf
Update requests from 2.18.3 to 2.18.4
2017-08-21 16:24:27 +02:00
pyup-bot
8151a73d64
Update requests from 2.18.3 to 2.18.4
2017-08-21 16:24:25 +02:00
pyup-bot
0313982ac8
Update requests from 2.18.3 to 2.18.4
2017-08-21 16:24:23 +02:00
Ryan Roden-Corrent
d35b47c9d8
Regenerate history completion on version change.
...
Incrementing _USER_VERSION in the source will cause the
HistoryCompletion table to regenerate when users update.
This is currently necessary to support some recent formatting fixes, but
could be incremented again in the future for other changes.
2017-08-21 08:45:40 -04:00
Ryan Roden-Corrent
111846a909
Merge remote-tracking branch 'upstream/master' into configmerge
2017-08-20 21:18:47 -04:00
Ryan Roden-Corrent
722137ab29
Fix 2 end2end tests for config/completion merge.
2017-08-20 21:15:25 -04:00
Ryan Roden-Corrent
b5a6583559
Fix pylint/flake8/vulture errors.
2017-08-20 21:12:38 -04:00
Ryan Roden-Corrent
90c49b3fe7
Move bind completion to configmodels.
...
When in miscmodels, the config module was unable to find the function.
It appears to be some sort of circular import issue:
```
File "/home/rcorre/projects/contrib/qutebrowser/qutebrowser/app.py", line 44, in <module>
from qutebrowser.completion.models import miscmodels
File "/home/rcorre/projects/contrib/qutebrowser/qutebrowser/completion/models/miscmodels.py", line 24, in <module>
from qutebrowser.completion.models import completionmodel, listcategory, util
File "/home/rcorre/projects/contrib/qutebrowser/qutebrowser/completion/models/util.py", line 24, in <module>
from qutebrowser.config import config
File "/home/rcorre/projects/contrib/qutebrowser/qutebrowser/config/config.py", line 223, in <module>
class ConfigCommands:
File "/home/rcorre/projects/contrib/qutebrowser/qutebrowser/config/config.py", line 314, in ConfigCommands
@cmdutils.argument('command', completion=miscmodels.bind)
AttributeError: module 'qutebrowser.completion.models.miscmodels' has no attribute 'bind'
```
As configmodel imports util (and thereby config as well) it is unclear
to me why moving bind() to configmodel actually fixes this, but it does.
2017-08-20 21:12:38 -04:00
Ryan Roden-Corrent
0286e9ddf2
Fix completion tests after config merge.
2017-08-20 21:12:38 -04:00
Ryan Roden-Corrent
5f45b9b40e
Fix pylint and coverage for history.
2017-08-20 20:59:48 -04:00
Ryan Roden-Corrent
8c6133e29d
Regenerate history completion table if needed.
...
If the HistoryCompletion table is removed, regenerate it from the
History table. This allows users to manually edit History, then remove
HistoryCompletion to prompt regeneration.
See #2903 .
2017-08-18 07:39:36 -04:00
Jay Kamat
7073c33dce
Test for saving a session with --only-active-window
2017-08-17 22:27:40 -04:00
Ryan Roden-Corrent
c607537319
Consistently format urls in history.
...
Encode urls that are inserted into the history, but do not encode urls
for completion (other than removing passwords).
Also ensure that urls read from the history text file are formatted
consistenly with those added while browsing.
Fixes #2903 .
2017-08-14 21:37:43 -04:00
Florian Bruhin
173688c748
Merge pull request #2904 from qutebrowser/pyup-scheduled-update-08-14-2017
...
Scheduled weekly dependency update for week 33
2017-08-14 22:11:12 +02:00
pyup-bot
7b1f3e36de
Update vulture from 0.22 to 0.24
2017-08-14 16:19:24 +02:00
pyup-bot
bda5ac9bbf
Update vulture from 0.22 to 0.24
2017-08-14 16:19:22 +02:00
pyup-bot
1581a68082
Update pytest from 3.2.0 to 3.2.1
2017-08-14 16:19:21 +02:00
pyup-bot
d0d27e7fb1
Update hypothesis from 3.16.1 to 3.18.0
2017-08-14 16:19:20 +02:00
pyup-bot
4f49e58d52
Update cheroot from 5.8.2 to 5.8.3
2017-08-14 16:19:18 +02:00
pyup-bot
29cc8ed272
Update wrapt from 1.10.10 to 1.10.11
2017-08-14 16:19:17 +02:00
pyup-bot
c00d35ea73
Update wrapt from 1.10.10 to 1.10.11
2017-08-14 16:19:16 +02:00
pyup-bot
f5ee01ab6a
Update idna from 2.5 to 2.6
2017-08-14 16:19:14 +02:00
pyup-bot
5ebbe80cfe
Update idna from 2.5 to 2.6
2017-08-14 16:19:13 +02:00
pyup-bot
843f14042b
Update idna from 2.5 to 2.6
2017-08-14 16:19:11 +02:00
cryzed
085d1e9c10
:save-session --only-active-window implies --with-private for private windows
2017-08-14 00:30:45 +02:00
Florian Bruhin
1941071f87
Merge pull request #2901 from lachs0r/master
...
INSTALL: update openSUSE install instructions
2017-08-13 20:06:36 +02:00
Martin Herkt
dd8b5fc638
INSTALL: update openSUSE install instructions
2017-08-13 19:56:17 +02:00
Florian Bruhin
2957c4e55f
Merge pull request #2899 from cryzed/jseval-expand-tilde
...
Expand ~ to user's home on Linux
2017-08-13 08:53:14 +02:00
cryzed
6ef53c814c
Expand ~ to user's home on Linux
2017-08-13 02:34:50 +02:00
Florian Bruhin
ba04822388
Use develop branch of PyInstaller
...
https://github.com/pyinstaller/pyinstaller/pull/2519 was merged.
Fixes #2880
2017-08-10 17:24:41 +02:00
Ryan Roden-Corrent
5ea420b49b
Fix startup crashes after config merge.
...
Get qutebrowser to the point where it can at least start
- Declare _messages earlier in MessageView.__init__ so it is set before
the config trigger tries to access it.
- Remove unused configmodel completion functions
- Move bind completion to configmodel to avoid a circular import with
the config module
- Fix some config accesses (forgot to use .val)
- Fix old Completion.CompletionKind references
2017-08-09 07:28:22 -04:00
Florian Bruhin
3a2d64ba46
version.distribution(): Handle Funtoo
2017-08-08 20:19:33 +02:00
Florian Bruhin
5f4ecd7efc
Merge pull request #2892 from qutebrowser/pyup-scheduled-update-08-07-2017
...
Scheduled weekly dependency update for week 32
2017-08-08 07:59:27 +02:00
Florian Bruhin
a20f017c7a
Sort sessions in SessionMnager.list_sessions()
2017-08-08 07:56:10 +02:00
Florian Bruhin
b7a296c81f
Merge branch 'tabsort' of https://github.com/rcorre/qutebrowser
2017-08-08 07:53:22 +02:00
Florian Bruhin
81b260998d
Ignore a new Geoclue error during tests
2017-08-08 06:25:50 +02:00
pyup-bot
3179599c31
Update vulture from 0.21 to 0.22
2017-08-07 16:16:30 +02:00
pyup-bot
9da802eadf
Update vulture from 0.21 to 0.22
2017-08-07 16:16:28 +02:00
pyup-bot
e47e22ba28
Update pytest from 3.1.3 to 3.2.0
2017-08-07 16:16:27 +02:00
pyup-bot
d77ecc8218
Update hypothesis from 3.14.0 to 3.16.1
2017-08-07 16:16:25 +02:00
pyup-bot
af5872bc83
Update cheroot from 5.7.0 to 5.8.2
2017-08-07 16:16:24 +02:00
pyup-bot
fbb2a175ff
Update docutils from 0.13.1 to 0.14
2017-08-07 16:16:22 +02:00
pyup-bot
6dbae7fe64
Update setuptools from 36.2.5 to 36.2.7
2017-08-07 16:16:21 +02:00
pyup-bot
111390db0f
Update pyflakes from 1.5.0 to 1.6.0
2017-08-07 16:16:19 +02:00
pyup-bot
d288325f64
Update requests from 2.18.2 to 2.18.3
2017-08-07 16:16:18 +02:00
pyup-bot
c0f6588339
Update requests from 2.18.2 to 2.18.3
2017-08-07 16:16:16 +02:00
pyup-bot
e844962645
Update requests from 2.18.2 to 2.18.3
2017-08-07 16:16:15 +02:00
Ryan Roden-Corrent
71b71dbc58
Merge remote-tracking branch 'upstream/master' into HEAD
2017-08-06 18:13:49 -04:00
Ryan Roden-Corrent
6e025c1bb0
Don't perform alphabetical sort in listcategory.
...
Instead, expect the data to be given in the desired order. Completion
functions should sort their data _if_ they want it sorted in the
completion. This has a few implications:
- {book,quick}marks appear in the same order they do in the text file.
This means users can rearrange their mark files for custom sorting.
Fixes #2354
- Sessions are sorted as they appear in the session manager
- Tabs are sorted numerically, not alphabetically (Fixes #2883 )
Note that prefix-based filter sorting is still performed, so items
starting with the filter pattern come first.
2017-08-06 10:00:18 -04:00
Florian Bruhin
49b858e359
Add more variants of fake apple URL to ignored ones
2017-08-01 16:00:53 +02:00
Penaz91
6b99ad95d3
Proposed patch for #2858
2017-07-31 21:10:09 +02:00
Penaz
0611dc0cb4
Merge pull request #2 from qutebrowser/master
...
More Updates
2017-07-31 20:45:12 +02:00
Florian Bruhin
edc0512102
Merge pull request #2878 from qutebrowser/pyup-scheduled-update-07-31-2017
...
Scheduled weekly dependency update for week 31
2017-07-31 17:48:08 +02:00
Florian Bruhin
a329ce41b5
Update vulture whitelist
2017-07-31 16:41:43 +02:00
Florian Bruhin
bcba14a029
Adjust run_vulture.py for new vulture version
2017-07-31 16:35:12 +02:00
pyup-bot
dd25205623
Update vulture from 0.19 to 0.21
2017-07-31 16:07:25 +02:00
pyup-bot
931d9cc372
Update vulture from 0.19 to 0.21
2017-07-31 16:07:24 +02:00
pyup-bot
240feaf547
Update pytest-benchmark from 3.1.0 to 3.1.1
2017-07-31 16:07:23 +02:00
pyup-bot
e4db036382
Update setuptools from 36.2.1 to 36.2.5
2017-07-31 16:07:21 +02:00
pyup-bot
2e4704aaa7
Update flake8-deprecated from 1.2 to 1.2.1
2017-07-31 16:07:20 +02:00
pyup-bot
92a520fa8c
Update requests from 2.18.1 to 2.18.2
2017-07-31 16:07:18 +02:00
pyup-bot
633026e8b3
Update requests from 2.18.1 to 2.18.2
2017-07-31 16:07:17 +02:00
pyup-bot
67f3396ced
Update requests from 2.18.1 to 2.18.2
2017-07-31 16:07:15 +02:00
pyup-bot
28c62a7f03
Update certifi from 2017.4.17 to 2017.7.27.1
2017-07-31 16:07:14 +02:00
pyup-bot
26b47bcb6e
Update certifi from 2017.4.17 to 2017.7.27.1
2017-07-31 16:07:13 +02:00
pyup-bot
57bf36156b
Update certifi from 2017.4.17 to 2017.7.27.1
2017-07-31 16:07:11 +02:00
Florian Bruhin
695769d1b4
Merge pull request #2875 from rcorre/obsolete-signals
...
Remove obsolete signals.
2017-07-29 20:30:25 +02:00
Florian Bruhin
ba92ea9fb4
Merge pull request #2873 from rcorre/completion-del-marks
...
Support delete from :{quick,book}mark-load.
2017-07-29 19:27:25 +02:00
Ryan Roden-Corrent
8e34b54cd7
Remove obsolete signals.
...
The added/removed signals for the urlmark managers are no longer used as
the completion models are generated on-the-fly. The changed signal is
still needed so the save-manager knows when to trigger a write to disk.
Also removes session_manager.update_completion, which is no longer
needed for the same reason as above.
keyconf.changed cannot be removed, as it is still wired up to
basekeyparser.
Resolves #2874 .
2017-07-29 13:09:10 -04:00
Ryan Roden-Corrent
1ab7bb83cc
Support delete from :{quick,book}mark-load.
...
Pressing ctrl-d in the completion menu for
:quickmark-load/:bookmark-load will now delete the selected
quickmark/bookmark.
Resolves #2840 .
2017-07-29 12:49:20 -04:00
Florian Bruhin
cee82a3c7b
Merge pull request #2871 from rcorre/fix-fetch-delete
...
Fix fetch/delete sql category bug.
2017-07-28 16:17:11 +02:00
Ryan Roden-Corrent
c6cb6ccd07
Fix fetch/delete sql category bug.
...
Fixes #2868 , where pressing <shift-tab> then <ctrl-d> in history
completion (with > 256 items) would cause later items to disappear (and
cause a crash if you try to delete again).
Cause:
Scrolling to the bottom would fetch an additional 256 items (in addition
to the 256 that are fetched at first). Deleting causes the query to
re-run, but it only fetches the initial 256 items, so the current index
is now invalid.
Fix:
After deleting from the history category, call fetchMore until it has
enough rows populated that the current index is valid.
2017-07-28 09:07:30 -04:00
Florian Bruhin
8f63bb1edc
Merge pull request #2853 from rcorre/fix-completionview
...
Expand history completion results if on last index.
2017-07-27 12:31:01 +02:00
Florian Bruhin
2b07b3db2b
Update 'not code' label in CONTRIBUTING
2017-07-27 12:18:59 +02:00
Florian Bruhin
629f6a6876
Remove unused import
2017-07-27 09:56:34 +02:00
Florian Bruhin
e4f776448e
Fix typo
2017-07-27 09:25:33 +02:00
Florian Bruhin
a942613d7f
Use ctypes instead of PyOpenGL for QtWebEngine Nvidia workaround
...
Fixes #2821
2017-07-27 09:22:12 +02:00
Ryan Roden-Corrent
32fa1ff1e9
Expand history completion results if on last index.
...
When tabbing to the last index of history completion, call expandAll
which will call fetchMore to retrieve more query results, if available.
Calling fetchMore directly will not update the view, and for some
reason self.expand(idx.parent()) and
self.expand(self.model().index(idx.row(), 0)) did not work, so I'm using
expandAll.
Fixes #2841 .
2017-07-26 07:46:12 -04:00
Florian Bruhin
210bc0fd6b
Merge pull request #2861 from rcorre/bind-completion-fix
...
Fix bind completion for bindings with arguments.
2017-07-26 07:40:08 +02:00
Ryan Roden-Corrent
1929883485
Fix bind completion for bindings with arguments.
...
When a key is bound to a command line that includes one or more
arguments to a command, bind completion should show the whole command
for the "Current" category, and use only the command name to look up the
description.
Fixes #2859 , where a crash was caused by looking up the description by
the full command text rather than just the name.
2017-07-25 12:55:44 -04:00
Florian Bruhin
79e7eb6495
pytest: Show Median instead of Mean for benchmarks
2017-07-25 17:37:18 +02:00
Florian Bruhin
5ecda25fdb
Fix renderer process test for older Qt versions
2017-07-25 17:35:42 +02:00
Florian Bruhin
792a01ba6d
Try to stabilize renderer process test
2017-07-25 16:56:38 +02:00
Florian Bruhin
3de0b15073
Delay showing the "renderer process killed" error page a bit
...
Sometimes, we get another error with "Renderer process was killed" and the data:
URL for the error page. This is probably because the renderer process wasn't
restarted yet. This hopefully helps.
2017-07-25 16:00:52 +02:00
Florian Bruhin
79c088d3a4
pytest.ini: Add benchmark-columns
2017-07-24 16:52:36 +02:00
Florian Bruhin
cb2dbc1e0a
Merge pull request #2857 from qutebrowser/pyup-scheduled-update-07-24-2017
...
Scheduled weekly dependency update for week 30
2017-07-24 16:52:43 +02:00
pyup-bot
05dba38190
Update vulture from 0.16 to 0.19
2017-07-24 16:04:24 +02:00
pyup-bot
c4d7cc79b5
Update vulture from 0.16 to 0.19
2017-07-24 16:04:22 +02:00
pyup-bot
38664f9a0a
Update pytest-mock from 1.6.0 to 1.6.2
2017-07-24 16:04:21 +02:00
pyup-bot
734acd628e
Update pytest-benchmark from 3.0.0 to 3.1.0
2017-07-24 16:04:20 +02:00
pyup-bot
b70f56e87f
Update hypothesis from 3.13.0 to 3.14.0
2017-07-24 16:04:18 +02:00
pyup-bot
f8312e9502
Update decorator from 4.1.1 to 4.1.2
2017-07-24 16:04:17 +02:00
pyup-bot
96ed6668e5
Update setuptools from 36.2.0 to 36.2.1
2017-07-24 16:04:15 +02:00
pyup-bot
c49e5f84d9
Update urllib3 from 1.21.1 to 1.22
2017-07-24 16:04:14 +02:00
pyup-bot
920fae02c1
Update urllib3 from 1.21.1 to 1.22
2017-07-24 16:04:13 +02:00
pyup-bot
c1b8830831
Update urllib3 from 1.21.1 to 1.22
2017-07-24 16:04:11 +02:00
Florian Bruhin
137eec8745
Merge pull request #2856 from rcorre/completion-fixes
...
Abort resizeEvent if model is None.
2017-07-24 15:05:14 +02:00
Ryan Roden-Corrent
f09423efe5
Abort resizeEvent if model is None.
...
Some reports came in that a resizeEvent was causing a crash due to the
model being none in the CompletionView.
Fixes #2854 .
2017-07-24 08:16:14 -04:00
Florian Bruhin
b7fe13434b
Merge pull request #2855 from Penaz91/master
...
Troubleshooting for GCC 6 QtWebEngine Render Crash
2017-07-24 11:09:38 +02:00
Penaz
99559b24e3
Update FAQ.asciidoc
2017-07-24 10:58:45 +02:00
Penaz
cd27363126
Merge pull request #1 from qutebrowser/master
...
Update Fork
2017-07-24 10:39:08 +02:00
Florian Bruhin
07b2fde2de
Mark test_version as flaky
...
Sometimes it fails on Travis with empty output for no apparent reason
2017-07-24 08:05:51 +02:00
Florian Bruhin
df3ba278e9
Merge pull request #2852 from rcorre/fix-max-items
...
Fix web-history-max-items-crash.
2017-07-24 07:29:15 +02:00
Florian Bruhin
837ee5c626
Merge pull request #2846 from rcorre/completion-fixes
...
Completion fixes
2017-07-24 07:27:11 +02:00
Ryan Roden-Corrent
2ad4cdd729
Fix web-history-max-items-crash.
...
Fixes #2849 , where pressing 'o' with web-history-max-items set and no
history items would cause a crash as the query result is empty.
2017-07-23 21:17:22 -04:00
Ryan Roden-Corrent
ff9efe22ae
Fix unused imports and removeRow override.
...
Override removeRows instead of removeRow.
> removeRow is not virtual in C++, so if this gets called by Qt
> internally for some reason, it wouldn't use the overloaded version -
> so I think it'd be better to implement removeRows and then use
> removeRow without overloading that
- The-Compiler
2017-07-23 17:30:09 -04:00
Florian Bruhin
630e9ebd66
Remove old notes file
2017-07-23 23:15:41 +02:00
Florian Bruhin
e402e37f12
Work around segfault when using pdb
2017-07-23 22:45:13 +02:00
Florian Bruhin
56b4989f44
Fix tests for QProcess changes
2017-07-23 22:10:50 +02:00
Florian Bruhin
7d10e47046
Update changelog
2017-07-23 21:38:10 +02:00
Florian Bruhin
a08fd0fcb1
Fix error message with :spawn -d
2017-07-23 21:38:10 +02:00
Florian Bruhin
353f86488a
Disallow :spawn -u -d
2017-07-23 21:38:10 +02:00
Ryan Roden-Corrent
00be9e3c7f
Remove obsolete TODO.
...
New aliases will now show up without a signal, as completions are
generated on-demand.
2017-07-22 18:09:10 -04:00
Ryan Roden-Corrent
b61691684e
Clear selection when setting completion pattern.
...
It doesn't make sense to have an active selection while you are
filtering by entering text. You should be in one of two states:
1. Tabbing through completions (valid selection)
2. Entering a filter pattern (invalid selection)
Fixes #2843 , where a crash would occur after the following:
1. tab to an item other than the first
2. <backspace>
3. re-type last character
4. <ctrl-d>
This would try to delete an out of range index.
2017-07-22 18:06:16 -04:00
Ryan Roden-Corrent
bc21904fef
Fix completion-item-del on undeletable item.
...
Even though no item was deleted, it was manipulating the completion
model because beginRemoveRows was called before the exception was
raised.
This fixes that problem by moving the removal logic (and delete_func
check) into the parent model, so it can check whether deletion is
possible before calling beginRemoveRows.
Fixes #2839 .
2017-07-22 17:16:35 -04:00
Florian Bruhin
a00548ec4d
Merge pull request #2827 from jgkamat/jay/fix-small-crash
...
Enforce a minimum size for non-pinned tabs
2017-07-22 22:07:31 +02:00
Jay Kamat
27dfc72012
Restructure minimum tab size behavior
2017-07-22 10:55:08 -07:00
Florian Bruhin
e943f0063e
Merge pull request #2834 from kchr/bugfix/use-breadability-module-when-available
...
Add support for breadability module in readability userscript
2017-07-22 18:28:49 +02:00
Florian Bruhin
f9dc31e464
Add subreddit to README
2017-07-22 10:22:57 +02:00
Florian Bruhin
6873991e2b
Merge pull request #2837 from qutebrowser/zeromax
...
Fix new completion with web-history-max-items set to 0
2017-07-21 22:19:57 +02:00
Florian Bruhin
118a7942a5
Add maximum bound for web-history-max-items
...
sqlite can't handle values bigger than uint64_t for LIMIT.
2017-07-21 18:30:12 +02:00
Florian Bruhin
544094ba72
Use simpler way of preventing History completion
2017-07-21 17:55:47 +02:00
Florian Bruhin
6660297871
Fix new completion with web-history-max-items set to 0
...
We get no last_atime limit at all otherwise:
qutebrowser.misc.sql.SqlException: Failed to prepare query "SELECT url, title,
strftime('%Y-%m-%d', last_atime, 'unixepoch', 'localtime') FROM
CompletionHistory WHERE (url LIKE :pat escape '\' or title LIKE :pat escape '\')
AND last_atime >= ORDER BY last_atime DESC": "near "ORDER": syntax error Unable
to execute statement"
2017-07-21 17:11:38 +02:00
Florian Bruhin
de0b50eaf7
Update docs
2017-07-21 15:39:36 +02:00
Florian Bruhin
5bea9c7794
Some more doc improvements
2017-07-21 15:16:54 +02:00
Florian Bruhin
fba25338be
Merge pull request #2295 from rcorre/really_complete
...
Completion refactor V3
2017-07-21 15:05:43 +02:00
Ryan Roden-Corrent
33a9c8cce6
Add listcategory to perfect_files.
2017-07-21 07:59:47 -04:00
Florian Bruhin
f1d4f693bb
Whoops - hopefully final README fix
2017-07-21 13:40:04 +02:00
Florian Bruhin
03a0bfdddd
Some more README improvements
2017-07-21 13:36:17 +02:00
Florian Bruhin
7e36310e8a
Shorten and update README
2017-07-21 13:28:23 +02:00
Ryan Roden-Corrent
1175543ce1
Fix qutescheme timestamp error.
...
A date object doesn't have a timestamp property. Go back to using
mktime.
2017-07-20 22:07:37 -04:00
Noor Christensen
a4e644c285
Add support for breadability module in readability userscript
2017-07-20 16:21:47 +02:00
Ryan Roden-Corrent
0eb347186c
Add 'localtime' to sql history query.
...
We need to tell sqlite to convert the timestamps to localtime during
formatting, otherwise it formats them as though you are in UTC.
Also fix up a few uses of mktime.
2017-07-20 09:06:29 -04:00
Florian Bruhin
57167a5cde
Merge pull request #2831 from kchr/docs/readability-userscript-dependencies
...
Clarify dependecies for readability userscript
2017-07-20 14:50:18 +02:00
Noor Christensen
5939bc990a
Clarify dependecies for readability userscript
2017-07-20 14:36:27 +02:00
Jay Kamat
8dbb61e9e3
Enforce a minimum size for non-pinned tabs
...
Closes #2826
2017-07-19 21:37:48 -07:00
Florian Bruhin
fafa063bcd
Remove unused import
2017-07-19 12:55:51 +02:00
Florian Bruhin
a3834d043b
pytest: Set testpaths
2017-07-19 12:22:30 +02:00
Florian Bruhin
a26fc89f49
Simplify setting the size for background tabs
...
We can simply look at the size of the existing open tab.
2017-07-19 11:59:44 +02:00
Florian Bruhin
0f85898137
Add a config version to the YAML file
2017-07-19 08:22:00 +02:00
Florian Bruhin
3756d9d76b
Merge pull request #2820 from qutebrowser/pyup-scheduled-update-07-17-2017
...
Scheduled weekly dependency update for week 29
2017-07-17 18:18:14 +02:00
pyup-bot
4d356e5320
Update vulture from 0.15 to 0.16
2017-07-17 16:02:22 +02:00
pyup-bot
19d8411c15
Update vulture from 0.15 to 0.16
2017-07-17 16:02:21 +02:00
pyup-bot
d9f0e21ea4
Update pytest-qt from 2.1.0 to 2.1.2
2017-07-17 16:02:20 +02:00
pyup-bot
a976e9011d
Update mako from 1.0.6 to 1.0.7
2017-07-17 16:02:18 +02:00
pyup-bot
72de0fcfcb
Update hypothesis from 3.12.0 to 3.13.0
2017-07-17 16:02:17 +02:00
pyup-bot
db2f60b0ef
Update decorator from 4.0.11 to 4.1.1
2017-07-17 16:02:16 +02:00
pyup-bot
bdfea0fa6f
Update setuptools from 36.0.1 to 36.2.0
2017-07-17 16:02:14 +02:00
Florian Bruhin
4a7fe25f66
Only clear search with :search if one is displayed
...
For some reason, calling search.clear() while no search is displayed causes the
backends to un-focus inputs, and with QtWebKit, even hinting can't focus them
again after that.
2017-07-17 15:00:18 +02:00
Ryan Roden-Corrent
f45acaa9c8
Fix coverage check for sqlcategory rename.
2017-07-17 08:37:24 -04:00
Ryan Roden-Corrent
c32d452786
Add LIMIT to history query.
...
For performance, re-introduce web-history-max-items.
As the history query has now become a very specific multi-part query and
history completion was the only consumer of SqlCategory, SqlCategory is
now replaced by a HistoryCategory class.
2017-07-16 18:13:51 -04:00
Florian Bruhin
ee1707c4d4
Update back/forward indicator on tab switches
2017-07-16 20:20:33 +02:00
Florian Bruhin
cbf9da0b7e
Set window.navigator.languages correctly
2017-07-13 21:24:17 +02:00
Florian Bruhin
5c367e7ab2
Fix the "try again" button on error pages
...
Fixes #2810
2017-07-13 17:26:58 +02:00
Ryan Roden-Corrent
8745f80d90
Fix qute://history SQL bug.
...
The javascript history page was requesting the new start_time in ms, but
the python code was expecting seconds. This is fixed by removing all the
millisecond translations in the python code and only translating to
milliseconds in the javascript code that formats dates.
2017-07-13 08:54:21 -04:00
Florian Bruhin
9898c1ba4b
Update docs
2017-07-13 11:02:26 +02:00
Florian Bruhin
71ee64a974
Merge branch 'jay/prompt-on-click' of https://github.com/jgkamat/qutebrowser
2017-07-13 11:01:04 +02:00
Jay Kamat
7dfca60893
Refactor tab_close_prompt_if_pinned
...
Now it lives in tabbedbrowser.py as method instead of a static function
2017-07-12 20:18:57 -07:00
Ryan Roden-Corrent
1aed2470e5
SQL code review.
...
- Fix flake8
- history.clear should also clear completion table
- call _resize_columns in set_model, not set_pattern
- add more unit-testing for the history completion table
2017-07-12 22:14:27 -04:00
Ryan Roden-Corrent
ea459a1eca
SQL code review fixes.
...
- Ignore invalid variable name in flake8 (pylint already checks this and
we don't want to have to double-ignore)
- Fix and test completion bug with `:set asdf `
- Remove unused import
- Use `assert not func.called` instead of `func.assert_not_called` for
backwards compatibility
2017-07-12 08:19:31 -04:00
Florian Bruhin
53620ecce4
Fix printing on macOS
...
Fixes #2798
2017-07-12 07:43:03 +02:00
Florian Bruhin
ba8083c539
Fix issues with new stylesheet cache
2017-07-11 21:59:17 +02:00
Florian Bruhin
9307cf86fa
Add a cache for rendered stylesheets
...
Otherwise, when showing hints a few times, we spend around 8-10s just in jinja
generating stylesheets.
2017-07-11 21:06:53 +02:00
Ryan Roden-Corrent
182d067ff8
SQL code review fixes.
...
- Fix comment and empty line check in _parse_entry
- connect layoutAboutToBeChanged signal
- assert sort_order is None if sort_by is None
- modify sql init failure message to ask about Qt sqlite support.
2017-07-11 08:07:48 -04:00
Florian Bruhin
3dfa36fad1
Update changelog
2017-07-11 13:00:23 +02:00
Florian Bruhin
c0426d3482
Merge branch 'pr/2808'
2017-07-11 09:27:08 +02:00
Florian Bruhin
6f930be08e
Update docs
2017-07-11 09:26:36 +02:00
Florian Bruhin
1e58c87380
Improve test for messageview timeout
2017-07-11 09:25:53 +02:00
Florian Bruhin
882dc75536
Set default count for AbstractHistory.back/.forward
...
Otherwise, using back/forward mouse buttons will crash.
2017-07-11 08:38:06 +02:00
Florian Bruhin
a91e6c3405
Fix test_adblock on Windows
...
We can't simply have an absolute filename as URL path there, so we only deal
with paths relative to tmpdir in the URLs now.
2017-07-10 22:22:44 +02:00
Florian Bruhin
f93b92cca8
adblock: Fix getting filename from URL
...
On Windows, we would end up with /C:/foo as "path".
2017-07-10 21:36:34 +02:00
Florian Bruhin
237362663a
Fix test_configfiles.test_init on Windows
2017-07-10 20:37:36 +02:00
Florian Bruhin
ac8fb03b80
Fix lint
2017-07-10 20:37:30 +02:00
Yashar Shahi
7da6908850
Check for interval being positive.
...
Check for interval being positive instead of checking for it to be
non-zero. So if somehow some unexpected thing happend and made
message-timeout negative, the bug doesn't cascade.
2017-07-10 21:14:55 +04:30
Yashar Shahi
1cb23f1193
Change timer interval after appending to _messages
2017-07-10 21:11:38 +04:30
Florian Bruhin
196f4a67b2
Update docs
2017-07-10 18:34:48 +02:00
Florian Bruhin
1f4012cc1e
Merge branch 'master' of https://github.com/iordanisg/qutebrowser
2017-07-10 18:33:46 +02:00
Yashar Shahi
a631c971d9
Add tests for show messages longer
...
Add tests for "Show messages longer if there are multiple of them."
2017-07-10 20:52:42 +04:30
Florian Bruhin
135fb042da
Make settings from qute://settings persistent
2017-07-10 18:04:39 +02:00
Yashar Shahi
9574549798
Merge https://github.com/qutebrowser/qutebrowser
2017-07-10 19:58:03 +04:30
Florian Bruhin
deaa5f363a
Merge branch 'pr/2807'
2017-07-10 17:16:42 +02:00
Florian Bruhin
045831f3c7
Fix coverage check
2017-07-10 16:57:26 +02:00
Yashar Shahi
cb0bd2c52d
Do not call _set_timer_interval() at constructor
...
No need to call _set_timer_interval() at constructor since it's called
every time timer is going to be started.
2017-07-10 19:21:35 +04:30
Yashar Shahi
c015e9cc5d
Revert "An empty file to trigger travis."
...
This reverts commit 03c70f0421 .
2017-07-10 19:20:32 +04:30
Yashar Shahi
03c70f0421
An empty file to trigger travis.
2017-07-10 18:58:45 +04:30
Florian Bruhin
cf2f81aae1
Remove myself from CODEOWNERS
...
I watch the repo anyways
2017-07-10 15:59:05 +02:00
Iordanis Grigoriou
9c83ea4717
Refactor _back_forward
2017-07-10 15:58:11 +02:00
pyup-bot
34eddc92ff
Update vulture from 0.14 to 0.15
2017-07-10 15:55:18 +02:00
pyup-bot
44270b37b9
Update vulture from 0.14 to 0.15
2017-07-10 15:55:17 +02:00
pyup-bot
57caf80e5d
Update pytest from 3.1.2 to 3.1.3
2017-07-10 15:55:15 +02:00
pyup-bot
9da52c5d86
Update hypothesis from 3.11.6 to 3.12.0
2017-07-10 15:55:14 +02:00
pyup-bot
9e6b84e31e
Update flake8-tidy-imports from 1.0.6 to 1.1.0
2017-07-10 15:55:12 +02:00
Iordanis Grigoriou
6ab49fdf1d
Move back/forward logic to AbstractHistory, fix method names
2017-07-10 15:43:35 +02:00
Yashar Shahi
3c1b05c81e
Show messages longer if there are multiple of them
2017-07-10 18:05:35 +04:30
Florian Bruhin
e81dcccace
Add a test for a None currentWidget with backforward widget
2017-07-10 09:29:45 +02:00
Florian Bruhin
5fb6cb713b
Hide back/forward widget when there's no text
2017-07-10 07:59:56 +02:00
Iordanis Grigoriou
bf074d14de
Adjust back/forward method arguments in AbstractHistory class
2017-07-10 01:00:48 +02:00
Iordanis Grigoriou
c6ed4fe4f9
Skip intermediate pages with :back/:forward and a count
2017-07-10 00:28:47 +02:00
Florian Bruhin
0e8175b8eb
Update docstrings/docs
2017-07-09 23:27:34 +02:00
Florian Bruhin
bce28fe526
Merge branch 'backforward' of https://github.com/blueyed/qutebrowser into blueyed-backforward
2017-07-09 23:25:36 +02:00
Jay Kamat
28a2482cf7
Merge branch 'master' into jay/prompt-on-click
2017-07-09 14:17:03 -07:00
Florian Bruhin
b3b2f69673
Fix manifest
2017-07-09 23:09:50 +02:00
Daniel Hahler
b3a9e09d6c
Add statusline widget for back/forward indicator
...
Fixes https://github.com/qutebrowser/qutebrowser/issues/2737 .
2017-07-09 22:38:44 +02:00
Florian Bruhin
d895ad183d
Update authors
2017-07-09 22:12:32 +02:00
Florian Bruhin
7ffe6a2c78
Fix Python/PyQt casing
2017-07-09 22:12:17 +02:00
Florian Bruhin
211a586173
Merge branch 'pr/2805'
2017-07-09 22:11:54 +02:00
Florian Bruhin
bb567a61b6
Fix ipc test coverage
2017-07-09 22:09:31 +02:00
Fritz Reichwald
fd4bc29beb
Add some comment
2017-07-09 14:10:08 +02:00
Fritz Reichwald
ead71db41a
Add explanation for using open_url_in_instance script
2017-07-09 13:45:16 +02:00
Fritz Reichwald
38c00e53cd
Add open_url_in_instance.sh script
2017-07-09 13:34:10 +02:00
Florian Bruhin
6c0ceeac7f
Update docs
2017-07-09 12:58:21 +02:00
Florian Bruhin
84c2289aa5
Merge branch 'master' of https://github.com/iordanisg/qutebrowser
2017-07-09 12:56:52 +02:00
Florian Bruhin
cd063c74d9
Why is my commit -a broken
2017-07-09 12:54:19 +02:00
Florian Bruhin
6a2163d36f
ipc: Remove support for connecting to legacy servers
2017-07-09 12:49:47 +02:00
Florian Bruhin
cfb169b5f0
Remove unused import
2017-07-09 12:40:16 +02:00
Florian Bruhin
9e7f2e470f
Move OpenGL workaround import
...
OpenGL.GL gets imported in earlyinit already anyways, so we can move everything
there.
2017-07-09 11:57:06 +02:00
Florian Bruhin
915cd5f016
Fix long lines
2017-07-09 11:51:22 +02:00
Ryan Roden-Corrent
cf4ac1a5b7
SQL code review changes.
...
- use mocker.Mock instead of mock.Mock to avoid an extra import
- attach model to validator sooner so it can validate changes in the
model during the test
2017-07-08 16:34:38 -04:00
Florian Bruhin
fcf5158258
Recommend QT_XCB_FORCE_SOFTWARE_OPENGL
...
This won't disable OpenGL for stuff started from qutebrowser.
See #2368 .
2017-07-08 17:36:14 +02:00
Florian Bruhin
b81474d2fd
Improve earlyinit check for PyOpenGL
...
Importing OpenGL alone doesn't actually load libgl, it only checks that the
package is here. If libgl is missing, we'd later get an exception.
2017-07-08 17:33:50 +02:00
Iordanis Grigoriou
c9fd182dba
Adjust suggested_fn_from_title, add tests
2017-07-08 16:28:58 +02:00
Ryan Roden-Corrent
f9f8900fe9
More sql code review fixes.
...
- remove outdated comment
- fix sql init error message
- clean up history text import code
- fix test_history file path in coverage check
- use real web history, not stub, for completion model tests
- use qtmodeltester in sql/list_category tests
- test url encoding in history tests
- fix test_clear by using a callable mock
- remove test_debug_dump_history_oserror as the check is now the same as
for the file not existing
- rename nonempty to data in test_completionmodel
- add more delete_cur_item tests
- test empty option/value completion
2017-07-08 09:57:32 -04:00
Florian Bruhin
ad615941a2
Replace OS X with macOS
2017-07-08 11:12:43 +02:00
Florian Bruhin
0de0bbfa71
Fix :restart with private browsing mode
2017-07-08 10:46:08 +02:00
Ryan Roden-Corrent
515e82262d
Merge remote-tracking branch 'upstream/master' into really_complete
2017-07-07 20:42:21 -04:00
Florian Bruhin
a572b0f34d
Update docs
2017-07-07 18:40:57 +02:00
Florian Bruhin
f80fd2a27c
Merge branch 'pr/2782'
2017-07-07 18:38:29 +02:00
Florian Bruhin
f7dbd3c283
Add initial CODEOWNERS file
2017-07-07 17:58:38 +02:00
Florian Bruhin
215503ba59
Remove now useless suppression
2017-07-07 15:21:18 +02:00
Florian Bruhin
af6d833c50
Fix build_release.py
2017-07-07 15:18:05 +02:00
Florian Bruhin
5098aa388b
build_release: Fail GitHub uploads early
2017-07-07 14:28:36 +02:00
Christian Helbling
6d9e5dc931
avoid too long lines
2017-07-07 11:30:18 +02:00
Florian Bruhin
d4da82805f
Remove hostblock_blame
2017-07-07 09:44:34 +02:00
Florian Bruhin
6a8d2ac826
Disable search workaround for Qt 5.9.2
2017-07-06 23:18:29 +02:00
Iordanis Grigoriou
82d194cf2e
Improve function docstring, add more tests
2017-07-06 21:37:11 +02:00
Iordanis Grigoriou
3bfafb5e50
Refactor suggested_fn_from_title, add unit tests
2017-07-06 17:41:54 +02:00
Christian Helbling
d179450c29
:fullscreen, enter video fullscreen, :fullscreen, exit video fullscreen should not go into video fullscreen
2017-07-06 15:35:52 +02:00
Ryan Roden-Corrent
1dd5f06a4f
Fix debug-dump-history behavior.
...
Ensure the file is closed before printing the success message. This will
hopefully fix the AppVeyor tests.
2017-07-06 08:02:16 -04:00
Ryan Roden-Corrent
cee0aa3adc
Show error dialog is sql isn't available.
...
If creating the sql database fails, show an error dialog assuming sqlite
is not installed.
This removes the isDriverAvailable check as it was true even with sqlite
uninstalled.
sql.version now inits itself if sql is not already initialized and
prints 'UNAVAILABLE (<error message>)' if init fails. This is to avoid
cascading errors, where one error would create a crash dialog, which
calls sql.version, which would create another error.
2017-07-06 07:36:59 -04:00
Florian Bruhin
338d62204e
Make TestModuleVersions in test_version more maintainable
2017-07-06 12:36:11 +02:00
Florian Bruhin
66168a5b49
Add test ids to test_version_output
2017-07-06 12:25:11 +02:00
Florian Bruhin
911e59b0f4
Improve version output without SSL support
2017-07-06 12:23:08 +02:00
Florian Bruhin
94951d92a1
Simplify arg handling in test_version_output
2017-07-06 12:15:42 +02:00
Iordanis Grigoriou
57e4d4978b
Use page title only for whitelisted extensions
2017-07-06 11:59:02 +02:00
Florian Bruhin
3c9de92d58
Add Gentoo instructions to backend warning
2017-07-06 00:41:06 +02:00
Florian Bruhin
6b4e0ad2bc
Update changelog
2017-07-05 22:14:49 +02:00
Florian Bruhin
a4833fcc46
Merge branch 'pr/2747'
2017-07-05 22:14:07 +02:00
Florian Bruhin
0304040cbb
Update docs
2017-07-05 22:14:01 +02:00
Florian Bruhin
a8120a23c4
Update comment for TabBarStyle
2017-07-05 22:13:24 +02:00
Florian Bruhin
f15dbecc73
Update changelog for unreleased versions
2017-07-05 21:49:34 +02:00
Ryan Roden-Corrent
dc4472470e
Merge remote-tracking branch 'upstream/master' into really_complete
2017-07-05 08:45:57 -04:00
Ryan Roden-Corrent
81f5b7115f
Add spec=[] to two mock functions in tests.
2017-07-05 08:44:56 -04:00
Christian Helbling
361251bf53
mark public attribute as public, fix debug output
2017-07-04 23:30:06 +02:00
Christian Helbling
20db65e430
preserve window state when exiting video fullscreen
2017-07-04 22:56:44 +02:00
Florian Bruhin
eaecfe5882
build_release: Adjust Windows installer names
2017-07-04 22:27:17 +02:00
Florian Bruhin
725d4a44f0
build_release: Don't fail if hdiutil detach fails
2017-07-04 22:16:21 +02:00
Florian Bruhin
c424a745d8
build_release: Add comment about missing 3rdparty upgrade
2017-07-04 21:36:20 +02:00
Florian Bruhin
3cbe419cee
Update Python version for Windows in release checklist
2017-07-04 21:36:20 +02:00
Florian Bruhin
8f03a36862
build_release: Use correct path when copying dirs
2017-07-04 21:31:53 +02:00
Florian Bruhin
7ecdd6c1c5
build_release: Print some more information about copied files
2017-07-04 21:04:08 +02:00
Florian Bruhin
d96403fe93
build_release: Clean up before doing stuff
...
So we can inspect the results later.
2017-07-04 21:03:55 +02:00
Florian Bruhin
2df9508e44
Add PyQt5 OpenGL module to PyInstaller hiddenimports
2017-07-04 21:03:34 +02:00
Florian Bruhin
defe140d98
build_release: Run tox with -vv
2017-07-04 19:56:54 +02:00
Florian Bruhin
28410b8533
Release v0.11.0
2017-07-04 18:02:34 +02:00
Florian Bruhin
378914b327
Ignore another new geoclue error during tests
2017-07-04 18:01:24 +02:00
Christian Helbling
7ea7a2f3fd
restore maximized state on :fullscreen and when exiting video fullscreen
2017-07-04 17:50:07 +02:00
Florian Bruhin
023bf82638
Update for PyQt 5.9.1
2017-07-04 17:31:09 +02:00
Florian Bruhin
45b1285402
Merge pull request #2765 from jgkamat/jay/tab-crashes
...
Refactor set_tab_pinned to take a tab widget.
2017-07-04 17:24:10 +02:00
Florian Bruhin
0cdd3ff82f
Update some more references to old config options
2017-07-04 16:46:02 +02:00
Florian Bruhin
770c879410
Bring back searchengine BDD tests
2017-07-04 15:39:07 +02:00
Florian Bruhin
cff61fa0bc
Fix pylint
...
This also reverts commit 8df0b063be .
2017-07-04 15:34:10 +02:00
Florian Bruhin
88b878098d
Implement pretty-printing of configtypes for the doc
...
This is also needed to make the docs environment work on Travis - as otherwise,
doc generation wasn't deterministic because of changing dict key order.
2017-07-04 15:09:23 +02:00
Florian Bruhin
f98b8a240e
Fix flake8
2017-07-04 15:09:23 +02:00
Florian Bruhin
f92ccd4893
Show diff on Travis in check_doc_changes
2017-07-04 15:09:23 +02:00
Florian Bruhin
397ca47efb
Fix vulture
2017-07-04 15:09:23 +02:00
Florian Bruhin
f71e678d80
Ignore a new Geoclue error during tests
2017-07-04 15:09:23 +02:00
Florian Bruhin
acf85eb96b
Stabilize qute://settings test
2017-07-04 15:09:23 +02:00
Florian Bruhin
79c11d6008
Skip test_configdata.test_init_benchmark on Travis in Docker
...
See #2777
2017-07-04 15:09:23 +02:00
Florian Bruhin
65585b313d
test_configtypes: Rename test_to_py to _valid for consistency
2017-07-04 15:09:23 +02:00
Florian Bruhin
9ac2dbcc80
Disallow surrogate escapes in dicts and lists in the config
...
In Dict.to_str() and List.to_str() we use json.dump to get a value. However,
JSON includes surrogate escapes in the dumped values, which breaks round trips.
>>> yaml.load(json.dumps({'\U00010000': True}))
{'\ud800\udc00': True}
>>> yaml.load(json.dumps({'\U00010000': True}, ensure_ascii=False))
yaml.reader.ReaderError: unacceptable character #x10000: special characters are not allowed
See:
https://stackoverflow.com/a/38552626/2085149
https://news.ycombinator.com/item?id=12798032
2017-07-04 15:09:23 +02:00
Florian Bruhin
fa0f4e1101
Improve test_configtypes.TestDict
...
We didn't have to_py tests there before.
2017-07-04 15:09:23 +02:00
Florian Bruhin
f00e91e85e
Don't set valid_values in test_configtypes.TestList
...
Most of the time we want to check values without them being outright rejected by
ValidValues.
2017-07-04 15:09:23 +02:00
Florian Bruhin
05f4f2e742
Fix TestDict.test_hypothesis_text for unordered dicts
2017-07-04 15:09:23 +02:00
Florian Bruhin
ea2b9f5596
Remove old comment
...
The recursion is caught in test_config
2017-07-04 15:09:15 +02:00
Florian Bruhin
0528a800f2
Fix config things relying on dict order
2017-07-04 15:08:04 +02:00
Florian Bruhin
8933b4c5da
Avoid calling configdata.init() in tests
...
It takes unnecessary time (20ms without C extensions) to initialize it over and
over again - and for some reason, it takes 20s (!) on Travis.
2017-07-04 15:08:04 +02:00
Florian Bruhin
56ec5719a2
Update docs
2017-07-04 15:08:04 +02:00
Florian Bruhin
91cd6c6288
Fix Python 3.4 circular imports
2017-07-04 15:08:04 +02:00
Florian Bruhin
9db4a8cb43
Clean up test_cache
2017-07-04 15:08:04 +02:00
Florian Bruhin
9dfe4429d7
Import qutebrowser.app in conftest
2017-07-04 15:08:04 +02:00
Florian Bruhin
b42265212b
Update test_keyhints for new config
...
This also makes the keyhint display things sorted
2017-07-04 15:08:04 +02:00
Florian Bruhin
4bebfd8d5f
Update test_modeparsers for new config
2017-07-04 15:08:04 +02:00
Florian Bruhin
d5cd0b19b0
Update test_basekeyparser for new config
2017-07-04 15:08:04 +02:00
Florian Bruhin
22b0f2fd24
Various simple test updates for new config
...
test_cache
test_cookies
test_webkitelem
test_cmdutils
test_runners
test_completionwidget
test_messageview
test_editor
test_miscwidgets
test_sessions
test_urlutils
test_utils
test_prompt
statusbar/test_*
test_cmdhistory
test_tabwidget
test_tab
test_downloads
test_networkmanager
2017-07-04 15:08:04 +02:00
Florian Bruhin
1663280f53
Update test_shared for new config
...
Also, make accept_language none_ok=True like it was in the old configdata.py
2017-07-04 15:08:04 +02:00
Florian Bruhin
7dd5e4b2e6
Skip broken completion tests
...
This skips test_completer and test_models - we'll reintroduce them when merging
the new completion.
2017-07-04 15:08:04 +02:00
Florian Bruhin
ff05560047
Update test_adblock for new config
...
This required some changes on how URLs are handled during those tests. Before,
we simply could return a path and (since we had a patched QNAM), nobody
complained.
Now this actually needs to be a valid URL, so we use
https://www.example.com/path everywhere instead.
2017-07-04 15:08:04 +02:00
Florian Bruhin
78d7ac311f
Use fonts.monospace properly
2017-07-04 15:08:04 +02:00
Florian Bruhin
4562a3574b
Allow a list for content.user_stylesheets
2017-07-04 15:08:04 +02:00
Florian Bruhin
afb3b496e8
Add missing backend: QtWebKit for content.pdfjs
2017-07-04 15:08:04 +02:00
Florian Bruhin
a36f5bafc1
Rename content.javascript.can_*_windows to _tabs
2017-07-04 15:08:04 +02:00
Florian Bruhin
be94098597
Improve more docs
2017-07-04 15:08:04 +02:00
Florian Bruhin
5ada3606d8
Allow to not send the DNT header
2017-07-04 15:08:04 +02:00
Florian Bruhin
040be60697
Improve more docs
2017-07-04 15:08:04 +02:00
Florian Bruhin
202b8445f6
Move content.accept_language under headers
2017-07-04 15:08:04 +02:00
Florian Bruhin
f546cbe934
Clarify some docs
2017-07-04 15:08:04 +02:00
Florian Bruhin
d7036fe8a8
Clarify history_session_interval and rename it to _gap_interval
...
"session" is already overloaded enough.
2017-07-04 15:08:04 +02:00
Florian Bruhin
8712fc6fd3
Move new_instance_open_target out of url.
...
It doesn't really fit there really...
See 3cf028db23cbfe256e499d8881c3c2856f224d94
2017-07-04 15:08:04 +02:00
Florian Bruhin
d641652a92
More test_config improvements
2017-07-04 15:08:04 +02:00
Florian Bruhin
c214acd899
Remove config from objreg
2017-07-04 15:08:04 +02:00
Florian Bruhin
f8a88ae042
Clean up objreg properly in config tests
2017-07-04 15:08:04 +02:00
Florian Bruhin
54adf3898a
Add test_configfiles.py
2017-07-04 15:08:04 +02:00
Florian Bruhin
e72b0fc89d
Update check_coverage.py for new config
2017-07-04 15:08:04 +02:00
Florian Bruhin
1a492e9f4a
Re-add backend checks to new config
2017-07-04 15:08:04 +02:00
Florian Bruhin
556f49d367
Add PACFetcher.fetch
...
Let's not try to download proxies during tests...
2017-07-04 15:08:04 +02:00
Florian Bruhin
215fd2f055
More test_config fixes/tests
2017-07-04 15:08:04 +02:00
Florian Bruhin
009ed3584d
Reorder tests
2017-07-04 15:08:04 +02:00
Florian Bruhin
2b9b54cf6b
Tests and improvements for ConfigContainer
2017-07-04 15:08:03 +02:00
Florian Bruhin
4495e721d8
Tests and fixes for config.Config
2017-07-04 15:08:03 +02:00
Florian Bruhin
e259293f83
Always copy config objects
...
If we mutate the value we get from the config, we want to make sure the value in
the config always stays the same (especially when it's the default!).
2017-07-04 15:08:03 +02:00
Florian Bruhin
2c3981e57e
Get rid of Config.read_configdata()
...
No need for this indirection
2017-07-04 15:08:03 +02:00
Florian Bruhin
252c5396f3
Apply proxy changes from master
...
This are the same changes as done in 629038632c ,
but only the part related to the config. This is so we don't forget this when
merging them.
2017-07-04 15:08:03 +02:00
Florian Bruhin
07d0ea6a54
Unit tests and improvements for :bind/:unbind
2017-07-04 15:08:03 +02:00
Florian Bruhin
353c10aee7
Add a separate qutescheme BDD file
2017-07-04 15:08:03 +02:00
Florian Bruhin
3edebce833
Add tests for :set
2017-07-04 15:08:03 +02:00
Florian Bruhin
31b999ea59
Tests and improvements for KeyConfig
2017-07-04 15:08:03 +02:00
Florian Bruhin
725ffef5f3
Use a real config object in unit tests
2017-07-04 15:08:03 +02:00
Florian Bruhin
5aac991446
Remove unnecessary sip.isdeleted line
...
Now that the StyleSheetObserver is a child of the object it observes, it should
get cleaned up properly when the object is deleted.
This means this is hopefully not needed anymore, even on Qt 5.2.
2017-07-04 15:08:03 +02:00
Florian Bruhin
978013e750
Fix CommandParser and don't use a generator
2017-07-04 15:08:03 +02:00
Florian Bruhin
a8c7e8ba05
Add first config tests
2017-07-04 15:08:03 +02:00
Florian Bruhin
28670f8e48
Move config.style into config.config and refactor it
2017-07-04 15:08:03 +02:00
Florian Bruhin
81d6406e14
Update test_stylesheet
2017-07-04 15:08:03 +02:00
Florian Bruhin
a5c8a52dd5
Update config_stub for tests
2017-07-04 15:08:03 +02:00
Florian Bruhin
0dc95aceed
Clean up old test_config.py
2017-07-04 15:08:03 +02:00
Florian Bruhin
a2f62238f1
Change default binding to leave passthrough mode to Ctrl-V
...
Also, display the binding in the statusbar
2017-07-04 15:08:03 +02:00
Florian Bruhin
df1685905e
Add content.headers and content.cache groups
2017-07-04 15:08:03 +02:00
Florian Bruhin
50602cbf26
Add an url. group to settings
2017-07-04 15:08:03 +02:00
Florian Bruhin
5c08c6c930
Add conditional backend infos to docs
2017-07-04 15:08:03 +02:00
Florian Bruhin
034d727a2c
Clean up configdata
2017-07-04 15:08:03 +02:00
Florian Bruhin
25ab3b30c2
Initial doc update with new settings
2017-07-04 15:08:03 +02:00
Florian Bruhin
94ac2ca56c
Merge :wq into :quit and add an alias
2017-07-04 15:08:03 +02:00
Florian Bruhin
065f82f485
Fix endless recursion while validating aliases
2017-07-04 15:08:03 +02:00
Florian Bruhin
ac78039171
Use aliases for :w and :q
2017-07-04 15:08:03 +02:00
Florian Bruhin
ac64ea287a
Rename tabs.new_position/_explicit to .related/.unrelated
2017-07-04 15:08:03 +02:00
Florian Bruhin
441b3a4df4
Allow missing fixed_keys for configtypes.Dict
...
We just fill them up with a None value for the value type, so we can e.g. only
specify a subset of modes for bindings and the rest is {}.
2017-07-04 15:08:03 +02:00
Florian Bruhin
9d8b76e497
Simplify _none_value for List/Dict configtypes
...
We don't need to check for fixed_keys/required_keys in get_obj (only get_py),
and we don't need to care about mutability in get_py.
2017-07-04 15:08:03 +02:00
Florian Bruhin
da0a2b8578
Handle {} and [] with none_ok for configtypes.Dict/List
2017-07-04 15:08:03 +02:00
Florian Bruhin
2ba637891a
Add required_keys for configtypes.Dict
2017-07-04 15:08:03 +02:00
Florian Bruhin
bc526cf0ce
Remove some FIXMEs
2017-07-04 15:08:03 +02:00
Florian Bruhin
7ee222af88
Return [] for none-values for configtypes.List
2017-07-04 15:08:03 +02:00
Florian Bruhin
c141c33b32
Clean up start_pages setting
...
The value is now of type FuzzyUrl, and the setting is renamed to start_pages.
2017-07-04 15:08:03 +02:00
Florian Bruhin
9cbacf3264
Use {} for none-dicts and fix keybindings
2017-07-04 15:08:03 +02:00
Florian Bruhin
0115285a84
Initial update for better bindings management
2017-07-04 15:08:03 +02:00
Florian Bruhin
127db2fe42
Be a bit more relaxed about values for Perc
...
We now allow float/int for objects, and strings without a trailing % sign.
2017-07-04 15:08:03 +02:00
Florian Bruhin
cbf6e4287f
Rename fonts.tabbar to fonts.tabs
2017-07-04 15:08:03 +02:00
Florian Bruhin
e7ba56cb2c
Read YAML config after config.val is ready
...
This means we can (at least somewhat) validate aliases in configtypes.Command.
2017-07-04 15:08:03 +02:00
Florian Bruhin
0ed0a6db57
Clean up code
2017-07-04 15:08:03 +02:00
Florian Bruhin
67cb6a9802
Implement initial reading from YAML
2017-07-04 15:08:03 +02:00
Florian Bruhin
70f6d0e305
Add qutebrowser.config.configfiles
2017-07-04 15:08:03 +02:00
Florian Bruhin
78434a330c
Remove old stub FIXMEs
2017-07-04 15:08:03 +02:00
Florian Bruhin
fda4fd4888
Rename NewConfigManager.set to set_obj
2017-07-04 15:08:03 +02:00
Florian Bruhin
ad0a961a5f
Add an lru_cache for configdata.is_valid_prefix()
...
This gets called a lot, and caused some :bind calls to take ~3s.
Stats after starting with a bit of :bind:
CacheInfo(hits=25917, misses=139, maxsize=256, currsize=139)
2017-07-04 15:08:03 +02:00
Florian Bruhin
45e7e35233
Detect mutated values in new config
...
This will allow config.py to get a value and then mutate it, and we can also
make things easier for :bind and :unbind.
2017-07-04 15:08:03 +02:00
Florian Bruhin
9bd438618a
Add a test for DuplicateKeyError
2017-07-04 15:08:03 +02:00
Florian Bruhin
2a40401398
Fix config tests for new Command type
2017-07-04 15:08:03 +02:00
Florian Bruhin
2577b2c5e3
Validate configtypes.Command correctly
2017-07-04 15:08:03 +02:00
Florian Bruhin
ad919fc972
Add a test for :bind with a wrong mode
2017-07-04 15:08:03 +02:00
Florian Bruhin
23d30d4fc0
Fix remaining :bind/:unbind issues
2017-07-04 15:08:03 +02:00
Florian Bruhin
f434f955c2
Improve exception handling for :bind/:unbind
2017-07-04 15:08:02 +02:00
Florian Bruhin
ba1bc29a97
Initial :bind/:unbind implementation
2017-07-04 15:08:02 +02:00
Florian Bruhin
290d27a064
Add a cmdexc.Error
2017-07-04 15:08:02 +02:00
Florian Bruhin
a6c629899e
Split CommandRunner into runner/parser
2017-07-04 15:08:02 +02:00
Florian Bruhin
d4cbd4ace4
Fix getting the scrollbar option
2017-07-04 15:08:02 +02:00
Florian Bruhin
d9f1c4595e
Make "the option ... should be set to ..." unambiguous
...
Otherwise, it'd collide with the cookie check.
2017-07-04 15:08:02 +02:00
Florian Bruhin
ed5bea6e3f
Call int() for zoom level messages
2017-07-04 15:08:02 +02:00
Florian Bruhin
3c2d568a2e
Add an ID for qute://settings inputs
2017-07-04 15:08:02 +02:00
Florian Bruhin
d7f1ebedbf
Fix toggling options
2017-07-04 15:08:02 +02:00
Florian Bruhin
44e4816cbb
Use get_opt in NewConfigManager.set
2017-07-04 15:08:02 +02:00
Florian Bruhin
5081e4f201
Fix NewConfigManager.get_str
2017-07-04 15:08:02 +02:00
Florian Bruhin
5e4675b34a
Fix ignore_case handling
2017-07-04 15:08:02 +02:00
Florian Bruhin
340a62869d
Fix javascript.prompt default
2017-07-04 15:08:02 +02:00
Florian Bruhin
ceca99a99c
Fix :help with new config
2017-07-04 15:08:02 +02:00
Florian Bruhin
e752f87876
Add Shift-Delete mapping for :completion-item-del
...
This seems to be what Chromium and Firefox use for the same purpose.
2017-07-04 15:08:02 +02:00
Florian Bruhin
75798bebb0
Normalize bindings correctly when checking key_mappings
2017-07-04 15:08:02 +02:00
Florian Bruhin
383968d948
Add a Key config type
...
Make sure any key we get from the config is normalized).
2017-07-04 15:08:02 +02:00
Florian Bruhin
0d062b28bf
Comment out failing test
2017-07-04 15:08:02 +02:00
Florian Bruhin
e894ad4ab0
Improve :set --temp docs
2017-07-04 15:08:02 +02:00
Florian Bruhin
6aafaca329
Fix invalid default_page replacement
2017-07-04 15:08:02 +02:00
Florian Bruhin
ae6cc543ed
Fix shared.feature_permission
2017-07-04 15:08:02 +02:00
Florian Bruhin
bd9b45bb96
tests: Fix more issues with new config
2017-07-04 15:08:02 +02:00
Florian Bruhin
089e1ee91b
Rewrite various references to old settings
2017-07-04 15:08:02 +02:00
Florian Bruhin
88fb5bbd82
tests: Fix various issues with new config
2017-07-04 15:08:02 +02:00
Florian Bruhin
ab1b80967f
Disable tests which won't work yet
...
They are re-enabled in later commits.
2017-07-04 15:08:02 +02:00
Florian Bruhin
198040b2e2
Fix setting descriptions
2017-07-04 15:08:02 +02:00
Florian Bruhin
f27978e268
Rename input.insert_mode.auto_focused to _load
2017-07-04 15:08:02 +02:00
Florian Bruhin
3470e9bf5d
Fix invocation with -s
2017-07-04 15:08:02 +02:00
Florian Bruhin
471755d370
Fix old config access in hints
2017-07-04 15:08:02 +02:00
Florian Bruhin
3aa7f771c1
Fix dirbrowser.html for stricter jinja env
2017-07-04 15:08:02 +02:00
Florian Bruhin
d0904a9f67
Adjust test settings
2017-07-04 15:08:02 +02:00
Florian Bruhin
c2a2845ee7
Remove the tabs.movable setting
2017-07-04 15:08:02 +02:00
Florian Bruhin
85bee4a7d2
Rename completion background settings to .odd/.even
2017-07-04 15:08:02 +02:00
Florian Bruhin
bc8176ff21
Remove most legacy config code
2017-07-04 15:08:02 +02:00
Florian Bruhin
785de9fb99
Add dump_userconfig
2017-07-04 15:08:02 +02:00
Florian Bruhin
b5eac744b5
Remove old caching code
...
Not deleting debug_cache_stats as we'll soon re-add stuff there.
2017-07-04 15:08:02 +02:00
Florian Bruhin
46d0fee11b
Bring back :set
2017-07-04 15:08:02 +02:00
Florian Bruhin
30f1970850
Fix key-config usage
2017-07-04 15:08:02 +02:00
Florian Bruhin
aa75262fe4
Fix keyhintwidget
2017-07-04 15:08:02 +02:00
Florian Bruhin
22f096088b
Fix alias handling
2017-07-04 15:08:02 +02:00
Florian Bruhin
f5d2c48bbb
Fix new keyconfig issues
2017-07-04 15:08:02 +02:00
Florian Bruhin
056edcfed3
More keyconfig work
2017-07-04 15:08:02 +02:00
Florian Bruhin
67afc06d79
Initial work on new keyconfig
2017-07-04 15:08:02 +02:00
Florian Bruhin
e4278a69ac
Re-activate aliases
2017-07-04 15:08:02 +02:00
Florian Bruhin
82102279bc
Get rid of configdata.SECTION_DESC
2017-07-04 15:08:02 +02:00
Florian Bruhin
624c6777ff
Reorder configdata.yml
2017-07-04 15:08:02 +02:00
Florian Bruhin
94b200835a
Hack in setting a value to NewConfigManager
2017-07-04 15:08:02 +02:00
Florian Bruhin
dc74a55b84
Fix remaining configtypes issues
2017-07-04 15:08:02 +02:00
Florian Bruhin
72d4421ac8
Make ShellCommand a List subclass
...
Also, let's not require a list in Command (which is used for aliases).
2017-07-04 15:08:02 +02:00
Florian Bruhin
3392ccc58b
test_configtypes fixes
2017-07-04 15:08:02 +02:00
Florian Bruhin
ecba175b16
Test and fix configtypes to_str.
2017-07-04 15:08:02 +02:00
Florian Bruhin
4c2f65819b
Try to fix qute://settings
2017-07-04 15:08:02 +02:00
Florian Bruhin
5414744439
Clean up NewConfigManager
2017-07-04 15:08:02 +02:00
Florian Bruhin
d69c6d0c66
Reorganize how configtypes store their data
...
Now the "object" kind of value (like in YAML) is stored internally, and that's
the canonical value. The methods changed their meaning slightly, see the
docstring in configtypes.py for details.
2017-07-04 15:08:02 +02:00
Florian Bruhin
1cbb4ece4b
Force configtype.Dict keys to be strings
2017-07-04 15:08:02 +02:00
Florian Bruhin
41655e7852
Fix handling of none_ok in List/Dict
...
We now always return None (and '' as string) when the user configured an empty
list or dict.
2017-07-04 15:08:01 +02:00
Florian Bruhin
8ea3d92697
Initial implementation of to_str for configtypes
2017-07-04 15:08:01 +02:00
Florian Bruhin
0c1f480fc1
Remove TODO for qute://settings on webengine
2017-07-04 15:08:01 +02:00
Florian Bruhin
ffc29ee043
Make qute://settings work with QtWebEngine and new config
...
Fixes #2332
2017-07-04 15:08:01 +02:00
Florian Bruhin
fede64ba7a
Add test for configdata.is_valid_prefix
2017-07-04 15:08:01 +02:00
Florian Bruhin
18eb133811
configdata: Make sure default values are valid
2017-07-04 15:08:01 +02:00
Florian Bruhin
0857a45b0a
configtypes: parse regex flags properly
2017-07-04 15:08:01 +02:00
Florian Bruhin
a7c3bb0d55
Initial qute://settings upgrade
2017-07-04 15:08:01 +02:00
Florian Bruhin
3a6bcb3dd0
Remove icon from base.html
2017-07-04 15:08:01 +02:00
Florian Bruhin
36a5614c61
Add "FIXME"
2017-07-04 15:08:01 +02:00
Florian Bruhin
a1ed81f790
Patch out setting completion
...
Let's bring it back with the completion refactoring
2017-07-04 15:08:01 +02:00
Florian Bruhin
6733e92b50
Handle files correctly in utils.yaml_dump
2017-07-04 15:08:01 +02:00
Florian Bruhin
001312ca82
Disallow Booleans for configtypes.Int.from_py
2017-07-04 14:42:56 +02:00
Florian Bruhin
4e729bb9ec
Back to using json in test_configtypes
...
It returns one-line data and is YAML compatible
2017-07-04 14:42:56 +02:00
Florian Bruhin
dfee857466
Make utils.yaml_dump return str
2017-07-04 14:42:56 +02:00
Florian Bruhin
05dc94ccc4
Improve configtypes tests
2017-07-04 14:42:56 +02:00
Florian Bruhin
7416164aca
Rename old validate tests
2017-07-04 14:42:56 +02:00
Florian Bruhin
71f2e8c577
None validation fixups for test_configtypes
2017-07-04 14:42:56 +02:00
Florian Bruhin
ffd1a91467
Fix Directory conftype
2017-07-04 14:42:56 +02:00
Florian Bruhin
61ba92ae18
configtypes: Separate str/py basic validation
...
This also ensures the behavior for none_ok is consistent.
2017-07-04 14:42:56 +02:00
Florian Bruhin
cdbd64a30d
Move test_configtypes_hypothesis to test_configtypes
2017-07-04 14:42:56 +02:00
Florian Bruhin
51a29468be
configtypes: Use YAML for loading List/Dict from a string
...
This allows for a more lightweight syntax (like "{a: b}").
2017-07-04 14:42:56 +02:00
Florian Bruhin
41565fcfd4
configtypes: Use from_py for List/Dict values from a string
2017-07-04 14:42:56 +02:00
Florian Bruhin
7ddce62cd6
Refactor most of remaining config.get() calls
2017-07-04 14:42:56 +02:00
Florian Bruhin
51474724e5
Refactor objreg.get('config') calls
2017-07-04 14:42:56 +02:00
Florian Bruhin
cc0e66fe7b
More config fixes
2017-07-04 14:42:56 +02:00
Florian Bruhin
6a451b37d7
re-raise NoOptionError
2017-07-04 14:42:56 +02:00
Florian Bruhin
52f15c84a6
Get rid of config sections
2017-07-04 14:42:56 +02:00
Florian Bruhin
7e7fbf106b
Fix lint and old config options
2017-07-04 14:42:56 +02:00
Florian Bruhin
63bdee8b55
Initial configtype tests update
2017-07-04 14:42:56 +02:00
Florian Bruhin
ce7597b3f6
Fix various configtypes issues found while writing tests
2017-07-04 14:42:56 +02:00
Florian Bruhin
d751539a25
Add __eq__ and __repr__ for PACFetcher
...
This makes it possible to use it in comparisons during tests easily.
2017-07-04 14:42:56 +02:00
Florian Bruhin
cc90cc6843
Initial pylint checker update
2017-07-04 14:42:56 +02:00
Florian Bruhin
3cee9cdcd7
Fix JS logging
2017-07-04 14:42:56 +02:00
Florian Bruhin
45ce7efc71
Adjust feature permissions
2017-07-04 14:42:56 +02:00
Jakub Klinkovský
7eacea1057
Preserve fullscreen when exiting video fullscreen
...
Fixes #2778
2017-07-04 14:12:21 +02:00
Ryan Roden-Corrent
1e1335aa5e
Make various SQL code review changes.
...
- Fix outdated comments
- Use mock specs when possible
- More precise error message check in test_import_txt_invalid.
- Fix copyright message
- Tweak missing pyqt error message
- Dead code: remove group_by and where from sqlcategory.
With the new separate completion table, these are no longer used.
- Move test_history out of webkit/. History is no longer purely webkit
related, it could be webengine.
2017-07-03 09:45:08 -04:00
Ryan Roden-Corrent
25c79bec67
Check correct SQL driver in earlyinit.
2017-07-03 08:15:06 -04:00
Ryan Roden-Corrent
a34df34208
Fix various test/flake8/pylint errors.
2017-07-03 08:12:47 -04:00
Ryan Roden-Corrent
f2dbff92f4
Check for PyQt.QtSql and sqlite in earlyinit.
...
Show a graphical error box with install instructions if PyQt.QtSql is
not found, rather than failing with CLI errors. Also show an error box
if the sqlite driver is not available.
2017-07-03 07:57:55 -04:00
Florian Bruhin
629038632c
Add proxy support for QtWebEngine and Qt 5.7.1
...
This used to give us crashes in libproxy:
https://github.com/libproxy/libproxy/issues/45
https://bugreports.qt.io/browse/QTBUG-56852
However, trying again with Qt 5.7.1 on Debian and from PyPI, this doesn't happen
anymore, so it was probably something with how Archlinux handled things.
See #2082 , #2775 .
Reverts fd29528e4f
2017-07-03 10:29:28 +02:00
Florian Bruhin
3b53ec1cb6
Skip tests with permission changes if they didn't work
...
This e.g. wouldn't work inside of a Docker container otherwise.
2017-07-03 10:07:40 +02:00
Florian Bruhin
e828f5b812
Fix most config changed handlers
2017-07-02 22:17:33 +02:00
Florian Bruhin
c25022f549
Fix LimitLineParser
2017-07-02 22:17:33 +02:00
Florian Bruhin
1022b7ea32
Make jinja templating more strict
...
This ensures we actually know when an AttributeError happens.
It also changes most external code to use the correct environment, rather than
simply creating a jinja2.Template, which wouldn't use the more tightened
environment.
2017-07-02 22:17:33 +02:00
Florian Bruhin
4b4acc5f5a
Minor config fixes
2017-07-02 22:17:33 +02:00
Florian Bruhin
c8c9536beb
Fix completion stuff
2017-07-02 22:17:33 +02:00
Florian Bruhin
8c1b5f0581
Fix up background_tabs, favicon_show and some custom config magic
2017-07-02 22:17:33 +02:00
Florian Bruhin
1f508d9d8f
Fix config getters
2017-07-02 22:17:33 +02:00
Florian Bruhin
b9aa5d0e4e
Fix valid_values initing from configdata
2017-07-02 22:17:33 +02:00
Florian Bruhin
fcc0b3e8c0
Fix tab indicator width
2017-07-02 22:17:33 +02:00
Florian Bruhin
269e9d69e0
Improve typechecking message
2017-07-02 22:17:33 +02:00
Florian Bruhin
500ad8b00f
Use strings for Perc configtypes
2017-07-02 22:17:33 +02:00
Florian Bruhin
e6275ab561
Fix startpage
2017-07-02 22:17:33 +02:00
Florian Bruhin
298553d48d
Fix QssColor
2017-07-02 22:17:33 +02:00
Florian Bruhin
61fe40f4a1
Initial stylesheet refactoring for new config
2017-07-02 22:17:33 +02:00
Florian Bruhin
e2b0fdf8aa
Fix VerticalPosition and NewTabPosition
...
Make them string so they have to_py() defined.
2017-07-02 22:17:33 +02:00
Florian Bruhin
a3d4822b9f
Fix up adblock settings
2017-07-02 22:17:33 +02:00
Florian Bruhin
26bf588fad
Fix _validate_valid_values
2017-07-02 22:17:33 +02:00
Florian Bruhin
231b7303f5
Use null for empty config values.
2017-07-02 22:17:33 +02:00
Florian Bruhin
af134eb861
Refactor websettings for new config
2017-07-02 22:17:33 +02:00
Florian Bruhin
129ee33ffb
Refactor former network section
2017-07-02 22:17:33 +02:00
Florian Bruhin
f1d81d86aa
Fix configtypes _basic_validation
2017-07-02 22:17:33 +02:00
Florian Bruhin
aa6f229e6b
Add utils.yaml_{load,dump}
2017-07-02 22:17:33 +02:00
Florian Bruhin
1a6511c7a8
Refactor most stuff using config.val.ui
2017-07-02 22:17:33 +02:00
Florian Bruhin
1ed8df8903
Fix various typos/bugs
2017-07-02 22:17:33 +02:00
Florian Bruhin
3e3685b68b
Initial configexc refactoring
2017-07-02 22:17:33 +02:00
Florian Bruhin
5ab2c89a37
Adjust config.change_filter
2017-07-02 22:17:33 +02:00
Florian Bruhin
b5110b07f0
Fix newconfig init
2017-07-02 22:17:33 +02:00
Florian Bruhin
3009e5eebe
Fix configtypes mistakes
2017-07-02 22:17:33 +02:00
Florian Bruhin
8de0445661
Move UserAgent to configdata
2017-07-02 22:17:33 +02:00
Florian Bruhin
616aad84d8
More configtypes refactoring
2017-07-02 22:17:33 +02:00
Florian Bruhin
5ec47da127
Get rid of configtypes.AutoSearch and IgnoreCase
2017-07-02 22:17:33 +02:00
Florian Bruhin
921d02e4d3
First portion of configtypes refactoring
2017-07-02 22:17:33 +02:00
Florian Bruhin
7e52eb7b0e
Initial work on new configdata
2017-07-02 22:17:33 +02:00
Florian Bruhin
c2e75bf2fd
Initial conversion to new config syntax
2017-07-02 22:17:33 +02:00
Florian Bruhin
938946c48b
configdata: Add check for shadowing keys
2017-07-02 22:17:33 +02:00
Florian Bruhin
8b9b750f8f
configdata: Rename some options for consistency
2017-07-02 22:17:33 +02:00
Florian Bruhin
c856f6d97b
Initial work on new pylint checker
2017-07-02 22:17:33 +02:00
Florian Bruhin
52f6ea2525
Initial parsing
2017-07-02 22:17:33 +02:00
Florian Bruhin
f965805099
First setting renames
2017-07-02 22:17:33 +02:00
Florian Bruhin
836395cdb1
Add configdata.yml
2017-07-02 22:17:33 +02:00
Florian Bruhin
00c8d8da34
Initial stubbing out of a new config
2017-07-02 22:17:33 +02:00
Florian Bruhin
2f26490536
Remove FIXME
2017-07-02 14:03:38 +02:00
Florian Bruhin
69337ed264
Update tox default envlist
2017-07-02 13:07:13 +02:00
Jay Kamat
2fbadc46d2
Remove error when count is invalid to :tab-pin
2017-06-30 09:57:39 -07:00
Florian Bruhin
9cedaa60bc
Check for PyQt5.QtQml in earlyinit
2017-06-30 14:56:02 +02:00
Florian Bruhin
e4a054d34e
Stop marking QtWebEngine as experimental
2017-06-30 10:42:33 +02:00
Jay Kamat
596dee69d6
Clean up pin_tab
...
Also add a test case for :pin-tab with an invalid count
2017-06-29 20:04:02 -07:00
Ryan Roden-Corrent
22880926b1
Fix WebHistoryStub for delete argument change
2017-06-29 21:46:09 -04:00
Ryan Roden-Corrent
c1f5e77fc6
Implement "Current" completion for bind.
...
When binding a key, the first row will be the current binding if the key
is already bound. This should make it easier for users to tell when they
are binding a key that is already bound, and what it is bound to.
2017-06-29 21:44:44 -04:00
Ryan Roden-Corrent
1e489325c4
Assert if index is invalid in delete_cur_item.
...
CompletionView already checks the index, so an error here shouldn't
happen.
2017-06-29 20:58:15 -04:00
Ryan Roden-Corrent
fd07c571e5
Store pattern in completion view, not model.
...
The pattern property is used for highlighting. It is purely
display-related, so it should be in the view rather than the model.
2017-06-29 20:56:39 -04:00
Ryan Roden-Corrent
262b028ee9
Match error message in lineparser test.
2017-06-29 20:49:05 -04:00
Ryan Roden-Corrent
c007f592b3
Use more intuitive argument order in sql.delete.
2017-06-29 20:43:42 -04:00
Florian Bruhin
0d5a33ef2a
Update changelog
2017-06-29 23:21:10 +02:00
Florian Bruhin
d132b6ed71
Fix :scroll-page with --bottom-navigate on QtWebEngine
...
There were two issues here:
- The comparison was backwards, causing scroller.at_bottom() to always return
true.
- When zoomed in, jsret['px']['y'] can be a float, which means we can be
slightly off when checking the difference - math.ceil() fixes that.
2017-06-29 22:39:48 +02:00
Ryan Roden-Corrent
9c0c174534
Use builtin SortFilter regex functionality.
...
With the new completion API, we no longer need a custom filterAcceptsRow
function. This was necessary to handle the tree structure of the model,
but now we use a separate QSortFilterProxyModel for each category, so
the data it filters is flat. We can simplify the code by using the
builtin setFilterRegExp.
This changes the behavior a little, as now all list categories filter on
all columns. This should be beneficial if anything. For example, help
topics are now filtered on description in addition to name.
This also seems to slightly speed up filtering, according to the url
model benchmark.
Before:
----------------------------------------------- benchmark: 1 tests ----------------------------------------------
Name (time in s) Min Max Mean StdDev Median IQR Outliers(*) Rounds Iterations
-----------------------------------------------------------------------------------------------------------------
test_url_completion_benchmark 1.2806 1.3817 1.3195 0.0390 1.3068 0.0487 1;0 5 1
-----------------------------------------------------------------------------------------------------------------
After:
----------------------------------------------- benchmark: 1 tests ----------------------------------------------
Name (time in s) Min Max Mean StdDev Median IQR Outliers(*) Rounds Iterations
-----------------------------------------------------------------------------------------------------------------
test_url_completion_benchmark 1.1183 1.1508 1.1281 0.0132 1.1241 0.0142 1;0 5 1
-----------------------------------------------------------------------------------------------------------------
2017-06-29 12:44:02 -04:00
Jay Kamat
302961a86a
Refactor set_tab_pinned to take a tab widget.
...
See #2759
2017-06-28 22:22:33 -07:00
Florian Bruhin
f136f78802
Fix :undo documentation
...
See #2759
2017-06-28 22:41:08 +02:00
Florian Bruhin
a98a6ac0c8
travis: Write a sane sources.list
...
Also updates nodejs
2017-06-28 21:42:50 +02:00
Jay Kamat
4d1dbe11e8
Prompt when closing a pinned tab via the mouse
...
Closes #2761
2017-06-27 19:03:13 -07:00
Ryan Roden-Corrent
6ac940fa32
Fix pylint/coverage errors.
...
Ensure 100% coverage for sqlcategory and history, and fix some linter
errors
2017-06-27 12:33:51 -04:00
Ryan Roden-Corrent
f06880c6e2
Fix history completion delete function.
...
In order to update SqlQueryModel's rowCount after re-running the query,
we must call setQuery again.
2017-06-27 08:42:10 -04:00
Iordanis Grigoriou
0a09758be1
Add file path to download
2017-06-27 12:21:25 +02:00
Iordanis Grigoriou
5e2be8a44a
Fix PEP-8 issue
2017-06-27 08:25:59 +02:00
Iordanis Grigoriou
8a5b48d374
Add suggested_fn argument to get_request
2017-06-26 23:21:32 +02:00
Florian Bruhin
5ec94f96fd
Allow a trailing % for :zoom
2017-06-26 21:51:35 +02:00
Florian Bruhin
92d5f6c41d
Ignore _remove_tab for crashed deleted tabs
2017-06-26 20:50:17 +02:00
Florian Bruhin
24caaea54d
Handle OSError in SessionManager.delete
2017-06-26 19:52:07 +02:00
Florian Bruhin
130be2aedc
Handle OSError when trying to delete autosave session
2017-06-26 19:47:54 +02:00
Ryan Roden-Corrent
62a849c2db
Fix bugs introduced in test_models
2017-06-26 12:41:48 -04:00
Florian Bruhin
736dd77a6e
Regenerate authors
2017-06-26 18:05:25 +02:00
Florian Bruhin
8a7610206e
Merge branch 'master' of https://github.com/jupart/qutebrowser
2017-06-26 18:04:57 +02:00
pyup-bot
78c93e1225
Update pytest-rerunfailures from 2.1.0 to 2.2
2017-06-26 15:47:14 +02:00
pyup-bot
e8dac08a35
Update cheroot from 5.5.2 to 5.7.0
2017-06-26 15:47:13 +02:00
pyup-bot
6d1775fcd6
Update pylint from 1.7.1 to 1.7.2
2017-06-26 15:47:11 +02:00
Ryan Roden-Corrent
46161c3af0
Refactor delete_cur_item.
...
Taking the completion widget as an argument was overly complex.
The process now looks like:
1. CompletionView gets deletion request
2. CompletionView passes selected index to CompletionModel
3. CompletionModel passes the row data to the owning category
4. The category runs its custom completion function.
This also fixes a bug. With the switch to the hybrid (list/sql)
completion model, the view was no longer updating when items were
deleted. This fixes that by ensuring the correct signals are emitted.
The SQL model must be refreshed by running the query. We could try using
a SqlTableModel so we can call removeRows instead.
The test for deleting a url fails because qmodeltester claims the length
of the query model is still 3.
2017-06-26 08:57:36 -04:00
Iordanis Grigoriou
a24d7f6686
Use page title for filename with :download
2017-06-26 12:25:03 +02:00
Ryan Roden-Corrent
866f4653c7
Fix spelling existant -> existent.
2017-06-25 22:14:38 -04:00
Justin Partain
cb67a911fa
Remove recommendation to use '-c' command line argument, which doesn't exist
2017-06-21 10:56:25 -04:00
Marius
df6b8b7ff5
Update tabwidget.py
2017-06-21 09:03:15 +02:00
Ryan Roden-Corrent
6080830a8b
Fix outdated docstring and pylint error.
2017-06-20 22:25:09 -04:00
Ryan Roden-Corrent
b722cc1dec
Pass invalid index to [can]FetchMore.
...
For QSqlQueryModel, the argument should always be an invalid index:
http://doc.qt.io/qt-5/qsqlquerymodel.html#canFetchMore
For a QStandardItemModel, it doesn't matter. Either way, passing the
top-level parent index was wrong.
2017-06-20 22:11:53 -04:00
Ryan Roden-Corrent
63cb88a0f4
Use _cat_from_index in completionmodel.data.
...
Keep all the category lookup inside _cat_from_idx for easier refactoring
if the organization ever changes.
2017-06-20 22:08:23 -04:00
Ryan Roden-Corrent
0f585eda4f
Bring history.py back to 100% coverage.
...
The code of debug_dump_history was tweaked to handle a possible
OSException that can be thrown by open, which I noticed while trying to
test it.
2017-06-20 21:41:43 -04:00
Marius
f3a2b84033
remove space
2017-06-20 23:58:23 +02:00
Marius
dfedddf0bd
Wrap scroll button workaround in try/except
...
for older pyqt5 versions (5.2.1)
2017-06-20 23:55:11 +02:00
Marius
6e166d139a
Fix alignment of scroll buttons in tab bar
2017-06-20 21:18:13 +02:00
Florian Bruhin
cb5cd1a910
Remove old test_commands.py
2017-06-20 15:20:32 +02:00
Florian Bruhin
994e8c692f
Merge different FakeTabbedBrowser objects
2017-06-20 15:19:53 +02:00
Florian Bruhin
096b0a7a37
Remove unused import
2017-06-20 15:03:42 +02:00
Florian Bruhin
750ef834dc
Make PyOpenGL a required dependency
...
Looks like the "black screen" issue isn't the only thing going wrong, some
people even report segfaults since the vendor check was added.
2017-06-20 13:05:53 +02:00
Florian Bruhin
73940a64bb
Update docs
2017-06-20 12:46:55 +02:00
Florian Bruhin
cf3c7266aa
Make show_error keyword-only
2017-06-20 12:45:36 +02:00
Florian Bruhin
06d4a24bd1
Merge branch 'master' of https://github.com/iordanisg/qutebrowser
2017-06-20 12:45:21 +02:00
Florian Bruhin
3a7a3909d7
Merge remote-tracking branch 'origin/pyup-scheduled-update-06-19-2017'
2017-06-20 12:44:05 +02:00
Florian Bruhin
038dcff4ba
Ignore common URL issues while importing history
...
See #2646 .
This ignores the "corrupted" Apple-lookalike URLs, comments and data: URLs.
2017-06-20 12:19:14 +02:00
Florian Bruhin
f838eb1bdc
Use named formatting for queries in sql.py
2017-06-20 12:11:41 +02:00
Florian Bruhin
da875755d1
Add spaces after commas in SQL queries
2017-06-20 12:06:17 +02:00
Florian Bruhin
c1776bbf9d
Add error message when query failed to prepare
2017-06-20 12:05:40 +02:00
Florian Bruhin
29ce1b3811
Add column order in SqlTable._insert_query
...
_insert_query gets called with a query and dict of values such as:
{'val': 1, 'lucky': False, 'name': 'one'}
Via bindValues(), we only assign a placeholder in the query string to a value,
so we get a query with bindings like:
INSERT INTO Foo values(:lucky,:val,:name)
{':name': 'one', ':val': 1, ':lucky': False}
So what we're executing is something like:
INSERT INTO Foo values(false,1,"one")
However, if the column order in the database doesn't happen to be the order
we're passing the values in, we get the wrong values in the wrong columns.
Instead, we now do:
INSERT INTO Foo (lucky, val, name) values(false,1,"one")
Which inserts the values in the order we intended.
With Python 3.6, this just happened to work before because we always passed the
keyword arguments in the table column order, and in 3.6 dicts
(and thus **kwargs) happen to be ordered:
https://mail.python.org/pipermail/python-dev/2016-September/146327.html
2017-06-20 12:03:43 +02:00
Florian Bruhin
27c6aa00bd
travis: Add group: edge
2017-06-19 18:15:35 +02:00
Iordanis Grigoriou
f0ff02fcb2
Avoid throwing exception when no last focused tab exists
2017-06-19 15:48:17 +02:00
pyup-bot
aa460a7abd
Update hypothesis from 3.11.3 to 3.11.6
2017-06-19 15:46:21 +02:00
pyup-bot
0306c3e898
Update cheroot from 5.5.0 to 5.5.2
2017-06-19 15:46:19 +02:00
pyup-bot
61737f95a9
Update requests from 2.17.3 to 2.18.1
2017-06-19 15:46:18 +02:00
pyup-bot
5913f92b19
Update requests from 2.17.3 to 2.18.1
2017-06-19 15:46:16 +02:00
pyup-bot
86fffb5462
Update requests from 2.17.3 to 2.18.1
2017-06-19 15:46:15 +02:00
Florian Bruhin
3053ed01e4
backers: Add Bostan
2017-06-19 15:30:09 +02:00
Florian Bruhin
2adb57f263
travis: Remove the archlinux-ng docker env
...
Archlinux merged qt5-webkit-ng into qt5-webkit
2017-06-19 14:17:56 +02:00
Florian Bruhin
7062f9e060
Update qt5-webkit-ng docs for Archlinux
2017-06-19 13:44:41 +02:00
Florian Bruhin
4296a61b9a
tests: Clean up check_history
2017-06-19 07:44:11 -04:00
Florian Bruhin
9f94f28181
Use :memory: for an in-memory database
...
Using an empty string for the same purpose only started working in some
recent-ish Qt/sqlite/? version, so using --version failed on Ubuntu Trusty.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
051d2665f3
Fix signal type error in CompletionView.
...
On Travis CI we are sometimes seeing:
```
CompletionView.selection_changed[str].emit():
argument 1 has unexpected type 'int'
```
Cast the data to a string before emitting it just to be safe.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
891a6bcf14
Fix flake8 errors
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
c7a18a8b8d
Fix tests for recent sql changes
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
4e87773d89
Use a dict instead of named params for insert.
...
This allows replace to be a named parameter and allows consolidating
some duplicate code between various insert methods.
This also fixes some tests that broke because batch insert was broken.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
e436f48164
Small sql fixes.
...
- Remove unused SqlTable.Entry
- Fix wording of two log messages
- Remove unused import
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
f4f52ee204
Remove history.Entry.
...
No longer needed with sql backend. Query results build their own
namedtuple from the returned columns, and inserting new entries is just
done with named parameters.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
1fe1813431
Fix pylint errors.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
cf23f42b99
Use splitlines in test_history_bdd again.
...
Just using read() returns a single string, and iterating over that
iterates over each character.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
679e001a48
Separate sqlcategory title from table name.
...
Also fix a number of sql/completion tests that were failing.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
61a1709141
Fix completion selection bug.
...
Fix the issue where pressing `o<esc>o` would show a url completion
dialog where attempting to <Tab> select items would do nothing but show
a Qt warning.
The fix is to ensure we set _last_completion_func to None whenever we
clear completion (there was a case I missed).
It also ensures we always delete the old model and adds a safety to
prevent deleting an in-use model is set_model is called with the current
model.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
fa39b82b3c
Backup old history file after import.
...
Instead of removing it, move it to history.bak.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
a6a9ad72f9
Fix test_history_interface.
...
This was still using a history dict instead of SQL history.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
22b7b21d5a
Use named placeholders for sql queries.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
862f8d3188
Always return col 0 for index parent.
...
This was changed during code review but was causing Qt errors while
TAB-completing in the selection view:
08:42:34 WARNING qt Unknown module:none:0 Can't select indexes from different model or with different parents
2017-06-19 07:44:11 -04:00
Florian Bruhin
18cd8ba0b6
Add indices for HistoryAtimeIndex and CompletionHistoryAtimeIndex
...
before
------
sqlite> SELECT * FROM History where not redirect and not url like "qute://%" and atime > ? and atime <= ? ORDER BY atime desc;
Run Time: real 0.072 user 0.063334 sys 0.010000
sqlite> explain query plan SELECT * FROM History where not redirect and not url like "qute://%" and atime > ? and atime <= ? ORDER BY atime desc;
0|0|0|SCAN TABLE History
0|0|0|USE TEMP B-TREE FOR ORDER BY
sqlite> explain query plan select url, title, strftime('%Y-%m-%d', last_atime, 'unixepoch') from CompletionHistory where (url like "%qute%" or title like "%qute%") order by last_atime desc;
0|0|0|SCAN TABLE CompletionHistory
0|0|0|USE TEMP B-TREE FOR ORDER BY
after
-----
sqlite> SELECT * FROM History where not redirect and not url like "qute://%" and atime > ? and atime <= ? ORDER BY atime desc;
Run Time: real 0.000 user 0.000000 sys 0.000000
sqlite> explain query plan SELECT * FROM History where not redirect and not url like "qute://%" and atime > ? and atime <= ? ORDER BY atime desc;
0|0|0|SEARCH TABLE History USING INDEX AtimeIndex (atime>? AND atime<?)
sqlite> explain query plan select url, title, strftime('%Y-%m-%d', last_atime, 'unixepoch') from CompletionHistory where (url like "%qute%" or title like "%qute%") order by last_atime desc;
0|0|0|SCAN TABLE CompletionHistory USING INDEX CompletionAtimeIndex
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
3a4ef09f58
More sql code review fixes
2017-06-19 07:44:11 -04:00
Florian Bruhin
9b0395db08
Add an lru cache for WebHistoryInterface.historyContains
...
When loading heise.de, for some crazy reason QtWebKit calls historyContains
about 16'000 times.
With this cache (which we simply clear when *any* page has been loaded, as then
the links which have been visited can change), that's down to 250 or so...
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
6fc61d12fc
Assorted small fixes for sql code review.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
feed9c8936
Better exception handling in history.
...
- Show an error message when import fails, not a generic crash dialog
- Raise CommandError when debug-dump-history fails
- Check that the path exists for debug-dump-history
2017-06-19 07:44:11 -04:00
Florian Bruhin
6ce52f39ae
Add debug timings for SQL
2017-06-19 07:44:11 -04:00
Florian Bruhin
57d96a4512
Add a CompletionHistory instead of HistoryVisits table
2017-06-19 07:44:11 -04:00
Florian Bruhin
c64b7d00e6
Add separate table for history visits
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
7f27603772
Fix columns_to_filter for sql category.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
389e1b0178
Fix bad objreg reference in app.py.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
f8325cbbc1
Remove print statement
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
309b6ba32c
Move _import_history to history.py.
...
Also adjusts the history import test to operate at a higher level and
ensure the old text file is removed (or isn't, in the case of an error).
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
ea0b3eee05
Use full, not partial index for history.
...
historyContains includes redirect urls, so we actually don't want a
partial index here.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
478a719f77
Use a prepared query for historyContains.
...
This is called often, hopefully a prepared query will speed it up.
This also modifies Query.run to return self for easier chaining, so you
can use `query.run.value()` instead of `query.run` ; query.value()`.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
5b827cf86a
Fix typo in sql exception handling
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
6a0fc5afd2
Create a SQL index on History.url.
...
This will hopefully speed up historyContains but does not seem to speed
up the completion query, unfortunately.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
565ba23f8c
Don't instantiate completion models nedlessly.
...
For real this time. A mistake on the last commit like this meant models
were still spuriously instantiated.
Now that the completion model is reused, the layoutChanged signal needs
to be forwarded through, otherwise the view will not update.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
42243d3d97
Add more performance logging to completion.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
a01c76db54
Remove 'group by' from url completion query.
...
This seemed to have a significant performance impact. Removing it means
that instead of just seeing the most recent atime for a given url, you
will see multiple entries.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
c297f047d2
Don't regenerate completion model needlessly.
...
If the completion model would stay the same, just keep it and update the
filter pattern rather than instantiating a new model each time the
pattern changes.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
2cd02be7b1
Remove CompletionModel.columns_to_filter.
...
Instead set this on inidividual categories, as that is where it actually
gets used. This makes it easier for SqlCompletionCategory to reuse a
prepared query (as it gets the filter field names in its constructor).
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
8fb6f45bec
Don't set pattern in SqlCategory constructor.
...
This will be called by the Completer after construction anyways, this
was a duplicate call that could be expensive.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
cf89ffa971
Fix pylint/flake8 errors
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
2c501f7fb7
Fix url completion benchmark.
...
Still had old code from pre-SQL era.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
39b561a182
Fix BaseLineParser::test_double_open.
...
Don't tie the test to a particular error message. Ths failed because a
typo was fixed (AppendLineParser -> LineParser).
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
b1b521e0c2
Fix two history tests added recently.
...
These were added on master and needed to be adjusted slightly for the
new history check (which doesn't rely on reading a history file
anymore).
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
e67da51662
Use prepared SQL queries.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
20000088de
Add debug-dump-history and fix sql history tests.
...
Trying to read from the sql database from another process was flaky.
This adds a debug-dump-history command which is used by the history BDD
tests to validate the history contents.
It outputs history in the old pre-SQL text format, so it might be
useful for those who want to manipulate their history as text.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
87643040a4
Fix test_history for python < 3.6.
...
Mock.assert_called is only in python 3.6. For earlier versions we must
use `assert m.called`.
Weird errors only appearing in CI, trying to debug...
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
e201a42383
Fix eslint errors
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
9b25b7ee5d
Fix misspelling of 'occurs'
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
119c33ac32
Remove base.py from check_coverage.
...
This module no longer exists.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
882da71397
Remove unused imports
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
eb61269068
Fix qute://history javascript for SQL.
...
Returning "next" was no longer possible as the SQL query does not fetch
more items than necessary. This is solved by using a start time, a
limit, and an offset. The offset is needed to prevent fetching duplicate
items if multiple entries have the same timestamp.
Two of the history tests that relied on qute://history were changed to
rely on qute://history/data instead to make them less failure-prone.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
0aa0478327
Use EXISTS for SqlTable.contains.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
71191f10a2
Only complete most recent atime for url.
...
The history completion query is extended to pick only the most recent item for
a given url.
The tests in test_models now check for ordering of elements.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
9d4888a772
Optimize qute://history for SQL backend.
...
The old implementation was looping through the whole history list, which for
SQL was selecting every row in the database. The history benchmark was taking
~2s. If this is rewritten as a specialized SQL query, the benchmark takes
~10ms, an order of magnitude faster than the original non-SQL implementation.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
784d9bb043
Remove code rendered dead by sql implementation.
...
Vulture exposed the following dead code:
- AppendLineParse was only used for reading the history text file, which is now
a sql database (and the import code for the old text file is simpler and does
not need a complex line parser)
- async_read_done is no longer used as importing the history text file is
synchronous (and should only happen once)
- config._init_key_config is unused as it was moved to keyconf.init
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
a8ed9f1c2f
Fix qute://version sql init bug.
...
Calling sql.init() in version.version() would replace the existing sql
connection and cause a crash when accessed by opening qute://version.
Now version relies on sql already being initted, and app.py inits sql early if
the --version arg is given.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
231bbe7c2b
Fix race condition on history tests.
...
Two history end2end tests are failing because sqlite is not flushing to disk in
time to be read by the test process. My understanding is that sqlite should
take an exclusive lock while writing, so it is difficult to understand why this
is happening. This can be fixed by adding a delay, but that seems flaky.
I'm fixing it by checking qute://history instead of reading the database file.
See:
https://github.com/qutebrowser/qutebrowser/pull/2295#issuecomment-292786138
and the following discussion.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
44080b8ad4
Fix flake8 errors in test_history
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
e661fb7446
Fix test_history.
...
History doesn't depend on standarddir anymore, the history file path get passed
by app.py.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
f110cf4d53
Fix long hang after importing history.
...
Turns out historyContains was getting called for the webkit backend multiple
times when the browser starts. This was calling `url in history`, which was
enumerating the entire history as `__contains__` was not defined.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
024386d189
Fail on history file parsing errors.
...
Instead of skipping bad history lines during the import to sql, fail hard. We
don't want to delete the user's old history file if we couldn't parse all of
the lines.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
6412c88277
Clean up history module.
...
Eliminate out-of-date docstring and remove an unused signal.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
3e63b62d6e
Fix pylint/flake8 for sql work.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
8ff45331df
Clean up sql implementation.
...
Now that sql is only used for history (not quickmarks/bookmarks) a number of
functions are no longer needed. In addition, primary key support was removed as
we actually need to support multiple entries for the same url with different
access times. The completion model will have to handle this by selecting
something like (url, title, max(atime)).
This also fixes up a number of tests that were broken with the last few
sql-related commits.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
80647b062a
Convert old history file to sqlite.
...
If qutebrowser detects a history text file when it starts
(~/.local/share/qutebrowser/history by default on Linux), it will import this
file into the new sqlite database, then delete it.
The read is done as a coroutine as it can take some time.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
de5be0dc5a
Store history in an on-disk sqlite database.
...
Instead of reading sqlite history from a file and storing it in an in-memory
database, just directly use an on-disk database. This resolves #755 , where
history entries don't pop in to the completion menu immediately as they are
still being read asynchronously for a few seconds after the browser starts.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
b47c3b6a60
Test deleting a history entry from completion.
...
Deleting a history entry should do nothing, but we want a test to ensure this
and get 100% branch coverage for urlmodel.
This also un-skips the bookmark/quickmark tests.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
2eea115b3a
Rename sqlcategory and add to perfect_files.
...
There was a typo in the file name.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
7d04f155c8
Add missing docstring.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
4296eed429
Fix test_history cleanup failure.
...
The test may be skipped if the PyQt5.QtWebKitWidget import fails, but the
cleanup was still running and trying to delete a nonexistant web-history.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
93e0bfa410
Fix tests after sql completion rebase.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
5dce6fa494
Fix pylint/flake8 errors
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
f95dff4d9e
Decouple categories from completionmodel.
...
Instead of add_list and add_sqltable, the completion model now supports
add_category, and callees either pass in a SqlCategory or ListCategory. This
makes unit testing much easier.
This also folds CompletionFilterModel into the ListCategory class.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
ce3c555712
Use list completion for bookmarks/quickmarks.
...
The RFC on moving from plaintext to SQL storage (#2340 ) showed that many would
be upset if bookmarks and quickmarks were no longer stored in plaintext.
This commit uses list-based completion for quickmarks and bookmarks. Now the
history storage can be moved from plaintext to an on-disk SQL database while
leaving bookmarks and quickmarks as-is.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
1d54688b0b
Revert "Use SQL completer for quickmarks/bookmarks."
...
This reverts commit bcf1520132df84552f69419f3b1cbf3ede20ccad.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
80619c88b3
Revert "Use SQL for quickmark/bookmark storage."
...
This reverts commit fa1ebb03b70dfff4ac64038e67d9bab04b984de5.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
e3a33ca427
Implement a hybrid list/sql completion model.
...
Now all completion models are of a single type called CompletionModel.
This model combines one or more categories. A category can either be a
ListCategory or a SqlCategory.
This simplifies the API, and will allow the use of models that combine simple
list-based and sql sources. This is important for two reasons:
- Adding searchengines to url completion
- Using an on-disk sqlite database for history, while keeping bookmarks and
quickmars as text files.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
921211bbaa
Remove web-history-max-items.
...
This was a performance optimization that shouldn't be needed with the new SQL
history backend. This also removes support for the LIMIT feature from SqlTable
as it only existed to support web-history-max-items.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
99c9b2d396
Fix two small mistakes after SQL code review.
...
urlmodel is now sorted, so the test had to be adjusted. Also remove one unused
import.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
c4c5723a61
Sort history completion entries by atime.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
56f3b3a027
Small review fixups for SQL implementation.
...
Respond to the low-hanging code review fruit:
- Clean up some comments
- Remove an acidentally added duplicate init_autosave
- Combine two test_history tests
- Move test_init cleanup into a fixture to ensure it gets called.
- Name the _ argument of bind(_) to _key
- Ensure index is valid for first_item/last_item
- Move SqlException to top of module
- Rename test_index to test_getitem
- Return QItemFlags.None instead of None
- Fix copyright dates (its 2017 now!)
- Use * to force some args to be keyword-only
- Make some returns explicit
- Add sql to LOGGER_NAMES
- Add a comment to explain the sql escape statement
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
3c676f9562
Fix pylint/flake8 errors for SQL work.
2017-06-19 07:44:11 -04:00
Ryan Roden-Corrent
a050cb94f6
Report sqlite version with --version.
2017-06-19 07:44:11 -04:00
Florian Bruhin
df0bd23d79
Make pylint shut up about test_version
2017-06-19 13:42:19 +02:00
Ryan Roden-Corrent
4968590075
Mention needed SQL packages in INSTALL.
...
With the new SQL completion backend, some distros must install sql packages.
This also removes trailing whitespace from one line.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
c6645d47ba
Remove newest_slice and StatusBar._option.
...
newest_slice is no longer needed after the completion refactor. Now that
history is based on the SQL backend, LIMIT is used instead.
StatusBar._option is not used, though I'm not sure why vulture only caught it
now.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
1474e38eec
Add urlmodel to perfect_files
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
6a8b1d51fa
Avoid config -> configmodel circular import.
...
Avoid the config dependency by using objreg.get('config') instead of
config.get.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
6cc2095221
Avoid keyconf circular import.
...
The new function-based completion API introduced a circular import:
config -> keyconf -> miscmodels -> config.
config only depended on keyconf so it could initialize it as part of
config.init. This can be resolved by moving this to keyconf.init and
initializing keyconf as part of app.init.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
fc5fd6096a
Revert "Initialize SQL for two failing tests."
...
This reverts commit 386e227ce7534f1e427db7ba6d4e53dc153a49f3.
The problem was really state leakage, initializing sql for these tests isn't
necessary.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
788babbb61
Further prevent state leakage from test_init.
...
test_history.test_init also leaked state by leaving the instantiated history as
the parent of the QApp, which was causing test_debug to fail because it was
trying to dump the history object left from test_history.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
be38e181a8
Install libqt5sql5-sqlite for debian CI.
...
Needed for tests to pass with the new SQL dependency.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
d658378af3
Eliminate test interference from webkit history.
...
Initializing the qtwebkit history backend left some global state that was
leaking into other tests.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
21757a96a3
Add docstrings to SqlCompletionModel overrides.
...
Leaving QAbstractItemModel overrides undocumented made pylint angry.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
490250f5be
Initialize SQL for two failing tests.
...
test_selectors and test_get_all_objects were running fine on my machine, but
for some reason is failing with "Driver not loaded" on Travis. Let's try
initializing SQL and see what happens.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
be07107b1c
Fix end2end completion tests for SQL backend.
...
Change the logging to report the completion function name and have the end2end
tests check for this.
Remove the tests for realtime completion, as it was decided this is not an
important feature and the code is much simpler without it.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
6a04c4b3e8
Allow replacing quickmark with SQL backend.
...
This functionality was lost with the transition to SQL.
The user should be able to replace a quickmark if they answer 'yes' to the
prompt.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
02fb1a037c
Implement canFetchMore for SQL completion.
...
This just forwards canFetchMore and fetchMore to the underlying tables.
It seems to be returning True and fetching in some cases (with a large
history), so I guess it is useful?
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
ffd044b52b
Fix pylint and flake8 for SQL work.
...
Vanity commit. This also touches up a few comments.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
ea9217a61f
Fix qutescheme for new SQL backend.
...
The qute://history and qute://bookmarks handlers were added during my work, and
had to be adapted to the SQL-based history backend.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
0e650ad719
Return namedtuples from SqlTable.
...
Instead of returning a regular tuple and trying to remember which index maps to
which field, return named tuples that allow accessing the fields by name.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
d89898ef7d
Implement delete_cur_item for sql completion.
...
This re-enables bookmark/quickmark deletion for url completions via the new SQL
interface.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
fe80878788
Implement custom where clause in SQL.
...
Allow categories to specify a WHERE clause that applies in addition to the
pattern filter. This allows the url completion model to filter out redirect
entries.
This also fixed the usage of ESCAPE so it applies to all the LIKE statements.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
9f27a9a5d7
Implement column selectors for sql completion.
...
A SQL completion category can now provide a customized column expression for
the select statement. This enables the url model to format timestamps, as well
as rearrange the name and url in the quickmark section.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
3f6f03e325
Respect web-history-max-items with SQL.
...
Use a LIMIT with the sql competion model to limit history entries as the old
completion implementation did.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
df995c02a3
Get rid of varargs in sql.run_query.
...
Things are clearer when just passing a list.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
b70d5ba901
Use QSqlQueryModel instead of QSqlTableModel.
...
This allows setting the query as a QSqlQuery instead of a string, which allows:
- Escaping quotes
- Using LIMIT (needed for history-max-items)
- Using ORDER BY (needed for sorting history)
- SELECTing columns (needed for quickmark completion)
- Creating a custom select (needed for history timestamp formatting)
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
52d7d1df0c
Use SQL completer for quickmarks/bookmarks.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
839d49a8ac
Fix up pylint/flake8 for completion revamp.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
5bd047b70b
Fix CompletionView.completion_item_del for new API.
...
The new function based completion models work a little differently so the view
needed slightly different error handling.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
b381148e06
Unittest CompletionView.completion_item_del.
...
There were no unit tests for this and the various ways it can fail, and I'm
about to screw with it a bit.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
c3155afc21
Rethrow KeyError as DoesNotExistError in urlmarks.
...
From @TheCompiler:
To expand on this: I think it's fine to use KeyError on a lower level, i.e.
with the SqlTable object with a dict-like interface. However, on this higher
level, I think it makes sense to re-raise them as more specific exceptions.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
a774647c26
Get test_models mostly working again.
...
- Adjust _check_completions to work for CompletionModel and SqlCompletionModel
- Move sql initialization into a reusable fixture
- Remove the bookmark/quickmark/history stubs, as they're now handled by sql
- Disable quickmark/bookmark model tests until their completion is ported to
sql.
- Disable urlmodel tests for features that have to be implemented in SQL:
- LIMIT (for history-max-items)
- Configurable column order (for quickmarks)
- Configurable formatting (for timestamp-format
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
d4f2a70f83
Slightly simplify CompletionModel.new_item.
...
There was no need to have a branch based on whether the misc value was None or
not.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
93f8984987
Install pyqt5.qtsql bindings for debian CI.
...
SQL is included in the Archlinux pyqt5 package, but not in Debian.
We need this so the debian-based CI builds will pass with the new
sql-based completion implementation.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
3005374ada
Simplify sorting logic in sortfilter.
...
For URL completion, time-based sorting is handled by the SQL model.
All the other models use simple alphabetical sorting. This allowed cleaning up
some logic in the sortfilter, removing DUMB_SORT, and removing the
completion.Role.sort.
This also removes the userdata completion field as it was only used in url
completion and is no longer necessary with the SQL model.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
acea0d3c67
Use SQL completion for the open command.
...
Now that history, bookmark, and quickmark storage are SQL-backed, use
a sql completion model to serve url completions.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
6e1ea89ca1
Implement SQL completion model.
...
This model wraps one or more SQL tables and exposes data in a tiered
manner that can be consumed by the tree view used for completion.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
93d81d96ce
Use SQL for quickmark/bookmark storage.
...
Store quickmarks and bookmarks in an in-memory sql database instead of a
python dict. Long-term storage is not affected, bookmarks and
quickmarks are still persisted in a text file.
The added and deleted signals were removed, as once sql completion
models are used the models will no longer need to update themselves.
This will set the stage for SQL-based history completion.
See #1765 .
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
9477a2eeb2
Use SQL for history storage.
...
The browser-wide in-memory web history is now stored in an in-memory sql
database instead of a python dict. Long-term storage is not affected, it
is still persisted in a text file of the same format.
This will set the stage for SQL-based history completion.
See #1765 .
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
f43f78c40f
Implement SQL interface.
...
When qutebrowser starts, it creates an in-memory sqlite database. One
can instantiate a SqlTable to create a new table in the database. The
object provides an interface to query and modify the table.
This intended to serve as the base class for the quickmark, bookmark,
and history manager objects in objreg. Instead of reading their data
into an in-memory dict, they will read into an in-memory sql table.
Eventually the completion models for history, bookmarks, and quickmarks
can be replaced with SqlQuery models for faster creation and filtering.
See #1765 .
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
3b30b42211
Remove completion.instances, usertypes.Completion.
...
The new completion API no longer needs either of these. Instead of
referencing an enum member, cmdutils.argument.completion now points to
a function that returnsthe desired completion model.
This vastly simplifies the addition of new completion types. Previously
it was necessary to define the new model as well as editing usertypes
and completion.models.instances. Now it is only necessary to define a
single function under completion.models.
This is the next step of Completion Model/View Revamping (#74 ).
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
b36cf0572d
Avoid potential circular import in config.py.
...
There was a circular import from
config -> keyconf -> miscmodels -> config.
This is resolved by scoping config's keyconf import to the one function
that uses it.
2017-06-19 07:42:12 -04:00
Ryan Roden-Corrent
08bb3f4f19
Implement completion models as functions.
...
First step of Completion Model/View revamping (#74 ). Rewrite the
completion models as functions that each return an instance of a
CompletionModel class.
Caching is removed from all models except the UrlModel. Models other
than the UrlModel can be generated very quickly so caching just adds
needless complexity and can lead to incorrect results if one forgets to
wire up a signal.
2017-06-19 07:42:12 -04:00
Florian Bruhin
40b949364e
Fix qute://backend-warning issues
...
We now set a title correctly, and don't crash if we find a Debian/Ubuntu without
version.
2017-06-19 13:37:00 +02:00
Florian Bruhin
bef372e5f5
Clear search on page load
...
Fixes #2728
2017-06-19 10:27:27 +02:00
Florian Bruhin
4ae8e247d0
Show 'legacy QtWebKit' in version output
2017-06-19 10:24:33 +02:00
Florian Bruhin
8191a5465a
Regenerate authors
2017-06-19 09:44:04 +02:00
Florian Bruhin
5bb63e67e0
Remove another stray #
2017-06-19 09:43:45 +02:00
Florian Bruhin
8494332c3a
Merge branch 'fix-tabbar-padding' of https://github.com/kmarius/qutebrowser
2017-06-19 09:43:26 +02:00
Florian Bruhin
df6c4c6e73
Fix earlyinit.qt_version issues
2017-06-19 09:42:49 +02:00
Florian Bruhin
9b5227b987
Improve test_version output
2017-06-19 09:06:18 +02:00
Florian Bruhin
6c534bea6b
Actually remove version import in earlyinit...
2017-06-19 08:59:26 +02:00
Florian Bruhin
fdba676933
Move version.qt_version() to earlyinit
...
Importing version in earlyinit is a bad idea, as it already pulls in a lot of
stuff we don't want.
2017-06-19 08:57:29 +02:00
Marius
de743732aa
remove # inside comment
2017-06-19 08:29:23 +02:00
Marius
ebd442ea95
add needed parens and remove trailing whitespace
2017-06-18 23:07:38 +02:00
Marius
68f172558b
fix line length
2017-06-18 22:44:06 +02:00
Marius
4b2bf12efa
Fix padding of remaining tabbar space with pinned tabs
2017-06-18 21:49:04 +02:00
Florian Bruhin
a5db21abe9
Update FAQ, fixes #2732
2017-06-17 15:47:39 +02:00
Florian Bruhin
695a2656fe
Rename webelem.js functions to match WebEngineElem
...
Fixes #2726
2017-06-16 23:14:17 +02:00
Florian Bruhin
9cc688ea2b
Fix initial tab sizing with vertical tabbar
2017-06-16 23:00:16 +02:00
Iordanis Grigoriou
e14477375b
Fix typo in test
2017-06-16 12:41:30 +02:00
Iordanis Grigoriou
f28d523225
Select the last focused tab when running ':tab-focus <current tab number>'
2017-06-16 12:28:56 +02:00
Florian Bruhin
b37d040d44
Add version check for 5.8 search segfault workaround
2017-06-14 10:57:32 +02:00
Florian Bruhin
2ffb10badf
Merge pull request #2715 from qutebrowser/pyup-scheduled-update-06-12-2017
...
Scheduled weekly dependency update for week 24
2017-06-14 10:44:11 +02:00
Florian Bruhin
54154e2434
Mark :stop test as flaky
...
Looks like the requests sometimes aren't updated, but I have no idea why.
2017-06-12 18:15:05 +02:00
Florian Bruhin
38d54cb112
Stabilize history tests
...
Get current URL right away in :view-source, and wait until source is shown in
the test.
2017-06-12 18:13:17 +02:00
pyup-bot
c9979d18db
Update pytest from 3.1.1 to 3.1.2
2017-06-12 15:45:19 +02:00
pyup-bot
a2878a382c
Update hypothesis from 3.11.1 to 3.11.3
2017-06-12 15:45:17 +02:00
pyup-bot
1deb6e53d0
Update chardet from 3.0.3 to 3.0.4
2017-06-12 15:45:16 +02:00
pyup-bot
227fd47f2f
Update chardet from 3.0.3 to 3.0.4
2017-06-12 15:45:15 +02:00
pyup-bot
62d56237bd
Update chardet from 3.0.3 to 3.0.4
2017-06-12 15:45:13 +02:00
Florian Bruhin
b687ede25c
Adjust eslintrc for eslint 4.0
2017-06-12 09:23:20 +02:00
Florian Bruhin
57fbfbd606
Set an initial window size for background tabs
...
When we open a background tab, it gets a hardcoded size (800x600 or so) because
it doesn't get resized by the layout yet.
By resizing it to the size it'll actually have later, we make sure scrolling to
an anchor in an background tab works, and JS also gets the correct size for
background tabs.
Fixes #1190
Fixes #2495
See #1417
2017-06-11 17:48:01 +02:00
Florian Bruhin
2e5620cac1
Try a different way of fixing userscript crashes
2017-06-11 14:44:19 +02:00
Florian Bruhin
a49adc6298
Revert "Work around userscript crash issue"
...
This reverts commit 73ff2afb3f .
Doesn't seem to help, at least for pkill9...
2017-06-11 14:41:58 +02:00
Florian Bruhin
73ff2afb3f
Work around userscript crash issue
2017-06-11 13:17:40 +02:00
Florian Bruhin
89218c9d31
Improve error handling in version.opengl_vendor()
...
Not being able to get versionFunctions is now handled, and the cleanup is done
in a finally: block.
2017-06-09 23:14:34 +02:00
Florian Bruhin
9c851293ac
pyinstaller: Add PyQt5.QtOpenGL to hiddenimports
2017-06-09 21:50:52 +02:00
Florian Bruhin
ad260366ef
Remove ":messages without messages" test
...
We can never know for sure there aren't any messages - for example, on Travis we get a message about XDG_RUNTIME_DIR being unset on Qt 5.9.
2017-06-09 11:04:21 +02:00
Florian Bruhin
9f9061f146
Update docs
2017-06-09 11:04:04 +02:00
Florian Bruhin
b874432c69
Remove private browsing notes for QtWebKit-NG
2017-06-09 10:31:21 +02:00
Florian Bruhin
250da212cd
Adjust tests for new QtWebKit-NG
2017-06-09 10:28:41 +02:00
Florian Bruhin
d2c289b6a6
Adjust changelog
2017-06-08 14:18:40 +02:00
Florian Bruhin
6361a5bab2
Merge branch 'private_tag_tab_title' of https://github.com/craftyguy/qutebrowser
2017-06-08 14:17:43 +02:00
Florian Bruhin
56f1dfb9eb
Merge remote-tracking branch 'origin/pyup-update-isort-4.2.14-to-4.2.15'
2017-06-08 14:17:25 +02:00
Florian Bruhin
ddf4521305
Fix :messages tests
2017-06-08 14:16:30 +02:00
Florian Bruhin
c8d4ef13de
Adjust default :messages level
2017-06-08 12:35:21 +02:00
Florian Bruhin
63f6409fdb
Remove stray StatusBar._option
2017-06-08 12:29:07 +02:00
Clayton Craft
daa12ed435
Add private mode title format for tabs too
...
This continues the spirit of my previous PR and allows formatting tab
titles to designate when private mode is enabled. I didn't even realize
that tab title-format was a separate thing from window-title-format
(yes, it's in the name.. silly craftyguy), until now.
2017-06-07 08:17:03 -07:00
Florian Bruhin
7e09b7a707
manifest: Exclude all hidden files
2017-06-07 12:25:15 +02:00
Florian Bruhin
1123129dc4
Slow down pyup requirement updates
2017-06-07 11:19:17 +02:00
pyup-bot
b7cb852c1a
Update isort from 4.2.14 to 4.2.15
2017-06-07 09:50:12 +02:00
pyup-bot
dbea815c3a
Update isort from 4.2.14 to 4.2.15
2017-06-07 09:50:11 +02:00
Florian Bruhin
09baa08948
Remove colon from error page
2017-06-06 22:15:19 +02:00
Florian Bruhin
dd4fb87db6
Update docs
2017-06-06 18:25:42 +02:00
Florian Bruhin
8990513c1b
Merge commit '49b8737f7979fc878ba25aed94cc3e57f481ae3a' into craftyguy/private_tab_title
2017-06-06 18:23:51 +02:00
Florian Bruhin
8df0b063be
Get rid of utils.unused because it's unused
2017-06-06 17:04:21 +02:00
Clayton Craft
49b8737f79
Implement changing of tab title when privacy mode is enabled
2017-06-06 08:00:19 -07:00
Florian Bruhin
a5af98b063
Add a few tests for qutebrowser.is_ignored_chromium_message
2017-06-06 16:26:01 +02:00
Florian Bruhin
cb03fb7d80
Make process/thread ID optional for Chromium messages
...
Looks like at least on Travis they're not always there.
2017-06-06 16:18:53 +02:00
Florian Bruhin
dd490f85d8
Update docs
2017-06-06 16:18:15 +02:00
Florian Bruhin
6d175fbb4b
Get rid of configtypes.WebKitBytes
2017-06-06 16:17:44 +02:00
Florian Bruhin
f9b046d766
Get proper settings object in WebEngineElement._click_js
2017-06-06 16:15:25 +02:00
Florian Bruhin
a7413d7b4a
Remove stale getter
2017-06-06 15:59:42 +02:00
Florian Bruhin
1b0a125cf3
websettings: Improve errors when setting settings=...
2017-06-06 15:59:42 +02:00
Florian Bruhin
b1a0bc13f2
webkitsettings: Use self._get_settings in CookiePolicy._set
2017-06-06 15:59:42 +02:00
Florian Bruhin
30fe3ed328
Remove old websetting comments
2017-06-06 15:46:54 +02:00
Florian Bruhin
e17494c972
Cleanup
2017-06-06 15:25:21 +02:00
Florian Bruhin
9c9a5914b3
Changelog fixup
2017-06-06 14:50:57 +02:00
Florian Bruhin
0ca59f2184
Rename storage -> offline-web-application-storage to -cache
2017-06-06 14:50:57 +02:00
Florian Bruhin
c696723650
Merge storage -> offline-storage-database into local-storage setting
...
Looks like it's the same with QtWebEngine too - setting LocalStorageEnabled also
toggles WebSQL there.
2017-06-06 14:50:57 +02:00
Florian Bruhin
626d299a0d
Add webenginesettings.DefaultProfileSetter.__repr__
2017-06-06 14:50:57 +02:00
Florian Bruhin
93d21c376d
Regenerate docs
2017-06-06 14:50:57 +02:00
Florian Bruhin
2a32e26846
Get rid of various rarely customized settings
...
All those were customized by some <5 people in the past few years of crash
reports.
Closes #1751 .
See #2639 .
2017-06-06 14:50:57 +02:00
Florian Bruhin
1785b72393
Refactor websettings default handling
...
With per-domain settings, having a getter for a setting gets really complicated,
as there isn't one true value for a setting.
The only reason we needed those getters is to save away the default values for
some settings where we were unsure what the defaults are.
- For font setters, we can get the defaults from QFont, like QtWeb{Kit,Engine}
do.
- For font sizes, we hardcode the defaults QtWeb{Kit,Engine} hardcodes too.
- For maximum-page-in-cache, we hardcode 0, just like QtWebKit.
- For default-encoding, we hardcode iso-8559-1, like QtWeb{Kit,Engine}
- For offline-storage-default-quota, we hardcode 5MB, like QtWebKit
- For offline-web-application-cache-quota, we hardcode MAXINT as default value,
but we still keep the empty value in the config. It means "no quota"
internally in QtWebKit, but it's a too confusing value to have in the config.
- For object-cache-capacities it's a bit more complicated (the defaults are
calculated based on disk space), but let's just get rid of the setting
altogether in the next commit (see #1751 ).
Closes #2639 .
2017-06-06 14:50:57 +02:00
Florian Bruhin
2f5756e63b
Merge commit '0501cc626c27a369c2e311c71c2ce2c5cc3f9442' into pyup-bot/pyup-update-isort-4.2.13-to-4.2.14
2017-06-06 10:19:00 +02:00
Florian Bruhin
998f93dfd3
tests: Properly parse Chromium logging messages
...
Closes #2519
2017-06-06 10:01:45 +02:00
pyup-bot
0501cc626c
Update isort from 4.2.13 to 4.2.14
2017-06-06 09:20:10 +02:00
pyup-bot
d57f96da87
Update isort from 4.2.13 to 4.2.14
2017-06-06 09:20:09 +02:00
Florian Bruhin
f280129e7c
Merge commit 'ccdba004272ef40dfa1668a21329876253877155' into pyup-bot/pyup-update-astroid-1.5.2-to-1.5.3
2017-06-06 07:59:15 +02:00
Florian Bruhin
46d11655d8
Merge commit '6a17ee66adee0da5b88c0246c833cf7023bee9cc' into pyup-bot/pyup-update-py-1.4.33-to-1.4.34
2017-06-06 07:59:11 +02:00
Florian Bruhin
b746fe666c
Remove colorama from test requirements
...
Otherwise it collides with the colorama in qutebrowser's own requirements.
2017-06-06 07:56:30 +02:00
Florian Bruhin
d4f58533c0
Add error messages for QtWebEngine downloads
...
Fixes #2164
2017-06-06 06:29:52 +02:00
Florian Bruhin
0e85342f57
Update changelog
2017-06-05 23:50:24 +02:00
Florian Bruhin
73249d8abe
Adjust ignored Chromium messages for Qt 5.9 debug builds
2017-06-05 21:57:53 +02:00
Florian Bruhin
eea3396cdc
Add hunter to test requirements
2017-06-05 20:18:36 +02:00
Florian Bruhin
27ea9a6954
Fix test_debug_trace
2017-06-05 20:17:39 +02:00
Florian Bruhin
a45de9cef2
Remove request tracking from NetworkManager
...
This breaks things (with "ValueError: list.remove(x): x not in list") on
PyQt 5.9 (probably due to the destroyed object tracking it introduces?).
This was originally added in 0abb5cf738 to fix
some segfaults on exit, but things look much better with recent Qt versions.
2017-06-05 18:19:29 +02:00
Florian Bruhin
211f9cfc8c
Add SB to backers
2017-06-05 13:04:37 +02:00
Florian Bruhin
4d64bcc852
Make version.opengl_vendor() work with an existing context
...
This makes it possible to use it in :debug-console
2017-06-04 23:05:23 +02:00
Florian Bruhin
a858611bb9
Don't make errors in version.opengl_vendor() fatal
...
Fixes #2694
2017-06-04 22:55:39 +02:00
pyup-bot
6a17ee66ad
Update py from 1.4.33 to 1.4.34
2017-06-04 18:49:11 +02:00
pyup-bot
c15f7e8e72
Update py from 1.4.33 to 1.4.34
2017-06-04 18:49:09 +02:00
Florian Bruhin
71117f6dea
Adjust debian deps in INSTALL
2017-06-04 15:12:11 +02:00
Florian Bruhin
70b3231dd1
Add some more stuff to the FAQ
2017-06-04 15:11:08 +02:00
pyup-bot
ccdba00427
Update astroid from 1.5.2 to 1.5.3
2017-06-03 16:33:05 +02:00
Florian Bruhin
c0705e735f
Merge commit '9841f75f915a27a7bb81e917db08b615624cd1b6' into pyup-bot/pyup-update-isort-4.2.9-to-4.2.13
2017-06-02 21:54:51 +02:00
Florian Bruhin
722c117d54
Better handling of OpenSSL 1.1
...
Fixes #2690
2017-06-02 21:52:53 +02:00
pyup-bot
9841f75f91
Update isort from 4.2.9 to 4.2.13
2017-06-02 18:50:05 +02:00
pyup-bot
5f0f1cb7da
Update isort from 4.2.9 to 4.2.13
2017-06-02 18:50:03 +02:00
Florian Bruhin
a90429fe6e
Update needed dependencies
...
Fixes #2683
2017-06-01 19:30:32 +02:00
Florian Bruhin
1615c0aa1a
Merge commit '4c9c9bdf989d18ffdd0c80e84fdde0ee9601d448' into pyup-bot/pyup-update-isort-4.2.5-to-4.2.9
2017-06-01 19:14:43 +02:00
pyup-bot
4c9c9bdf98
Update isort from 4.2.5 to 4.2.9
2017-06-01 18:04:04 +02:00
pyup-bot
002cfedaef
Update isort from 4.2.5 to 4.2.9
2017-06-01 18:04:03 +02:00
Florian Bruhin
e15b7a4fde
Recompile requirements
...
This reintroduces packages which have been masked before (as they were pip
dependencies).
2017-06-01 16:42:12 +02:00
Florian Bruhin
3523c2e78b
Merge commit 'a9d739ec04898563d3d7cb790a621fb97fe0f23d' into pyup-bot/pyup-update-pytest-3.1.0-to-3.1.1
2017-06-01 16:24:34 +02:00
Florian Bruhin
0f9eb2ac54
Merge commit 'bf97bc9d3e97e608734e4ebc0d071c71ab1ab013' into pyup-bot/pyup-update-parse-1.8.0-to-1.8.2
2017-06-01 16:23:12 +02:00
Florian Bruhin
0945179f74
Merge commit '71cca7c154816678f955b242438417a2d8026198' into pyup-bot/pyup-update-setuptools-35.0.2-to-36.0.1
2017-06-01 16:22:58 +02:00
Florian Bruhin
f49bbcbb9f
Sort names in recompile_requirements again
...
This got lost with the previous revert
2017-06-01 16:21:48 +02:00
Florian Bruhin
a7143d5649
Revert "Update recompile_requirements for newer pips"
...
This reverts commit 8afc215c3d .
Since setuptools 36, it now vendors its dependencies again, as the vendoring has
lead to various issues.
2017-06-01 16:16:04 +02:00
pyup-bot
71cca7c154
Update setuptools from 35.0.2 to 36.0.1
2017-06-01 15:37:03 +02:00
Florian Bruhin
a690d242a4
Update webengine dependency message
2017-06-01 14:03:46 +02:00
Florian Bruhin
c4d2b60f4d
Initial backers file update
2017-06-01 13:54:48 +02:00
pyup-bot
bf97bc9d3e
Update parse from 1.8.0 to 1.8.2
2017-06-01 02:30:03 +02:00
pyup-bot
a9d739ec04
Update pytest from 3.1.0 to 3.1.1
2017-05-31 19:37:05 +02:00
Florian Bruhin
587861d899
Check for OpenGL ES later
...
It looks like we still got False on AppVeyor with "versionFunctions: Not
supported on OpenGL ES". Hopefully this helps.
2017-05-31 11:44:34 +02:00
Florian Bruhin
eac284d880
Skip test_opengl_vendor without QtOpenGL
...
The test fails on Ubuntu Xenial because QtOpenGL is not installed.
This isn't a problem with real-life usage though, as we only call it with
QtWebEngine, and that ensures that QtOpenGL is available.
2017-05-31 10:29:46 +02:00
Florian Bruhin
4cec9adce6
Fix lint
2017-05-31 09:44:17 +02:00
Florian Bruhin
28f7444d9e
Update changelog
2017-05-31 07:14:19 +02:00
Florian Bruhin
912cea6e7d
Improve version.opengl_vendor()
...
On Windows with OpenGL ES we can't use versionFunctions, so we just return None
early.
Also, this fixes some lint and adds a smoke test.
2017-05-30 19:23:27 +02:00
Florian Bruhin
b8a32c577f
Merge branch 'nouveau'
2017-05-30 17:36:58 +02:00
Florian Bruhin
62b44c5338
Fix lint
2017-05-30 17:07:31 +02:00
Florian Bruhin
eb9a0c01ba
Set backend-warning-shown in test_invocations
2017-05-30 16:49:39 +02:00
Florian Bruhin
67755e6f6c
Add error message for QtWebEngine and Nouveau
...
See #2368
2017-05-30 16:47:39 +02:00
Florian Bruhin
048aec1aa6
Revert "Reorganize earlyinit checks"
...
This reverts commit 6f3f9ede01a6b30b105d5110a48cfea592e8db52.
2017-05-30 15:53:29 +02:00
Florian Bruhin
d0461eece3
Reorganize earlyinit checks
...
We first do all checks we can without knowing the backend, before getting that.
This is because we need to do some more stuff in get_backend now.
2017-05-30 15:53:29 +02:00
Florian Bruhin
bec8299b2e
Update install instructions
...
Closes #2440
2017-05-30 15:34:46 +02:00
Florian Bruhin
58de271fc1
Regenerate authors
2017-05-30 10:40:33 +02:00
Florian Bruhin
65329c97c7
Merge branch 'pyup-bot/pyup-update-requests-2.16.5-to-2.17.3'
2017-05-30 10:39:50 +02:00
Florian Bruhin
f656cda248
Merge commit '798cae51d4971a74fa5a7de4815b32d9871caad5'
2017-05-30 10:39:20 +02:00
Florian Bruhin
8167c55e61
Merge commit 'ee99b25bf6eb203726a796f53fa60036f5caeb24' into pyup-bot/pyup-update-requests-2.16.5-to-2.17.3
2017-05-30 10:37:11 +02:00
Florian Bruhin
1c6fd6f725
Add a backend warning when using QtWebKit
2017-05-30 08:42:37 +02:00
Florian Bruhin
4cb82af11e
Add QUTE_FAKE_OS_RELEASE envvar
2017-05-30 07:37:10 +02:00
pyup-bot
ee99b25bf6
Update requests from 2.16.5 to 2.17.3
2017-05-30 01:20:03 +02:00
pyup-bot
009acc1600
Update requests from 2.16.5 to 2.17.3
2017-05-30 01:20:02 +02:00
pyup-bot
863e1f1d84
Update requests from 2.16.5 to 2.17.3
2017-05-30 01:20:00 +02:00
Philipp Hansch
798cae51d4
Fix pylint issue
2017-05-29 23:15:22 +02:00
Philipp Hansch
ad8cf371b8
Style table of contents properly for qute theme
2017-05-29 21:50:06 +02:00
Philipp Hansch
932b2814b0
Hide false header element from the TOC
2017-05-29 21:50:04 +02:00
Philipp Hansch
abd3333b9f
Add TOC to installation instructions
...
This adds a Table of Contents to the installation instructions to
improve the navigation within the document.
I decided to use the command line to configure the TOC because there
were problems with using just using an attribute entry in the document
header.
Specifically the insertion of the `header.asciidoc` into the resulting
HTML file prevented the attribute entry approach from working.
The TOC can now be inserted into any doc file using
toc::[]
2017-05-29 21:14:01 +02:00
Florian Bruhin
ef504e5b25
Allow None for WebKitElement.value
...
This fixes an exception when trying to run :open-editor with a comment field
with QtWebKit:
16:37:51 DEBUG webelem webelem:is_editable:238 Checking if element is editable: <qutebrowser.browser.webkit.webkitelem.WebKitElement html='<div id="writer9997095275-writer" class="writer selectable no-lub put-art-here ui-droppable empty" style="min-height: 146px; width: 1169px;" contenteditable="true"></div>'>
16:37:51 ERROR misc crashsignal:exception_hook:205 Uncaught exception
Traceback (most recent call last):
File "/home/florian/proj/qutebrowser/git/qutebrowser/app.py", line 882, in eventFilter
return handler(event)
File "/home/florian/proj/qutebrowser/git/qutebrowser/app.py", line 842, in _handle_key_event
return man.eventFilter(event)
File "/home/florian/proj/qutebrowser/git/qutebrowser/keyinput/modeman.py", line 337, in eventFilter
return self._eventFilter_keypress(event)
File "/home/florian/proj/qutebrowser/git/qutebrowser/keyinput/modeman.py", line 168, in _eventFilter_keypress
handled = parser.handle(event)
File "/home/florian/proj/qutebrowser/git/qutebrowser/keyinput/basekeyparser.py", line 307, in handle
handled = self._handle_special_key(e)
File "/home/florian/proj/qutebrowser/git/qutebrowser/keyinput/basekeyparser.py", line 136, in _handle_special_key
self.execute(cmdstr, self.Type.special, count)
File "/home/florian/proj/qutebrowser/git/qutebrowser/keyinput/keyparser.py", line 44, in execute
self._commandrunner.run(cmdstr, count)
File "/home/florian/proj/qutebrowser/git/qutebrowser/commands/runners.py", line 275, in run
result.cmd.run(self._win_id, args, count=count)
File "/home/florian/proj/qutebrowser/git/qutebrowser/commands/command.py", line 525, in run
self.handler(*posargs, **kwargs)
File "/home/florian/proj/qutebrowser/git/qutebrowser/browser/commands.py", line 1600, in open_editor
tab.elements.find_focused(self._open_editor_cb)
File "/home/florian/proj/qutebrowser/git/qutebrowser/browser/webkit/webkittab.py", line 589, in find_focused
callback(webkitelem.WebKitElement(elem, tab=self._tab))
File "/home/florian/proj/qutebrowser/git/qutebrowser/browser/commands.py", line 1580, in _open_editor_cb
text = elem.value()
File "/home/florian/proj/qutebrowser/git/qutebrowser/browser/webkit/webkitelem.py", line 116, in value
assert isinstance(val, (int, float, str)), val
AssertionError: None
2017-05-29 16:56:36 +02:00
Florian Bruhin
7186dcb98f
Send crash reports to private pastebin
...
Fixes #481
2017-05-29 09:20:10 +02:00
Florian Bruhin
b32223acc7
Only inherit private mode when window is set
...
Otherwise, everything calling _open in a private window (like :quickmark-load)
will open a new window.
2017-05-29 06:37:28 +02:00
pyup-bot
615b027fad
Update hypothesis from 3.11.0 to 3.11.1
2017-05-28 16:24:59 +02:00
Florian Bruhin
4f6474dc69
Add new requests requirements
2017-05-28 11:30:28 +02:00
Florian Bruhin
f273939521
Merge commit '9e3847863868e780b5a87975254959731c9ac2fb' into pyup-bot/pyup-update-requests-2.14.2-to-2.16.5
2017-05-28 11:25:12 +02:00
Florian Bruhin
8bd6974042
Open a window with an empty session
...
With general -> save-session on and only private windows open, we can easily get
a session file with "windows: []" in it. If we loaded such a file, we got no
windows at all when qutebrowser started.
Fixes #2664
2017-05-28 11:15:51 +02:00
Florian Bruhin
beb731c04c
Move signal connections around
2017-05-28 10:54:16 +02:00
Florian Bruhin
06e754a632
Track HTML fullscreen per-tab
...
We now automatically get out of fullscreen when switching away from a
fullscreened tab. This also means we can't get into a situation where we can't
leave fullscreen anymore.
Fixes #2379 .
2017-05-28 10:51:14 +02:00
pyup-bot
9e38478638
Update requests from 2.14.2 to 2.16.5
2017-05-28 09:52:02 +02:00
pyup-bot
3014a5207a
Update requests from 2.14.2 to 2.16.5
2017-05-28 09:52:00 +02:00
pyup-bot
0106036e9e
Update requests from 2.14.2 to 2.16.5
2017-05-28 09:51:59 +02:00
Florian Bruhin
a18ebd52a9
Rename TabWidget methods
2017-05-26 18:39:35 +02:00
Florian Bruhin
75409966a7
pyinstaller: Exclude tkinter
2017-05-24 21:53:53 +02:00
Florian Bruhin
54a4a087d4
nsis: Use solid lzma compressor
...
File sizes, 32 bit:
- default: 64 MB
- lzma: 50 MB
- lzma solid: 47 MB
64 bit:
- default: 75 MB
- lzma: 58 MB
- lzma solid: 55 MB
Between lzma and lzma solid, installation speed doesn't seem to vary much, so
let's go for the smallest.
2017-05-24 21:31:18 +02:00
Florian Bruhin
464eb29704
Set PATH in build_release.py when calling tox
...
On Windows, we need to have the proper Python folder in PATH when using PyQt5,
so it can load python3.dll properly.
2017-05-24 20:52:57 +02:00
Florian Bruhin
1adcf28e31
build_release: Adjust Windows Python paths
2017-05-24 13:30:11 +02:00
Florian Bruhin
ee320ade21
Regenerate authors
2017-05-24 08:40:20 +02:00
Florian Bruhin
b06599b2c9
Merge branch 'pyup-bot/pyup-update-hypothesis-3.10.0-to-3.11.0'
2017-05-24 08:39:09 +02:00
Florian Bruhin
52f077a780
Merge commit 'baa46aa7c1e54c5007ec35daf015225e425d0acd'
2017-05-24 08:39:09 +02:00
Florian Bruhin
49d7c44e6d
Merge commit 'baa46aa7c1e54c5007ec35daf015225e425d0acd' into pyup-bot/pyup-update-hypothesis-3.10.0-to-3.11.0
2017-05-24 08:38:52 +02:00
Florian Bruhin
4e48f878ba
build_release: Call tox with -v
2017-05-24 08:37:06 +02:00
Florian Bruhin
b811b9e380
Run update_3rdparty correctly from build_release
2017-05-24 08:37:06 +02:00
Florian Bruhin
e012b738f7
Add qutebrowser.nsi to MANIFEST.in
2017-05-24 08:37:06 +02:00
Florian Bruhin
59760b58d9
Add windows installers to build_release
2017-05-24 08:37:06 +02:00
Florian Bruhin
b6b78ba5eb
Fix up NSIS paths
2017-05-24 08:37:06 +02:00
Florian Bruhin
86a61ba59a
Remove nsis subfolder
2017-05-24 08:37:06 +02:00
Florian Bruhin
95d56bfc85
nsis: Use proper folders
2017-05-24 08:37:06 +02:00
Florian Bruhin
4879b48afe
Merge nsis files into one
2017-05-24 08:37:06 +02:00
Link
bbd33d24a3
Initial nsis install script
2017-05-24 08:37:06 +02:00
pyup-bot
baa46aa7c1
Update hypothesis from 3.10.0 to 3.11.0
2017-05-24 02:24:52 +02:00
Florian Bruhin
681ce601e3
Add tor to FAQ
2017-05-23 22:23:15 +02:00
Florian Bruhin
e96f085f8d
Merge commit '38ca583084e89de0da35cb1b626d21b051ea2c70'
2017-05-23 17:43:01 +02:00
Florian Bruhin
ffb4bb5f7c
Improve chrome:// URL docs
2017-05-23 17:28:42 +02:00
Florian Bruhin
bc8e176a70
Update authors
2017-05-23 17:22:20 +02:00
Florian Bruhin
8b7cdb5d15
Merge commit 'a1e1e90ec916bcff0bf4fd5500fe80408f860f8b'
2017-05-23 17:22:08 +02:00
Florian Bruhin
70a28ed810
Update authors
2017-05-23 17:19:10 +02:00
Florian Bruhin
af1e1d9239
Merge commit 'c814ced7b35968cfdeb6284cc79168bfffed7c85'
2017-05-23 17:18:55 +02:00
Florian Bruhin
0f3a17ae88
Fix raw string prefix
2017-05-23 10:09:06 +02:00
Florian Bruhin
ea2fbc427a
tests: Use match= for pytest.raises
2017-05-23 09:36:00 +02:00
Florian Bruhin
af7923de4d
tests: Use pytest.param
2017-05-23 08:08:46 +02:00
Florian Bruhin
18a761369b
requirements: Update pytest-warnings
...
It's been integrated to pytest core with 3.1
2017-05-23 06:14:32 +02:00
Florian Bruhin
7da6b55767
Merge commit 'aab90f015bbb4d5f406ce37e58b8b557284bb3c2' into pyup-bot/pyup-update-pytest-3.0.7-to-3.1.0
2017-05-23 06:13:08 +02:00
pyup-bot
aab90f015b
Update pytest from 3.0.7 to 3.1.0
2017-05-23 05:18:50 +02:00
pyup-bot
a83c18f2c9
Update hypothesis from 3.9.1 to 3.10.0
2017-05-22 17:54:50 +02:00
pyup-bot
10e5aa9e2a
Update hypothesis from 3.9.0 to 3.9.1
2017-05-22 11:09:50 +02:00
Florian Bruhin
4684ce8f0c
Update changelog
2017-05-22 08:22:08 +02:00
Florian Bruhin
c32c01ffc0
Merge commit '419793c0b9ff4f293babea7623dcaf4787bbaa35'
2017-05-22 07:55:44 +02:00
Jay Kamat
419793c0b9
Misc cleanup and documentation update
2017-05-21 22:42:51 -07:00
Jay Kamat
00f001729b
Fix undo with pinned tabs
...
Add tests for undo with a pinned tab
Add tests for clone with a pinned tab
2017-05-21 21:03:33 -07:00
Jay Kamat
2a961c3951
Clean up pinned status to a centralized location
...
- Add support for :tab-clone with pinned tabs
Now tabbed_browser.set_tab_pinned can be called independently.
2017-05-21 19:49:10 -07:00
pyup-bot
a26011c62d
Update pytest-warnings from 0.2.0 to 0.3.0
2017-05-21 17:13:48 +02:00
Florian Bruhin
64e7e027d8
Merge commit '4096defd134c44449bcc1c62b39e58f2fb0c25d1' into pyup-bot/pyup-update-hypothesis-3.8.5-to-3.9.0
2017-05-21 16:20:57 +02:00
Florian Bruhin
28c651067d
Remove crowdfunding notes
2017-05-20 23:30:36 +02:00
Florian Bruhin
aa8e6c8d17
Add parsed distribution to version info
...
Fixes #2369
2017-05-20 23:26:00 +02:00
Florian Bruhin
fe145b66c1
Add a version.distribution()
...
See #2369
2017-05-20 23:26:00 +02:00
pyup-bot
4096defd13
Update hypothesis from 3.8.5 to 3.9.0
2017-05-19 17:54:45 +02:00
Florian Bruhin
964b06bf7e
Fix shadowed import
2017-05-19 09:26:48 +02:00
Florian Bruhin
802eb51891
Update docs
2017-05-19 08:59:34 +02:00
Florian Bruhin
f66c1a0e44
Merge commit '3d9729839d6d9b5ee5d38afdf6ddf410dfca2027' into abbradar/pac-fix
2017-05-19 08:36:39 +02:00
Florian Bruhin
c4fb2bc609
Fix URL/renderer crash tests with Qt 5.9
...
The behavior in Qt changed there (in a good way), so we need to adjust the tests
accordingly.
Fixes #2514
2017-05-19 08:10:17 +02:00
Nikolay Amiantov
3d9729839d
Fix crash on PAC evaluation error
2017-05-18 16:54:49 +03:00
Florian Bruhin
f67cf17055
Hopefully fix pylint on AppVeyor...
2017-05-17 22:47:17 +02:00
Florian Bruhin
edd10aac56
pylint: Add more stuff to known-standard-library
2017-05-17 22:14:17 +02:00
Florian Bruhin
499f5df2a9
ci: Use Python 3.6 everywhere
2017-05-17 21:40:24 +02:00
Florian Bruhin
f90df52c6a
Update changelog
2017-05-17 21:32:59 +02:00
Florian Bruhin
e3f5e8ca9a
Disable local storage test for now
...
It also seems to run unstable on Windows (AppVeyor), so we probably need to wait
for qutewm to run it.
2017-05-17 20:38:30 +02:00
Florian Bruhin
00a7a0cee6
Reorganize pylint config
...
This removes various stuff we don't need anymoe, and also re-enables and fixes
the import order check.
2017-05-17 20:20:12 +02:00
Florian Bruhin
12520bf4ba
Install PyQt from PyPI for pylint
...
This means we can be sure to have QtWebEngine available and won't have QtWebKit.
2017-05-17 19:08:59 +02:00
Florian Bruhin
608ac89f06
Fix lint
2017-05-17 14:32:13 +02:00
Florian Bruhin
6473d64e40
Merge commit '20e8ce687f04b9cae702a5446b32a5ae3e0351c5' into pyup-bot/pyup-update-hypothesis-3.8.3-to-3.8.5
2017-05-17 13:50:07 +02:00
Florian Bruhin
a4ddc9706a
tox: Also use $PYTHON for pylint
2017-05-17 13:48:31 +02:00
Florian Bruhin
dd15b4b953
Fix local storage test
...
Looks like it needs a window manager to run properly...
2017-05-17 13:38:21 +02:00
Florian Bruhin
c5957bc9d0
Exclude pdfjs from build packages for now
...
It only makes things bigger, and currently pdfjs doesn't work on QtWebEngine
anyways.
2017-05-17 11:42:58 +02:00
Florian Bruhin
9898d80625
Remove legacy cx_Freeze code
...
This also removes frozen tests for now. They should be readded at some point...
2017-05-17 11:31:14 +02:00
Florian Bruhin
e955540f71
build_release: More fixes
2017-05-17 11:10:36 +02:00
Florian Bruhin
47bf261994
build_release: Different PyInstaller workaround
2017-05-17 11:10:32 +02:00
Florian Bruhin
71b5d83e19
build_release: Various fixes
2017-05-17 11:10:20 +02:00
Florian Bruhin
dc947bf9a9
build_release: Python version adjustments
2017-05-17 11:09:22 +02:00
Florian Bruhin
49a328727e
build_release: Add Windows patching for PyInstaller
2017-05-17 11:09:22 +02:00
Florian Bruhin
9816de9e8d
build_release: Initial changes for PyInstaller
2017-05-17 11:06:06 +02:00
Florian Bruhin
70e2963432
build_release: Adjust repo name
2017-05-17 11:05:27 +02:00
Florian Bruhin
68bb0f557f
Switch to xoviat pyinstaller branch
2017-05-17 11:05:27 +02:00
pyup-bot
20e8ce687f
Update hypothesis from 3.8.3 to 3.8.5
2017-05-17 10:54:42 +02:00
Florian Bruhin
e0ff2d98fe
Test for private browsing differently
...
In a48ea597d0 we fixed settings in private
QtWebEngine windows.
However, this means we also enable local storage for private windows, which was
disabled in QtWebEngine by default:
4ef5831a39 (diff-44ac7d27348388501944f6a8e2e67d8dR207)
It should be safe to enable it, as we get the same behavior as in Chromium, i.e.
a working local storage which entirely lives in RAM.
This also makes those tests work on QtWebKit-NG, presumably because private
browsing for cookies is implemented there.
It also adds a test to at least check whether local storage is isolated from
non-private tabs. I tried writing a test which ensures nothing lands on the hard
disk, but due to QTBUG-52121 this might not happen at all:
https://bugreports.qt.io/browse/QTBUG-52121
2017-05-17 09:42:28 +02:00
Florian Bruhin
a48ea597d0
Set websettings on each profile's setting object
...
Turns out QWebEngineSettings.globalSettings() only sets things on the default
profile. We now get everything from the default profile settings, but set it on
both the default and the private profile.
Fixes #2638
(cherry picked from commit b11a4388cd10b6ff2fd917fca689ebdc50d581ae)
2017-05-17 06:31:51 +02:00
Jay Kamat
5e3c68530a
Regenerate documentation
2017-05-16 21:03:33 -07:00
Jay Kamat
1142a19de9
Add (pinned) keyword to 'following tabs open' tests
2017-05-16 20:16:43 -07:00
Florian Bruhin
00083ad825
Merge commit '7b204c4ec7931ba8da5f685b29352413ec25f194' into pyup-bot/pyup-update-flask-0.12.1-to-0.12.2
2017-05-16 16:51:50 +02:00
Florian Bruhin
8428d72005
Merge commit 'c2ca8e48f58fcf6fe6758f8e206d95bacddb8c58' into pyup-bot/pyup-update-werkzeug-0.12.1-to-0.12.2
2017-05-16 16:50:31 +02:00
Florian Bruhin
407537dbe6
tests: Wait until window is closed after :close
...
If we don't wait here, we might end up running the subsequent commands (like
:command-history-prev) on the old window while it's still closing, causing an
exception at least on AppVeyor:
Traceback (most recent call last):
File "C:\projects\qutebrowser\qutebrowser\app.py", line 110, in <lambda>
target_arg=target_arg))
File "C:\projects\qutebrowser\qutebrowser\app.py", line 265, in process_pos_args
win_id = mainwindow.get_window(via_ipc, force_tab=True)
File "C:\projects\qutebrowser\qutebrowser\mainwindow\mainwindow.py", line 89, in get_window
window.setWindowState(window.windowState() & ~Qt.WindowMinimized)
RuntimeError: wrapped C/C++ object of type MainWindow has been deleted
2017-05-16 15:46:20 +02:00
Florian Bruhin
9408babef5
Also remove test for removed assertion
2017-05-16 12:56:25 +02:00
Florian Bruhin
766a1ebb6d
Remove wrong private browsing assertion
...
This tried to assert that we never create a DiskCache object when private
browsing is turned on. However, when initializing, we still create a global
DiskCache, so this will hit when qutebrowser is started with private browsing
turned on via the config.
We could just not create the DiskCache at all when started in private browsing
mode, however we might still need it later when opening a non-private window.
2017-05-16 11:33:52 +02:00
Florian Bruhin
27aa40428e
Also make DownloadManager NAM private if private browsing is on
...
There's only one global DownloadManager with its own NAM (for downloads not
associated with a page). We can't really decide whether that should be private
or not, so as a best-effort approximation we simply make it private if private
browsing was turned on when starting qutebrowser.
2017-05-16 11:32:35 +02:00
pyup-bot
c2ca8e48f5
Update werkzeug from 0.12.1 to 0.12.2
2017-05-16 09:12:19 +02:00
pyup-bot
7b204c4ec7
Update flask from 0.12.1 to 0.12.2
2017-05-16 09:12:15 +02:00
Florian Bruhin
89dc8185b9
Fix lint
2017-05-16 09:08:59 +02:00
Florian Bruhin
1fcce6d87c
Change how error page retries work
...
A simple reload won't work when e.g. the renderer process crashed, so let's try
this instead.
Also, searchFor seemed to be unused.
2017-05-16 07:51:37 +02:00
Florian Bruhin
a4021e8e7a
Show error page for renderer process crashes on 5.9
...
Fixes #2291
2017-05-16 07:50:26 +02:00
Florian Bruhin
bdf56e63dd
Fix long line
2017-05-16 07:31:02 +02:00
Florian Bruhin
37b3ed0ca9
Update changelog
2017-05-16 07:14:03 +02:00
Florian Bruhin
d0dd1644af
Set user agent correctly on QtWebEngine
2017-05-16 06:46:45 +02:00
Florian Bruhin
086139110d
Merge branch 'new-private-browsing'
2017-05-16 06:32:15 +02:00
Florian Bruhin
adb924a758
Use -p for :save-session --with-private
2017-05-16 06:28:21 +02:00
Florian Bruhin
658abf7b2b
Fix coverage on old Qt versions
2017-05-15 13:39:49 +02:00
Florian Bruhin
51163f5e12
Recompile requirements
2017-05-15 11:35:34 +02:00
Florian Bruhin
991b3123d7
check_coverage: Add qutebrowser/ to filter list
...
For coverage 4.4 we removed qutebrowser/ from filenames, so we need to re-add it
here so the filter still works correctly.
2017-05-15 11:32:41 +02:00
Florian Bruhin
e13a5c0f17
Use a list for stylesheet flags
...
If we simply use sorted() on a dict, we define insert before private-command,
which means the statusbar isn't going to be green when in insert mode while
private browsing.
2017-05-15 11:07:43 +02:00
Florian Bruhin
3cdcc34d1d
Update private-browsing option description
2017-05-15 11:07:43 +02:00
Florian Bruhin
c4307c9f03
Fix lint
2017-05-15 11:07:43 +02:00
Florian Bruhin
3f8b9fb1a5
tests: Improve matching of exceptions to show verbose output
...
In some situations we can get a TypeError without a stack
2017-05-15 11:07:43 +02:00
Florian Bruhin
f6fc2666ce
Generate stylesheet for statusbar
2017-05-15 11:07:43 +02:00
Florian Bruhin
73ca884d24
Add a setting for private command mode color
...
This also refactors how color properties are handled in StatusBar.
2017-05-15 11:07:43 +02:00
Florian Bruhin
3c3f695af4
Fix things pointed out in reviews
2017-05-15 11:07:43 +02:00
Florian Bruhin
6ee382ef30
Sort windows when saving sessions
...
This should help with flaky tests when the window order changes
2017-05-15 11:02:29 +02:00
Florian Bruhin
510b437916
Update docs
2017-05-15 11:02:29 +02:00
Florian Bruhin
8993667479
Remove unused imports
2017-05-15 11:02:29 +02:00
Florian Bruhin
c3ac3ccdee
Add tests for new private browsing
2017-05-15 11:02:29 +02:00
Florian Bruhin
eda95d7926
Simplify window/private distinction in commands.py
2017-05-15 11:02:29 +02:00
Florian Bruhin
cde36f34b0
Remove QtWebKit-NG warnings
...
The next release will support private browsing, and we can't easily check the
version somehow.
2017-05-15 11:02:29 +02:00
Florian Bruhin
9805b43c85
Handle private browsing in sessions
2017-05-15 11:02:29 +02:00
Florian Bruhin
f907b6b6b0
Have an isolated command history for private windows
2017-05-15 11:02:26 +02:00
Florian Bruhin
157a0af908
Hopefully fix failing history test on old Qt
2017-05-15 10:29:13 +02:00
Florian Bruhin
56144d6c3d
Merge commit '7688f263986f97073d5bd253a506b4d3bbac1759' into pyup-bot/pyup-update-coverage-4.4-to-4.4.1
2017-05-15 09:22:07 +02:00
Florian Bruhin
dd675c4e8d
Set title for :view-source pages
2017-05-15 09:16:24 +02:00
Florian Bruhin
5b1d35bef9
Don't add data: URLs to history
2017-05-15 09:04:16 +02:00
Florian Bruhin
920dde4a68
Don't set an URL for :view-source tabs
...
Otherwise the page URL gets added to the history again with QtWebKit.
2017-05-15 09:03:45 +02:00
pyup-bot
7688f26398
Update coverage from 4.4 to 4.4.1
2017-05-15 08:48:42 +02:00
pyup-bot
b3a509f856
Update coverage from 4.4 to 4.4.1
2017-05-15 08:48:40 +02:00
Florian Bruhin
f2d3d78b12
Update changelog
2017-05-15 08:22:04 +02:00
Jay Kamat
17169812be
Misc cleanup and fixes
2017-05-14 00:21:51 -07:00
Florian Bruhin
5174ce6a83
Update authors
2017-05-13 15:55:43 +02:00
Matthias Lisin
c814ced7b3
Add Android UA
2017-05-13 15:05:54 +02:00
Anton Grensjö
47f391d38b
Set explicit=False for :navigate --tab
...
Related to #2624
2017-05-13 04:16:49 +02:00
Jay Kamat
b526c9a2a9
Try to fix a pylint error
2017-05-12 18:38:06 -07:00
Jay Kamat
a5eb3e27f8
Fix some bugs in session saving test case
2017-05-12 17:48:38 -07:00
Jay Kamat
068e47e22c
Fix a few style issues
2017-05-12 16:56:07 -07:00
Jay Kamat
1572be83be
Add documentation for pinning
2017-05-12 13:28:53 -07:00
Florian Bruhin
273749cce8
Don't set explicit=True for :tab-clone/:view-source
...
Fixes #2624
2017-05-12 22:27:24 +02:00
Jay Kamat
2ae1bfc033
Keep pinned tabs in place rather than moving them.
2017-05-12 13:09:22 -07:00
Jay Kamat
3e3f4b4164
Add :tab-only tests for --force
2017-05-12 11:06:17 -07:00
Jay Kamat
66dfb1b1c9
Fix a bug with titles not being refreshed when pinning tabs
2017-05-12 09:53:25 -07:00
Florian Bruhin
65952ca290
Fix webkitelem tests
2017-05-12 13:57:33 +02:00
Florian Bruhin
17fdda6a5e
Check for href attribute in WebElement.is_link
...
Fixes #2619
2017-05-12 12:59:25 +02:00
Florian Bruhin
9ab4549b9b
requirements: Filter flake8-pep3101 1.1
2017-05-12 10:32:06 +02:00
Florian Bruhin
bd75507c90
Merge commit 'e238f32e7b40f6da9aa893150cd35368814fc403' into pyup-bot/pyup-update-flake8-deprecated-1.1-to-1.2
2017-05-12 10:30:09 +02:00
Florian Bruhin
0e72f2166d
Merge commit 'dfc44f05c57885e7c6890318dbfb7204f4e07618' into pyup-bot/pyup-update-pytest-cov-2.5.0-to-2.5.1
2017-05-12 10:30:07 +02:00
Florian Bruhin
9e2aa65c02
Remove webelem.Group.prevnext
...
Apart from checking for buttons with an href attribute (which made no sense at
all and should never return any element) this was identical to
webelem.Group.links.
2017-05-12 09:41:12 +02:00
Florian Bruhin
203a5dff74
Get rid of webelem.FILTERS
...
There's actually no good reason to filter javascript links as we might want to
click them (or copy their URL) just like any other link - this fixes #2404 .
With that being gone, we don't need FILTERS at all anymore, as we can check for
existence of the href attribute in the CSS selector instead.
2017-05-12 09:41:12 +02:00
pyup-bot
dfc44f05c5
Update pytest-cov from 2.5.0 to 2.5.1
2017-05-12 00:59:40 +02:00
pyup-bot
e238f32e7b
Update flake8-deprecated from 1.1 to 1.2
2017-05-12 00:59:36 +02:00
Jay Kamat
21455cf0e7
Clean up pinned tab alert logic
...
should be a lot more reusable now
2017-05-11 15:37:52 -07:00
Jay Kamat
4c28487fd0
Warn user if pinned tab is closed via tab-only
2017-05-11 14:30:45 -07:00
Jay Kamat
cb654225fd
Add a test case for loading/saving pinned tabs in sessions
2017-05-11 14:05:25 -07:00
Jay Kamat
3317834b36
Fix a bug where pinned tabs were occasionally miscounted
...
Example case: :tab-only. This should cover other cases, but currently those
cases (such as :tab-only) do NOT have a warning message when popping up.
2017-05-11 13:28:26 -07:00
Jay Kamat
725bafea54
Merge branch 'master' into jay/pintab
2017-05-10 23:51:33 -07:00
pyup-bot
d50a08d159
Update requests from 2.14.1 to 2.14.2
2017-05-10 19:08:32 +02:00
pyup-bot
140eb13677
Update requests from 2.14.1 to 2.14.2
2017-05-10 19:08:31 +02:00
pyup-bot
b2abf7a3aa
Update requests from 2.14.1 to 2.14.2
2017-05-10 19:08:29 +02:00
Florian Bruhin
c6e31391de
Fix most tests/lint
2017-05-10 09:19:24 +02:00
Florian Bruhin
f4d3f97cb7
Implement private browsing for QtWebEngine
2017-05-10 09:17:54 +02:00
Florian Bruhin
1c50377c0a
Initial work on new private browsing
2017-05-10 07:00:21 +02:00
Florian Bruhin
1d4c9d3b3f
Merge commit '661c0f7b7c74c23db0a8ed2dfa111a711c5f8771' into pyup-bot/pyup-update-pytest-cov-2.4.0-to-2.5.0
2017-05-10 06:52:20 +02:00
Florian Bruhin
5e76810659
Merge commit '1973e61424efb124f453ce0894d1c8b3e5ea99c3' into pyup-bot/pyup-update-hypothesis-3.8.2-to-3.8.3
2017-05-10 06:52:18 +02:00
pyup-bot
661c0f7b7c
Update pytest-cov from 2.4.0 to 2.5.0
2017-05-10 00:08:34 +02:00
pyup-bot
1973e61424
Update hypothesis from 3.8.2 to 3.8.3
2017-05-10 00:08:30 +02:00
pyup-bot
3bd7e33c4a
Update requests from 2.13.0 to 2.14.1
2017-05-09 22:16:27 +02:00
pyup-bot
a0a9c9d32e
Update requests from 2.13.0 to 2.14.1
2017-05-09 22:16:25 +02:00
pyup-bot
56d42b6c82
Update requests from 2.13.0 to 2.14.1
2017-05-09 22:16:24 +02:00
Florian Bruhin
b91d4ee9c2
Clean up :debug-webaction
2017-05-09 22:02:30 +02:00
Florian Bruhin
822623f2ed
Finally update copyrights...
2017-05-09 21:37:03 +02:00
Florian Bruhin
905032924a
Remove search_displayed initialization in subclasses
...
We set this in BrowserTab anyways, and the value in WebKitTab was wrong.
2017-05-09 17:58:28 +02:00
Florian Bruhin
4b5e528d05
Add AbstractTab.key_press
2017-05-09 17:56:07 +02:00
Florian Bruhin
76fa126133
Simplify debug string
2017-05-09 17:55:51 +02:00
Florian Bruhin
e3eda28d88
Update docstrings
2017-05-09 17:52:13 +02:00
Florian Bruhin
5f2fb2c4fc
Update docs
2017-05-09 17:48:40 +02:00
Jay Kamat
e10d636ca0
Fix a few small issues
...
- Remove an unused warnings
- Reverse if statement arguments to simplify logic
2017-05-09 08:08:05 -07:00
Jay Kamat
a3d41c0467
Refactor search method of AbstractBrowserTab into a field
2017-05-09 00:24:13 -07:00
Jay Kamat
02f79c2990
Add tests for manual selection
2017-05-09 00:11:25 -07:00
Jay Kamat
d1aac9e9e9
Add docstrings to key_press methods
2017-05-08 23:43:21 -07:00
Jay Kamat
5bdd291d28
Refactor key_press into _repeated_key_press
...
Also split off generic key pressing ability from WebKitScroller to WebKitTab
2017-05-08 23:11:50 -07:00
Jay Kamat
63cffaf558
Refactor _key_press from WebEngineScroller to WebEngineTab
2017-05-08 22:49:14 -07:00
Jay Kamat
5ba81e3611
Add tests for follow_selected
2017-05-08 22:32:53 -07:00
Jay Kamat
c9953b9f0d
Add support for follow_selected via fake-clicks
2017-05-08 22:31:29 -07:00
Jay Kamat
e07a1045a8
Add is_link method to webelem
2017-05-08 22:00:11 -07:00
Florian Bruhin
6c3f29d570
Merge commit '2b0fc0f52efccd0004b2cd8f90f930852947f403' into pyup-bot/pyup-update-coverage-4.3.4-to-4.4
2017-05-09 06:23:05 +02:00
Florian Bruhin
27bed81353
Merge commit '7a3651426f0152c6b23ed4f83bab0eab2e763d91' into pyup-bot/pyup-update-beautifulsoup4-4.5.3-to-4.6.0
2017-05-09 06:23:03 +02:00
Florian Bruhin
af18b208bb
Merge commit '00c48427bcee63921705f85251d71795dab980bd' into pyup-bot/pyup-update-lazy-object-proxy-1.3.0-to-1.3.1
2017-05-09 06:23:00 +02:00
Florian Bruhin
9db92de2d5
Add a no cover pragma for certificate error hashing
2017-05-09 06:15:21 +02:00
Florian Bruhin
8052249b1b
Make check_coverage.py work with coverage 4.4
...
With coverage 4.4, the source name (qutebrowser/) is not added to the filename
anymore. To adjust for that, we remove qutebrowser/ from all paths, and also
make sure to remove it from what coverage returns (in case someone is running an
older version).
2017-05-09 06:13:35 +02:00
pyup-bot
2b0fc0f52e
Update coverage from 4.3.4 to 4.4
2017-05-08 07:26:27 +02:00
pyup-bot
ee2a6ae6f0
Update coverage from 4.3.4 to 4.4
2017-05-08 07:26:25 +02:00
pyup-bot
7a3651426f
Update beautifulsoup4 from 4.5.3 to 4.6.0
2017-05-07 16:42:20 +02:00
pyup-bot
00c48427bc
Update lazy-object-proxy from 1.3.0 to 1.3.1
2017-05-05 15:51:20 +02:00
pyup-bot
2beba920e7
Update lazy-object-proxy from 1.3.0 to 1.3.1
2017-05-05 15:51:18 +02:00
pyup-bot
88545dec4d
Update lazy-object-proxy from 1.2.2 to 1.3.0
2017-05-04 08:36:26 +02:00
pyup-bot
caa3be2277
Update lazy-object-proxy from 1.2.2 to 1.3.0
2017-05-04 08:36:25 +02:00
Florian Bruhin
789aebd742
Merge commit '120379dd217d8daaa6b48cb21c8cb3de7679bbec' into rcorre/benchmark_history
2017-05-03 23:15:36 +02:00
Florian Bruhin
eab7c79cf7
Merge commit '3b0bb6a831791c22a77f25aa2f3223c24e6ba628' into pyup-bot/pyup-update-cheroot-5.4.0-to-5.5.0
2017-05-03 23:15:26 +02:00
Florian Bruhin
90b0af97ce
Improve serialization crash check
...
It now works correctly with view-source URLs and is disabled on Qt 5.9.
Fixes #2289
See #2458
2017-05-03 23:15:17 +02:00
Florian Bruhin
ea2d5e97e2
Disable serialization crash check on Qt 5.9
2017-05-03 21:31:09 +02:00
Florian Bruhin
ebf3d208f6
Adjust Qt 5.8.1 check
...
There's never going to be a 5.8.1
2017-05-03 21:25:00 +02:00
Florian Bruhin
a320aa5ef7
Disable renderer process crash workaround on Qt 5.9
2017-05-03 21:24:25 +02:00
Florian Bruhin
2a4af0666b
Regenerate authors
2017-05-03 18:36:48 +02:00
Ryan Roden-Corrent
120379dd21
Benchmark url completion.
...
This benchmark simulates what I expect to be the most common use-case for url
completion: opening completion and entering several letters.
2017-05-03 07:43:02 -04:00
Florian Bruhin
a77cb44723
Block all request methods in host blocker
2017-05-03 08:42:37 +02:00
pyup-bot
3b0bb6a831
Update cheroot from 5.4.0 to 5.5.0
2017-05-02 11:43:35 +02:00
Florian Bruhin
7c6981e512
Remove unused imports
2017-05-02 10:41:51 +02:00
Florian Bruhin
d5c5d09b18
Hopefully stabilize test_version
...
When using QuteProcess here, we fight with it over who can read the output.
Just use a raw QProcess instead.
2017-05-02 09:12:06 +02:00
Florian Bruhin
7b4ab901e9
tests: Fix Chromium message matching
2017-05-02 08:24:57 +02:00
Florian Bruhin
d8e134c5f0
Merge commit '64a4e33caa539b751acfc7e0eb76c871e8ab423d' into pyup-bot/pyup-update-flake8-tuple-0.2.12-to-0.2.13
2017-05-02 08:22:43 +02:00
Florian Bruhin
55db8719f2
Merge commit '6ae6df9d74b9d94f56489b5d6a4586995aeda340' into stevepeak/patch-1
2017-05-02 08:22:37 +02:00
Florian Bruhin
2fb59958a6
Merge commit 'fe02267de2f9bc164cb265c357770d8f56c68554' into pyup-bot/pyup-update-pytest-bdd-2.18.1-to-2.18.2
2017-05-02 08:22:32 +02:00
Florian Bruhin
64e144f3eb
Make text selectable in prompts
2017-05-01 13:52:46 +02:00
pyup-bot
fe02267de2
Update pytest-bdd from 2.18.1 to 2.18.2
2017-05-01 12:43:14 +02:00
Steve Peak
6ae6df9d74
Update codecov.yml
2017-04-30 14:55:35 -04:00
pyup-bot
64a4e33caa
Update flake8-tuple from 0.2.12 to 0.2.13
2017-04-30 12:29:12 +02:00
Florian Bruhin
6e0d138d23
flake8 requirements: Pin flake8-docstrings to < 1.1.0
...
Closes #2593
2017-04-29 13:45:14 +02:00
Florian Bruhin
5bbd16c92a
Fix qWebKitVersion issues
2017-04-28 22:59:24 +02:00
Florian Bruhin
bffdea6719
Read qWebKitVersion in qtutils.is_webkit_ng.
...
This means we need to try and import qWebKitVersion in qtutils, but better there
than at every place which calls it.
2017-04-28 21:36:02 +02:00
Florian Bruhin
8101fe99a8
Fix starting with Python 2
...
Fixes #2567
2017-04-28 20:51:38 +02:00
Florian Bruhin
a5b1c293a4
Ignore comment position with eslint
2017-04-28 20:29:20 +02:00
Florian Bruhin
0a3e20f5ab
Merge commit '26b4d13c6faf6217bb116e15c01eec37c10dd976' into pyup-bot/pyup-update-setuptools-35.0.1-to-35.0.2
2017-04-28 19:44:59 +02:00
Florian Bruhin
9f942cb9a8
Merge commit '11383169d83f1ff14d2df40e6963221e46ab29d1' into pyup-bot/pyup-update-codecov-2.0.8-to-2.0.9
2017-04-28 19:44:57 +02:00
Florian Bruhin
421aa0d319
Also try harder to get text content
2017-04-28 19:11:02 +02:00
Florian Bruhin
76ec465f67
Allow to set cookies-store at runtime with Qt 5.9
...
Fixes #2588
2017-04-28 17:40:43 +02:00
Florian Bruhin
c8090b5388
Don't wait for click message in webelem tests
...
Looks like we get this sometimes:
----> Waiting for 'Clicked non-editable element!' in the log
14:02:14.976 DEBUG webview webkittab:find_at_pos:618 Hit test result element is null!
14:02:14.976 DEBUG mouse mouse:_mousepress_insertmode_cb:149 Got None element, scheduling check on mouse release
14:02:14.977 DEBUG mouse webview:mousePressEvent:299 Normal click, setting normal target
14:02:14.978 DEBUG mouse mouse:mouserelease_insertmode_cb:173 Element vanished!
2017-04-28 17:29:19 +02:00
pyup-bot
11383169d8
Update codecov from 2.0.8 to 2.0.9
2017-04-28 17:27:11 +02:00
Florian Bruhin
5ed870e0c6
Fix lint
2017-04-28 16:29:44 +02:00
Florian Bruhin
20da495376
Add missing file
2017-04-28 15:22:29 +02:00
Florian Bruhin
a2c8e093f4
Move webelement checks to javascript.feature
2017-04-28 15:16:36 +02:00
Florian Bruhin
6458c692cb
Improve JS value type checks
2017-04-28 15:15:32 +02:00
Florian Bruhin
571f0c4486
Loosen JS value type check
2017-04-28 14:57:14 +02:00
Florian Bruhin
0c653c4703
Handle elem.className in webelem.js
2017-04-28 14:48:30 +02:00
Florian Bruhin
513f83d446
Try harder to get tag name from element
...
This could happen for any of the attributes, but for tagName this actually
happens in the wild... Since elem.tagName is equal to elem.nodeName we just try
to use this.
Fixes #2569
2017-04-28 14:48:30 +02:00
Florian Bruhin
06e317ac53
Do type checks on values we get from JS
2017-04-28 14:48:30 +02:00
Florian Bruhin
4f92fe6895
Add an assert for tag_name we get from JS
...
This should help tracking down #2569 once we get another report about it.
2017-04-28 10:33:57 +02:00
pyup-bot
26b4d13c6f
Update setuptools from 35.0.1 to 35.0.2
2017-04-27 22:07:03 +02:00
Florian Bruhin
7b283cd58e
Merge branch 'haasn/favicon-scale'
2017-04-27 21:15:09 +02:00
Florian Bruhin
d8bfa6d6b7
Merge commit '6549fd84ce461d3098c13818219df4e4bfd6b444'
2017-04-27 21:15:09 +02:00
Florian Bruhin
f9055dc1e4
Update changelog
2017-04-27 21:14:28 +02:00
Florian Bruhin
5823af0b7b
Merge commit '6549fd84ce461d3098c13818219df4e4bfd6b444' into haasn/favicon-scale
2017-04-27 21:13:17 +02:00
Florian Bruhin
0efbd085b0
Merge commit 'c12347189fca26261af7dcdce121e51c170b521d' into pyup-bot/pyup-update-colorama-0.3.8-to-0.3.9
2017-04-27 21:12:21 +02:00
Florian Bruhin
44e6b9ac54
Merge commit '0e14117fdad0442520c4e1fe64231b447306cbc7' into pyup-bot/pyup-update-codecov-2.0.7-to-2.0.8
2017-04-27 21:12:18 +02:00
Florian Bruhin
d62ebdb926
Make most of search BDD tests work with QtWebEngine
2017-04-27 21:02:26 +02:00
Florian Bruhin
4cd977cab6
Fix zero handling in qflags_key
2017-04-27 20:14:51 +02:00
pyup-bot
0e14117fda
Update codecov from 2.0.7 to 2.0.8
2017-04-27 18:27:03 +02:00
pyup-bot
c12347189f
Update colorama from 0.3.8 to 0.3.9
2017-04-27 09:42:00 +02:00
Niklas Haas
6549fd84ce
Add tabs->favicon-scale setting
...
This allows users to change the size of the favicon independently from
the size of the font/tab, in order to adjust the balance between
favicons and text. The drawing code is also adjusted to place the icon
relative to the text center, rather than the text top.
Works as expected even for values of 0.0 (which is equivalent to hiding
the favicon completely).
Closes #2549 .
2017-04-27 08:53:51 +02:00
Florian Bruhin
046401c489
Clean up search.feature
2017-04-27 08:20:55 +02:00
pyup-bot
38099c45bd
Update hypothesis from 3.8.1 to 3.8.2
2017-04-26 21:48:21 +02:00
Florian Bruhin
b094f2d513
Merge branch 'pyup-bot/pyup-update-vulture-0.13-to-0.14'
2017-04-26 21:30:56 +02:00
Florian Bruhin
5e7e159ac7
Merge commit '9ef17d434ddc85c6cda4d08f00fef15b7904add1'
2017-04-26 21:30:56 +02:00
Florian Bruhin
9f8937fd80
Merge commit '9ef17d434ddc85c6cda4d08f00fef15b7904add1' into pyup-bot/pyup-update-vulture-0.13-to-0.14
2017-04-26 21:30:16 +02:00
pyup-bot
e252862f51
Update hypothesis from 3.8.0 to 3.8.1
2017-04-26 15:15:11 +02:00
pyup-bot
9ef17d434d
Update vulture from 0.13 to 0.14
2017-04-26 10:32:43 +02:00
pyup-bot
b1d88b47c1
Update vulture from 0.13 to 0.14
2017-04-26 10:32:42 +02:00
Florian Bruhin
27057622ba
Update authors
2017-04-26 08:56:41 +02:00
Florian Bruhin
4f444b870e
Merge branch 'imransobir/hostname-in-history'
2017-04-26 08:54:39 +02:00
Florian Bruhin
95b866e4f4
Merge commit 'fe7d21dfbe0b9dabcb66eaa61c20a5d16c9e175c'
2017-04-26 08:54:39 +02:00
Florian Bruhin
abb82ce922
Merge branch 'pyup-bot/pyup-update-codecov-2.0.5-to-2.0.7'
2017-04-26 07:23:09 +02:00
Florian Bruhin
4bee5deacc
Merge commit 'ab61fc57a98abcbfe6ac50622e9cbff25ad0325c'
2017-04-26 07:23:09 +02:00
Florian Bruhin
cbfb155a05
Merge commit 'ab61fc57a98abcbfe6ac50622e9cbff25ad0325c' into pyup-bot/pyup-update-codecov-2.0.5-to-2.0.7
2017-04-26 07:22:46 +02:00
Florian Bruhin
6a35797a2c
Mention C++/JS in CONTRIBUTING
2017-04-25 22:57:39 +02:00
Florian Bruhin
70d7a56b11
Also set Fusion style for downloads and completion
...
This makes those UI elements look the same on different platforms/OS styles,
with the small drawback of overriding the context menu style.
This most likely fixes #80 (though I couldn't reproduce that on Windows 10).
2017-04-25 22:20:37 +02:00
Florian Bruhin
66eb330a0a
Always base tabbar on Fusion style.
...
Fixes crashes with qt5ct.
Fixes #2477 .
Fixes #1554 .
2017-04-25 21:44:15 +02:00
Florian Bruhin
ca0e04fd0d
Mention :open in issue template
...
See #2574
2017-04-25 18:41:00 +02:00
Florian Bruhin
1015badb8b
Disable animation for completion view
2017-04-25 09:18:31 +02:00
Florian Bruhin
c3e6222296
Close the current tab when the tabbar itself is clicked
2017-04-25 06:59:51 +02:00
Florian Bruhin
3125b69d19
Fix no-cover pragma
2017-04-25 06:43:31 +02:00
pyup-bot
ab61fc57a9
Update codecov from 2.0.5 to 2.0.7
2017-04-25 00:34:15 +02:00
Florian Bruhin
111944fb65
Revert "Raise exception when a stylesheet is unparsable."
...
This reverts commit 0400945ac4 .
See #2571
2017-04-24 23:16:10 +02:00
Imran Sobir
fe7d21dfbe
Show hostname in non-javascript history page.
2017-04-24 15:30:01 +05:00
Florian Bruhin
11c026bf4c
Reenable QtWebKit cache with Qt 5.9.
...
This was fixed here:
https://codereview.qt-project.org/#/c/190818/
See #2427
2017-04-24 12:27:00 +02:00
Florian Bruhin
1539301d64
Fix test coverage for statusbar.url
2017-04-24 08:41:29 +02:00
Florian Bruhin
bf4e343887
Merge commit '18082526f48afcef3fc574e1536ef282aa0cf5bd' into imransobir/hostname-in-history
2017-04-24 08:06:13 +02:00
Florian Bruhin
2120429960
Regenerate authors
2017-04-24 08:01:44 +02:00
Imran Sobir
18082526f4
Show hostname in history page.
2017-04-24 10:59:11 +05:00
Marcel Schilling
930b0f0818
typo fix (in comment)
2017-04-24 07:56:44 +02:00
Florian Bruhin
52f31ed15c
Rename urlutils.safe_display_url to safe_display_string
2017-04-24 07:49:12 +02:00
Florian Bruhin
b632fe3285
Fix invalid URL handling in statusbar
2017-04-24 07:47:58 +02:00
Florian Bruhin
38294c1ca6
Merge commit '02cccb3673e7880fb1c507ca0f3e12e3ed954d6e' into pyup-bot/pyup-update-colorama-0.3.7-to-0.3.8
2017-04-24 07:15:56 +02:00
Florian Bruhin
a71b2e482e
Merge commit '4220cfc34e85c10fc810a779a37eb1f3871e2ff4' into pyup-bot/pyup-update-hypothesis-3.7.3-to-3.8.0
2017-04-24 07:13:40 +02:00
Florian Bruhin
195d0ea207
Show Punycode URL for IDN pages in addition to decoded one
...
This helps when Unicode homographs are used for phishing purposes.
Fixes #2547
2017-04-24 06:58:41 +02:00
Florian Bruhin
beb661cdc7
Add xos4 Terminus to default monospace fonts
2017-04-23 23:11:12 +02:00
Florian Bruhin
a1de313aa3
Add qapp to test_proxy_from_url_pac
2017-04-23 23:10:29 +02:00
pyup-bot
4220cfc34e
Update hypothesis from 3.7.3 to 3.8.0
2017-04-23 16:45:10 +02:00
pyup-bot
02cccb3673
Update colorama from 0.3.7 to 0.3.8
2017-04-23 11:48:10 +02:00
pyup-bot
616a764b6d
Update hypothesis from 3.7.0 to 3.7.3
2017-04-21 20:00:01 +02:00
Florian Bruhin
1ebe0f2ce8
Regenerate docs
2017-04-20 04:40:03 +02:00
Florian Bruhin
c485b67fc0
Merge commit '6151b43c47f1ed0b8a6f0118037ba8bb93447f42' into rcorre/fix-qutescheme-bench
2017-04-20 04:39:45 +02:00
Florian Bruhin
0b118f4fd8
Blacklist pydocstyle >= 2.0.0
...
Closes #2539
2017-04-20 04:35:10 +02:00
pyup-bot
0c96a32366
Update setuptools from 35.0.0 to 35.0.1
2017-04-19 01:52:32 +02:00
Florian Bruhin
b82aada50b
Fix highlights in crowdfunding note
2017-04-18 16:38:36 +02:00
Florian Bruhin
59a01b860f
Add crowdfunding note to README/website
2017-04-18 16:36:14 +02:00
Ryan Roden-Corrent
6151b43c47
Fix qute_history benchmark.
...
This benchmark was running very quickly due to an improper setup.
The current history implementation expects that a newly inserted entry must
be more recent than any existing entries and sorts according to this
assumption.
The benchmark test inserts increasingly older entries, breaking this invariant.
When run in the benchmark, the qute://history/data implementation would
see an entry older than the oldest time in the time window and would
immediately return with a single "next" entry.
This patch inserts data in an order that mantains history's invariant and adds
a sanity-check at the end of the test. It does not check for the exact length
as not all entries will be within the time window. The length will be some
values <= 100000, the check just ensures that there is at least something more
than a "next" entry.
Before:
---------------------------------------------- benchmark: 1 tests ----------------------------------------------
Name (time in us) Min Max Mean StdDev Median IQR Outliers(*) Rounds Iterations
----------------------------------------------------------------------------------------------------------------
test_qute_history_benchmark 9.3050 21.9250 9.6143 0.2454 9.5880 0.1070 230;360 9930 1
----------------------------------------------------------------------------------------------------------------
After:
-------------------------------------------------- benchmark: 1 tests -------------------------------------------------
Name (time in ms) Min Max Mean StdDev Median IQR Outliers(*) Rounds Iterations
-----------------------------------------------------------------------------------------------------------------------
test_qute_history_benchmark 220.7040 223.1900 221.7536 1.1070 221.1939 1.8803 1;0 5 1
-----------------------------------------------------------------------------------------------------------------------
2017-04-17 12:15:49 -04:00
Florian Bruhin
db8b6d3e68
Add test for QNetworkReply.abort
2017-04-17 16:02:57 +02:00
Florian Bruhin
d60fc90ffd
Merge commit '6fb48a5514f2f5dd6759ccfae0ea66ec8ad8297a' into pyup-bot/pyup-update-astroid-1.5.1-to-1.5.2
2017-04-17 16:01:36 +02:00
pyup-bot
00e4bf7640
Update pylint from 1.7.0 to 1.7.1
2017-04-17 15:20:23 +02:00
pyup-bot
6fb48a5514
Update astroid from 1.5.1 to 1.5.2
2017-04-17 14:00:24 +02:00
Florian Bruhin
ad9e82b91e
Adjust bookmark tests
2017-04-16 21:13:01 +02:00
Florian Bruhin
9d2734ff62
Make sure host is valid for qute:// redirects
2017-04-16 13:15:15 +02:00
Florian Bruhin
c82bd83715
Implement RedirectNetworkReply.abort
2017-04-16 13:14:19 +02:00
Florian Bruhin
6deb079c2a
Merge commit 'dd24039d64e72d4a79cda9ee3b7d0d0b19f146a4' into danieljakots/master
2017-04-16 13:09:09 +02:00
Florian Bruhin
d1d858b630
Merge commit '9050aac71e433dc82d087d47eb31f1f4e764d809' into pyup-bot/pyup-update-setuptools-34.4.1-to-35.0.0
2017-04-16 13:09:03 +02:00
Florian Bruhin
2d45257dcc
Remove exclamation mark for bookmark messages
2017-04-16 13:08:15 +02:00
Florian Bruhin
842c2d297e
Allow to set message clear timer to 0
...
Fixes #2527
2017-04-16 13:07:33 +02:00
pyup-bot
9050aac71e
Update setuptools from 34.4.1 to 35.0.0
2017-04-15 17:37:14 +02:00
Daniel Jakots
dd24039d64
OpenBSD 6.1 is now released. Also prefer the package than the port.
2017-04-14 12:37:41 -04:00
Florian Bruhin
7c4e4a5818
Adjust flake8 config
...
Since we now ignore this on a per-file level for pylint, we need to do the
same for flake8 too.
2017-04-13 21:12:58 +02:00
Florian Bruhin
1d0f187fab
Adjustments for new pylint version
2017-04-13 18:22:16 +02:00
Florian Bruhin
90e9850ad9
Merge commit '4511d042a1b0dc2ec3174716da8696dd6a87202c' into pyup-bot/pyup-update-astroid-1.4.9-to-1.5.1
2017-04-13 17:34:22 +02:00
pyup-bot
10b1c954b2
Update pylint from 1.6.5 to 1.7.0
2017-04-13 17:30:12 +02:00
pyup-bot
4511d042a1
Update astroid from 1.4.9 to 1.5.1
2017-04-13 17:30:03 +02:00
Florian Bruhin
4a480e6f5f
Ignore Chromium NETLINK message
2017-04-12 13:24:10 +02:00
Florian Bruhin
fdaff02a58
Update docs
2017-04-12 12:43:38 +02:00
Fritz Reichwald
68c655bd9c
Add period at end of docstring to make flake happy
2017-04-12 10:21:03 +02:00
Fritz Reichwald
b00c1dc906
Add docstring
2017-04-12 09:23:29 +02:00
Fritz Reichwald
ff767dd965
Add neccessary metadata to py script
2017-04-12 08:47:39 +02:00
Fritz Reichwald
c38dc95c23
Add posix to stdin test beacause the py script fails on windows
2017-04-12 07:59:40 +02:00
Fritz Reichwald
b784ddeddd
Also test stdin close for detached start
2017-04-12 07:40:11 +02:00
Fritz Reichwald
590a9b4f78
Indent with spaces and minor changes
2017-04-12 07:32:40 +02:00
Fritz Reichwald
3d549bf607
Remove closeWriteChannel from detached start
2017-04-12 07:32:12 +02:00
Fritz Reichwald
424d0aec5a
change test_stdinclose.py to stdinclose.py
2017-04-12 07:31:24 +02:00
Fritz Reichwald
bc7f8018c0
Close stdin after starting QProcess Fixes 2491
2017-04-12 06:56:38 +02:00
Fritz Reichwald
75f8d2a1d1
Test if stdin gets closed when starting QProcess
2017-04-12 06:54:39 +02:00
Florian Bruhin
c47da15bb1
Remove nargs=1 for --debug-flag
...
Otherwisse we get [['foo'], ['bar']] from argparse...
2017-04-11 21:26:23 +02:00
Florian Bruhin
20b17f3fb1
Improve --debug-flag error message
2017-04-11 21:21:07 +02:00
Florian Bruhin
13c5150e58
Update docs
2017-04-11 21:21:07 +02:00
Florian Bruhin
b966034250
Merge commit 'f31aead992e829cb15c4fbedbf816a23d2a916a7' into jswz72/master
2017-04-11 21:17:49 +02:00
pyup-bot
a4c3aaaf1d
Update setuptools from 34.4.0 to 34.4.1
2017-04-10 18:34:47 +02:00
Florian Bruhin
b1e3add02e
Update screenshots
2017-04-10 08:47:43 +02:00
Jacob Sword
f31aead992
Add default to --debug-flag
2017-04-09 23:34:33 -04:00
Jacob Sword
dcf8f29a67
Remove old --pdb-postmortem and --debug-exit flags
2017-04-09 10:43:40 -05:00
Jacob Sword
c0ac1bd79a
Add 'dest' for '--debug-flag'
2017-04-09 10:34:51 -05:00
Florian Bruhin
fc37223d1b
Regenerate docs properly for qute:help test
2017-04-09 11:36:13 +02:00
Jacob Sword
37d91cd17b
Merge branch 'master' of https://github.com/jswz72/qutebrowser
2017-04-08 19:05:22 -04:00
Jacob Sword
7588cdb185
fixed formatting issues
2017-04-08 19:04:25 -04:00
Jacob Sword
6ccb420230
Fix syntax error in debug-exit
2017-04-08 18:42:26 -04:00
Florian Bruhin
778832a813
Set path when redirecting qute:* URLs
...
Fixes #2513
2017-04-08 23:04:10 +02:00
Jacob Sword
45dff6c0c8
update usage of debug-flag arguments
2017-04-08 16:54:08 -04:00
Florian Bruhin
28e6158a04
Stabilize some tests with Qt 5.9 QtWebEngine
2017-04-08 20:38:23 +02:00
Florian Bruhin
232f091bfe
Merge branch 'pyup-bot/pyup-update-setuptools-34.3.3-to-34.4.0'
2017-04-08 20:24:03 +02:00
Florian Bruhin
ee31922c46
Merge commit '043039d673e9435d80034a80dcfe389f26d2dd06' into pyup-bot/pyup-update-setuptools-34.3.3-to-34.4.0
2017-04-08 20:15:13 +02:00
Florian Bruhin
6051f93c02
Avoid checking for scroll position in macro tests
...
This makes them simpler and more stable.
2017-04-08 19:54:30 +02:00
Florian Bruhin
e23318fe91
Mark failing test as flaky on QtWebEngine
...
It consistently fails on Qt 5.9 now while waiting the page to be scrolled to
0/20, but I can't figure out why that is happening.
See #2514 , #2410
2017-04-08 19:29:46 +02:00
Florian Bruhin
a081d4184d
tests: Adjust percent-encoding tests for Qt 5.9 changes
...
See #2514
2017-04-08 19:25:55 +02:00
Florian Bruhin
c23e4b1c5f
tests: Allow @qt<... marker for BDD tests
2017-04-08 19:20:53 +02:00
pyup-bot
043039d673
Update setuptools from 34.3.3 to 34.4.0
2017-04-08 05:19:34 +02:00
Jacob Sword
dadbf7657f
Merge remote-tracking branch 'upstream/master'
2017-04-07 21:21:01 -04:00
Jacob Sword
3b87e7c297
Add --debug-exit argument and validity check
2017-04-07 21:12:42 -04:00
Florian Bruhin
0068d87382
Merge commit '8878f867a7c8565801bc0187796e6638bfe02c85' into pyup-bot/pyup-update-tox-2.6.0-to-2.7.0
2017-04-06 21:44:32 +02:00
Florian Bruhin
fd9b86a340
Remove unused imports
2017-04-06 21:40:26 +02:00
Florian Bruhin
871504d91b
Fix undefined names
2017-04-06 21:37:23 +02:00
pyup-bot
8878f867a7
Update tox from 2.6.0 to 2.7.0
2017-04-06 21:19:49 +02:00
Florian Bruhin
4ec5700cbf
Redirect qute:foo to qute://foo
...
Before, we just returned the same data for both, but then we'll run into
same-origin restrictions as qute:history and qute:history/data are not the same
host.
2017-04-06 21:18:58 +02:00
Florian Bruhin
3cc9f9f073
Don't use from-import
2017-04-06 20:36:54 +02:00
Florian Bruhin
6d4948f9d0
Update authors
2017-04-06 20:35:32 +02:00
Florian Bruhin
760dca475e
Merge commit 'be254be13a61171d4109224450db9e67d1076080' into imransobir/fix-webkit-history
2017-04-06 20:34:49 +02:00
Florian Bruhin
6f952c83af
Update docs
2017-04-06 07:16:18 +02:00
Florian Bruhin
d9d0fbb6ae
Merge commit 'e7755f5d9f8a5e995b83a239c05016cf1d58abba'
2017-04-06 07:10:22 +02:00
Martin Tournoij
e7755f5d9f
Add :debug-log-filter none
...
This allows us to clear any filters. Useful for users, and needed for
the tests.
2017-04-04 20:51:14 +01:00
Martin Tournoij
857565c384
Mention that qutebrowser@ also gets the mails from qutebrowser-announce@
2017-04-04 19:58:51 +01:00
Martin Tournoij
200e439a30
Fix crash of :debug-log-filter when --filter wasn't given
...
There was no `LogFilter`. The fix is to always initialize a
`LogFilter()` with `None`. as the "filter".
Fixes #2303 .
2017-04-04 17:45:23 +01:00
Florian Bruhin
6c8ca30766
Update docs
2017-04-04 18:26:04 +02:00
Imran Sobir
be254be13a
Use new history page on webkit-ng.
2017-04-04 19:21:25 +05:00
Martin Tournoij
c5427a0127
Fix display of errors while reading the key config file
...
Also catch `cmdexc.CommandError` on startup to show these errors in the
alert dialog on startup.
Fixes #1340
2017-04-04 09:50:12 +01:00
Florian Bruhin
0de3b5460e
Only disable the cache on Qt 5.7.1
...
I ended up bisecting it, and https://codereview.qt-project.org/#/c/153977/
causes this, which is not in 5.7.0.
2017-04-04 08:24:50 +02:00
Florian Bruhin
2eb365b146
Also disable cache on Qt 5.7
2017-04-03 20:22:54 +02:00
Florian Bruhin
b6642e66fa
Fix cache tests on Qt 5.8
2017-04-03 19:41:37 +02:00
Florian Bruhin
1b0ea19ca4
Disable QtNetwork cache on Qt 5.8
...
See #2427
2017-04-03 17:49:13 +02:00
pyup-bot
8f82113748
Update jinja2 from 2.9.5 to 2.9.6
2017-04-03 16:32:48 +02:00
Florian Bruhin
cb4c64eec9
Remove null argument for QtValueError
2017-04-03 10:18:56 +02:00
Florian Bruhin
2c3fcda18e
Remove qtutils.ensure_not_null
...
It's not used anymore.
2017-04-03 09:32:13 +02:00
Florian Bruhin
3b1b325711
Fix logging
2017-04-03 09:04:28 +02:00
Florian Bruhin
a11356bb99
Don't require working icon to start
2017-04-03 08:32:39 +02:00
Florian Bruhin
9dc5e978ac
Update docs
2017-04-03 06:55:54 +02:00
Florian Bruhin
35181ff84e
Merge commit '4004d5adf09e6d22dae5d781a02c5fc2bbd26724' into Carpetsmoker/unwritable-keyconf
2017-04-03 06:55:01 +02:00
Martin Tournoij
4004d5adf0
Don't crash when trying to write an unwritable keyconf.
...
Also change the logic in _load_default a wee bit so that it won't try to
write the keys.conf on startup.
Fixes #1235
2017-04-03 01:48:39 +01:00
Florian Bruhin
30655e29fc
Regenerate authors
2017-04-02 22:58:22 +02:00
Florian Bruhin
55b0f16383
Merge commit 'cdb3605b03911e0cffce7cc7a07bb5b120d195ce' into Penaz91/master
2017-04-02 22:57:47 +02:00
Florian Bruhin
e3fc23fa30
Update authors
2017-04-02 19:24:06 +02:00
Florian Bruhin
2108846948
Merge commit '1a337f6a77cf9e284abcf14813b6c70241e0045c' into Carpetsmoker/document-spell
2017-04-02 19:23:52 +02:00
Florian Bruhin
ad6ed83782
Update changelog
2017-04-02 19:17:13 +02:00
Florian Bruhin
248ff09624
Merge commit '5efca155948bc467e4fb7b19dafd98d47e33745b' into Carpetsmoker/config-comments
2017-04-02 19:14:00 +02:00
Florian Bruhin
48094fb33d
Update authors
2017-04-02 18:47:16 +02:00
Florian Bruhin
b20267b57d
Merge commit '7f13c9a3c31aa719144ca3afcad7af305dd2f6ed' into Carpetsmoker/relax-cmdline
2017-04-02 18:47:00 +02:00
Florian Bruhin
338307ac24
Add #noqa for Quitter._shutdown
2017-04-02 18:35:10 +02:00
Florian Bruhin
f595c2a7fb
Update changelog
2017-04-02 18:34:39 +02:00
Florian Bruhin
e2cf02c705
Merge commit '79a22f1f4751741cabd5f5a19ee4bcdb6b6dfce8' into Carpetsmoker/unknown-setting-c
2017-04-02 18:34:12 +02:00
Florian Bruhin
f2ddf608a8
Update authors
2017-04-02 18:33:55 +02:00
Florian Bruhin
bf1834e132
Merge commit '522e105aaf4c326d27e087222c0ba76680d1bed3' into pyup-bot/pyup-update-flask-0.12-to-0.12.1
2017-04-02 18:11:34 +02:00
Florian Bruhin
2238a888dc
Fix changelog
2017-04-02 15:20:44 +02:00
Penaz
cdb3605b03
Update INSTALL.asciidoc
2017-04-02 10:36:11 +02:00
Penaz
1f2e04c466
Update INSTALL.asciidoc
...
Updated Install.asciidoc to include Live Install on Gentoo
2017-04-01 23:32:42 +02:00
Martin Tournoij
79a22f1f47
Allow pressing ^C when there's an unknown setting
...
All of it is just converting `objreg.get('xxx')` to `objreg.get('xxx',
None)` and adding a `if xxx is not None` check.
Fixes #1170
2017-04-01 21:14:35 +01:00
Martin Tournoij
1a337f6a77
Document how to do spell checking in the FAQ
2017-03-31 18:51:04 +01:00
pyup-bot
522e105aaf
Update flask from 0.12 to 0.12.1
2017-03-31 19:49:32 +02:00
Martin Tournoij
7f13c9a3c3
Relax commandline parsing a bit
...
Problem 1: Entering a command of `:::save` gives an error.
Problem 2: Entering a command of `:save\n` gives an error.
Both scenarios may seem a bit silly at first, but I encountered both by
copy/pasting a command:
1. Enter `:` in qutebrowser.
2. Copy a full line from a terminal starting with `:`.
3. You will now have both of the above problems.
Solution: Trim all whitespace and `:` of a command. This is also what
Vim does, by the way.
2017-03-31 17:14:11 +01:00
Florian Bruhin
9cd2c9aa6d
Merge branch 'Carpetsmoker/feature-modeline'
2017-03-31 17:47:34 +02:00
Florian Bruhin
05059b4a5e
Merge commit '8af5cfb4ac9e6d928cfeb0522fa729ba616df70a'
2017-03-31 17:47:34 +02:00
Florian Bruhin
80a5613b80
Merge commit '8af5cfb4ac9e6d928cfeb0522fa729ba616df70a' into Carpetsmoker/feature-modeline
2017-03-31 17:47:02 +02:00
Martin Tournoij
8af5cfb4ac
Add a modeline to all the *.feature files
...
This really tripped me up yesterday, My "Vim default" is to use tabs.
This (where `!···` is a tab) does not work as you'll hope it works:
Scenario: Retrying a failed download when the directory didn't exist (issue 2445)
When I download http://localhost:(port)/data/downloads/download.bin to <path>
And I wait for the error "Download error: No such file or directory: *"
And I make the directory <mkdir>
And I run :download-retry
!···!···And I wait until the download is finished
Then the downloaded file <expected> should exist
Examples:
| path | mkdir | expected |
| asd/zxc/ | asd/zxc | asd/zxc/download.bin |
Unfortunately, pytest-bdd uses the "Python 2 behaviour" of "expand all
tabs to 8 spaces", and doesn't give any errors on strange/inconsistent
whitespace. It can cause very confusing errors.
2017-03-31 16:16:31 +01:00
Florian Bruhin
189c1721af
Don't wait for download.bin in windows downloads
2017-03-31 14:46:29 +02:00
Florian Bruhin
fd276dabc7
appveyor_install: Don't install old PyQt if unneeded
2017-03-31 13:05:35 +02:00
Florian Bruhin
c28c428051
appveyor: Add Python36 to PATH
...
Otherwise the PyQt in the virtualenv won't be able to find python3.dll.
2017-03-31 13:05:35 +02:00
Florian Bruhin
a6041834f8
Try adding a PyPI testenv on AppVeyor
2017-03-31 13:05:34 +02:00
Florian Bruhin
6c3abadb32
Stabilize :repeat-command test
2017-03-31 13:05:34 +02:00
Florian Bruhin
004eb742f6
Stabilize test_guiprocess
2017-03-31 13:05:34 +02:00
Florian Bruhin
43155b0cc8
Stabilize history.replaceState tests
2017-03-31 13:05:34 +02:00
Florian Bruhin
eb202d761c
Stabilize dumping bookmarks test
...
For some reason, with QtWebEngine on Windows, sometimes the :debug-dump-page
callback does not get called if we try to dump the same page again...
2017-03-31 13:05:34 +02:00
Florian Bruhin
1eda2b0ea4
Fallback to clipboard when primary selection is unsupported
2017-03-31 13:05:34 +02:00
Florian Bruhin
64feb62fb1
Paste clipboard when using shift-insert in prompts
2017-03-31 13:05:34 +02:00
Florian Bruhin
7dba877354
tests: Update "Unable to set geometry" ignore
2017-03-31 13:05:34 +02:00
Florian Bruhin
2884277dbd
Fix Shift-Insert without it being supported
2017-03-31 13:05:34 +02:00
Florian Bruhin
dc405ec3a8
Skip QtWebEngine SSL tests on Windows
2017-03-31 13:05:34 +02:00
Florian Bruhin
a4619d07db
tests: Wait until about:blank is loaded
2017-03-31 13:03:40 +02:00
Florian Bruhin
bf66bb221f
Ignore getrlimit error during tests
2017-03-31 13:03:40 +02:00
Florian Bruhin
708b46d6c0
Fix text with empty primary selection
2017-03-31 13:03:40 +02:00
Florian Bruhin
4d49d9da09
Skip renderer process crash test on Windows
2017-03-31 13:03:40 +02:00
Florian Bruhin
c551c62c27
Stabilize JS tests
2017-03-31 13:03:40 +02:00
Florian Bruhin
dc0a782839
Run python in hints tests
2017-03-31 13:03:40 +02:00
Florian Bruhin
2c4e549d80
Close temporary download file for QtWebEngine
...
Otherwise, Chromium won't be able to write on it on Windows - and we only
need the name anyways.
2017-03-31 13:03:18 +02:00
Florian Bruhin
edb197b028
Make waiting for download prompt more robust
2017-03-31 13:03:18 +02:00
Florian Bruhin
e28eabe5eb
Add marker for #2478
2017-03-31 13:03:17 +02:00
Florian Bruhin
5a16133685
Fix prompt with SSL error test
2017-03-31 13:03:17 +02:00
Florian Bruhin
a3a885f053
Ignore bogus Qt warning during tests
2017-03-31 13:03:17 +02:00
Florian Bruhin
a55d1b1ee8
Save old socket for IPC
...
At least on Windows with Qt 5.8, we get readyRead notifications *after*
disconnect...
2017-03-31 13:03:17 +02:00
Florian Bruhin
57223b78f3
Merge commit '03704ecb4b3b603379f7caf297ae568f0902f90a'
2017-03-31 12:06:07 +02:00
Florian Bruhin
390006281f
Merge commit '3c8e2a630a374fb571d70ed8c5a9f0c7faefd64a' into pyup-bot/pyup-update-pyqt5-5.8.1.1-to-5.8.2
2017-03-31 12:04:17 +02:00
Florian Bruhin
150676404e
Merge commit '47c7feea551e8a6822d5da522187cca417ca3223' into pyup-bot/pyup-update-pytest-mock-1.5.0-to-1.6.0
2017-03-31 12:04:15 +02:00
Florian Bruhin
134155480e
tox: Update PyQt5 to 5.8.2
2017-03-31 10:10:55 +02:00
Florian Bruhin
3b351d9066
Run more invocation tests with QtWebEngine
2017-03-31 06:18:43 +02:00
pyup-bot
47c7feea55
Update pytest-mock from 1.5.0 to 1.6.0
2017-03-31 01:25:27 +02:00
Florian Bruhin
eb31f679f4
Allow unknown args in testbrowser
2017-03-30 21:50:19 +02:00
Martin Tournoij
5efca15594
Put option comments right above the option value
...
Problem: I like to edit `~/.config/qutebrowser/qutebrowser.conf`
manually with Vim. This works great, except that the current format is a
bit of a pain to deal with:
[section-name]
# section description
#
# [ Description of all the options]
actual options
So if I want to know the description or what the default value is, I
need to scroll up and back down.
Solution: change the order of the comments to:
# section description
[section-name]
# Option description
option = value
# Option description two
optiontwo = value
# Hello, world!
[section-two]
...
Which is much more convenient (and also what almost any other program
does).
(This patch changes much less code than it looks in the diff; I just
de-looped and moved `_str_option_desc` below `_str_items` as that makes
more sense since it gets called by `_str_items`).
2017-03-30 18:45:28 +01:00
pyup-bot
3c8e2a630a
Update pyqt5 from 5.8.1.1 to 5.8.2
2017-03-30 13:39:30 +02:00
pyup-bot
03704ecb4b
Update sip from 4.19.1 to 4.19.2
2017-03-30 12:39:24 +02:00
Florian Bruhin
6939f81de7
Merge commit '563a5431e35831cb0a8c418835c54d0264d92c78' into Kingdread/windows-drive-cwd
2017-03-30 10:48:39 +02:00
Florian Bruhin
2377235c14
Merge commit 'caf0a87e16cf930f67ce9fc64ea94e17cae6269d' into amosbird/master
2017-03-30 10:48:32 +02:00
Florian Bruhin
20c414a62c
Update changelog
2017-03-30 10:44:11 +02:00
Florian Bruhin
203b2d30cc
Update changelog
2017-03-30 10:42:43 +02:00
Florian Bruhin
6a144ef7bd
Merge branch 'Kingdread/windows-drive-cwd'
2017-03-30 10:41:58 +02:00
Daniel Schadt
563a5431e3
fixup! use message.error instead of a tooltip
2017-03-29 18:32:07 +02:00
Daniel Schadt
186eab8eb1
use message.error instead of a tooltip
2017-03-29 17:07:53 +02:00
Daniel Schadt
99f7bfa712
show messages on top of the prompt
...
Otherwise, errors are hidden behind the prompt, which makes it hard to
use them in the filename prompt.
2017-03-29 16:44:29 +02:00
Imran Sobir
3aaebe83fb
Remove noscript message from history.html.
2017-03-29 14:22:58 +05:00
Amos Bird
caf0a87e16
Fix #2476 , recognize SOCKS5, SOCKS4 in proxy.
2017-03-29 14:22:37 +08:00
Florian Bruhin
93a12797aa
Fix quteprocess tests with Python 3.6 on Windows
...
Values smaller than 86400 would result in a negative unsupported timestamp and
thus throw ValueError in Python 3.6
2017-03-28 20:53:11 +02:00
Florian Bruhin
5d9cd98c0f
tox: Add a mkvenv-win-pypi env
2017-03-28 20:42:23 +02:00
Florian Bruhin
fe81f153cf
tests: Ignore "Unable to locate theme engine" messages
2017-03-28 20:41:23 +02:00
Imran Sobir
4a4c7b96d1
Add nojs history page.
2017-03-28 18:34:47 +05:00
Florian Bruhin
607710eeae
Update changelog
...
[ci skip]
2017-03-27 08:02:43 +02:00
Florian Bruhin
bcb4649235
Fix crash when window_ids change during init
2017-03-27 08:00:19 +02:00
Florian Bruhin
b98d34b29c
Handle None-tab in get_tab_fields
...
I can't reproduce this but I got a crash report about it.
2017-03-27 07:57:43 +02:00
Florian Bruhin
bcee6d295c
Handle None-widget in tabbedbrowser.widgets()
...
I can't reproduce this, but got a crash report about it.
2017-03-27 07:52:33 +02:00
Florian Bruhin
5a4d11be68
Fix lint
2017-03-27 07:16:10 +02:00
Florian Bruhin
a8bc531eee
Add a test for :open with -s
2017-03-27 07:09:55 +02:00
Florian Bruhin
43090d146b
Update docs
2017-03-27 07:09:48 +02:00
Florian Bruhin
f6906512dc
Merge commit 'df93e30ec20dd1b2b4fe163bdb5a69c232fb8c71' into Al-Caveman/master
2017-03-27 07:00:53 +02:00
Florian Bruhin
37d22a7cfd
Merge commit '9dccd00ebb2483fd0bb6c6447f57c76a4b40d335' into Kingdread/windows-drive-cwd
2017-03-26 22:14:47 +02:00
pyup-bot
b3660cf3f4
Update setuptools from 34.3.2 to 34.3.3
2017-03-26 18:21:23 +02:00
Florian Bruhin
39b09f7822
Improve messageview hide code
2017-03-26 15:03:44 +02:00
Florian Bruhin
59094b71a9
Update docs
2017-03-26 15:03:44 +02:00
Florian Bruhin
2181e1ddc4
Merge commit '13677d3563dbd01ae188a2b1a79c7dd840a5dc5e' into pkill-nine/upstream-master-close_message_on_click
2017-03-26 14:59:08 +02:00
pkill9
13677d3563
Add mouse back button to click test.
2017-03-25 21:16:51 +00:00
pkill9
5e1c530d71
Add docstring to MessageView.mousePressEvent
2017-03-25 21:03:21 +00:00
pkill9
bf2493c1c4
Add test.
2017-03-25 20:06:58 +00:00
pkill9
67034273f7
Move criteria into a list and add middle mouse button.
2017-03-25 15:58:37 +00:00
caveman
df93e30ec2
fixes #2468
2017-03-25 11:44:36 +04:00
Daniel Schadt
9dccd00ebb
fix unused import
2017-03-24 14:49:30 +01:00
Daniel Schadt
a011034ff7
fix tests
2017-03-24 13:21:09 +01:00
Daniel Schadt
df83f7aa99
also add path transformations to :download
2017-03-24 12:30:29 +01:00
Daniel Schadt
07b3a7db7c
add integration tests for reserved filenames
2017-03-24 11:57:05 +01:00
Daniel Schadt
bc4430e5d9
prevent reserved filenames on Windows
...
Fixes #82
Prevents filenames like COM1, ...
2017-03-24 11:36:19 +01:00
Daniel Schadt
9d905ebb5c
disallow filenames like E:filename
...
Per-drive working directories are not really supported.
2017-03-24 11:04:20 +01:00
Florian Bruhin
52b448e368
pylint: Ignore no-else-return
...
This will be added in the next pylint release, and it seems we can already add
it without getting an error.
2017-03-23 20:51:37 +01:00
Florian Bruhin
38beba98b9
pylint-master requirements: Add github3.py
2017-03-23 20:32:58 +01:00
Daniel Schadt
3da21a32d2
treat E: and E:\ the same when downloading
...
Fixes #2305
2017-03-23 18:16:15 +01:00
Florian Bruhin
a7d6cc6509
Update docs
2017-03-23 06:17:48 +01:00
Ryan Roden-Corrent
a68f997d95
Make keyhint delay configurable.
...
ui.keyhint-delay controls the time from starting a keychain to showing the
keyhint dialog. Resolves #2462 .
2017-03-22 21:50:26 -04:00
Florian Bruhin
0c7d012420
Update changelog
2017-03-22 22:54:33 +01:00
Florian Bruhin
042ffeca91
Merge commit '631936361405d812f353b4108246c883cdf48100' into Kingdread/issue-2304
2017-03-22 22:50:28 +01:00
Daniel Schadt
6319363614
add a test for downloading a 500 inline attachment
2017-03-22 13:38:03 +01:00
Florian Bruhin
4d65abfcc6
Check if widget is deleted in _on_webkit_icon_changed
2017-03-22 06:32:09 +01:00
Daniel Schadt
ebc70f66e5
Check for None-reply in _do_die
...
Fixes #2304
In some cases, the finished handler fired before the error handler, e.g.
when downloading a 500 error page that is sent as attachment:
HTTP/1.1 500 Internal Server Error
Content-Type: application/octet-stream
Content-Disposition: inline; filename="attachment.jpg"
here we downloaded 0 bytes, fired the finished handler and after that
fired the error handler because of the 500 - but the finished handler
had already set our reply to None (and displayed the error message).
2017-03-21 18:54:21 +01:00
Florian Bruhin
f8e043214a
Update WORKAROUND comments
2017-03-21 10:29:31 +01:00
Florian Bruhin
081abde9cd
Fix indent
2017-03-20 22:06:05 +01:00
Florian Bruhin
3fbb9a14e0
Fix continuing a search after clearing it
...
Fixes #2438
2017-03-20 21:34:33 +01:00
Florian Bruhin
41268f994d
Merge branch 'pyup-bot/pyup-update-hypothesis-3.6.1-to-3.7.0'
2017-03-20 17:58:34 +01:00
Florian Bruhin
78ae6a7a5f
Merge commit 'cd91da32c4a1680cb201e58e40dfb3744628eca8'
2017-03-20 17:58:34 +01:00
Florian Bruhin
13878647b2
Merge commit 'cd91da32c4a1680cb201e58e40dfb3744628eca8' into pyup-bot/pyup-update-hypothesis-3.6.1-to-3.7.0
2017-03-20 16:48:41 +01:00
Florian Bruhin
c996245012
Fix line length
2017-03-20 16:48:21 +01:00
Florian Bruhin
c48339fe06
Update changelog
2017-03-20 16:47:36 +01:00
pyup-bot
cd91da32c4
Update hypothesis from 3.6.1 to 3.7.0
2017-03-20 16:04:22 +01:00
Florian Bruhin
98f17a03bb
Prevent page without history from being serialized
...
Fixes #2458
2017-03-20 11:50:04 +01:00
Florian Bruhin
4b6b9c2d21
Add missing file
2017-03-20 11:28:01 +01:00
Florian Bruhin
ed4cd816d4
Update docs
2017-03-20 09:45:27 +01:00
Florian Bruhin
6888ac04e1
Fix handling of failed downloads with QtWebEngine
2017-03-20 09:44:07 +01:00
Florian Bruhin
3e2ba32240
Fix retrying downloads with QtWebEngine
...
Fixes #2298
2017-03-20 09:35:53 +01:00
Florian Bruhin
1581db2d59
Update changelog
2017-03-20 09:16:26 +01:00
Florian Bruhin
1179ee7a93
Merge branch 'imransobir/newhistory'
2017-03-20 09:11:58 +01:00
Florian Bruhin
7652b6ae03
Merge commit '724e6b29c38a55f722f17997379f1ebe190fa6db'
2017-03-20 09:11:47 +01:00
pyup-bot
26f5fb8eb4
Update cheroot from 5.3.0 to 5.4.0
2017-03-19 17:19:46 +01:00
thuck
20d058741e
Merge branch 'pintab' of https://github.com/thuck/qutebrowser into pintab
2017-03-19 14:43:36 +01:00
thuck
650b1de3b6
Merge branch 'master' of https://github.com/The-Compiler/qutebrowser into pintab
2017-03-19 14:26:48 +01:00
thuck
02bf0401ab
Last pinned to pinned_count
2017-03-19 14:05:21 +01:00
thuck
2eb07fc9cc
Fix line size
2017-03-19 14:03:24 +01:00
MikeinRealLife
a1e1e90ec9
Issue #2292
...
Added a list of chrome urls that work. A couple of with (?) next to
them did nothing and didn't hang or kill the browser, so I removed them.
They only work in OSX, not windows (opened separate issue for this).
2017-03-18 20:05:21 -07:00
Florian Bruhin
1254f4d132
Add -bb when running tests
...
Fixes #1989
2017-03-18 21:08:07 +01:00
Florian Bruhin
069f908a61
Get rid of run_pytest.py
...
Fixes #2452
2017-03-18 21:03:52 +01:00
Florian Bruhin
7c94b06be1
Merge commit '724e6b29c38a55f722f17997379f1ebe190fa6db' into imransobir/newhistory
2017-03-18 18:31:45 +01:00
pyup-bot
dc50c6ac3d
Update py from 1.4.32 to 1.4.33
2017-03-17 04:29:28 +01:00
pyup-bot
4b4c28fc6a
Update py from 1.4.32 to 1.4.33
2017-03-17 04:29:26 +01:00
Florian Bruhin
99c7301fb4
Update IPC atime once all 3h
...
See #996
2017-03-16 09:24:49 +01:00
Imran Sobir
724e6b29c3
Make session interval configurable.
2017-03-16 12:11:16 +05:00
Imran Sobir
fb97c6dffc
Send history item atime in milliseconds.
2017-03-16 12:03:40 +05:00
Florian Bruhin
befb1afb2c
Fix vulture
2017-03-16 07:50:23 +01:00
Florian Bruhin
d33e590ce5
Fix lint
2017-03-15 22:15:52 +01:00
Florian Bruhin
a70012b32e
Merge commit '5f17887a255494e1872c33c96f0596d6701e35fc' into pyup-bot/pyup-update-werkzeug-0.12-to-0.12.1
2017-03-15 20:01:02 +01:00
Florian Bruhin
85fff35eef
Merge branch 'gl-workaround'
2017-03-15 19:52:33 +01:00
Florian Bruhin
0877092cea
Add workaround for black screen with QtWebEngine
...
Fixes #2441
2017-03-15 19:52:21 +01:00
pyup-bot
5f17887a25
Update werkzeug from 0.12 to 0.12.1
2017-03-15 19:00:29 +01:00
Florian Bruhin
54eddc4658
Merge commit '578fac1331ea5d733088379b28edc760964147b1' into pyup-bot/pyup-update-pytest-3.0.6-to-3.0.7
2017-03-15 08:24:17 +01:00
pyup-bot
d19979aa4a
Update wrapt from 1.10.8 to 1.10.10
2017-03-15 01:48:48 +01:00
pyup-bot
c40844dc09
Update wrapt from 1.10.8 to 1.10.10
2017-03-15 01:48:47 +01:00
pyup-bot
578fac1331
Update pytest from 3.0.6 to 3.0.7
2017-03-15 01:18:51 +01:00
Florian Bruhin
608a16c8b7
Regen docs
2017-03-14 17:32:02 +01:00
Florian Bruhin
84d2e9adc6
Improve documentation around scrolling
...
Fixes #2447
2017-03-14 16:58:33 +01:00
Florian Bruhin
3a88b70eca
Fix PyQt5 version in tox.ini
2017-03-13 09:11:22 +01:00
Florian Bruhin
f50485420a
Merge commit 'b5d5f323bb85cfe6824bab97a6e29efe5204616f' into pyup-bot/pyup-update-werkzeug-0.11.15-to-0.12
2017-03-13 07:47:58 +01:00
Florian Bruhin
db4ca46ec1
Merge commit '4d9d4490f59401d790139b4e5cf45dc2b9096eee' into pyup-bot/pyup-update-setuptools-34.3.1-to-34.3.2
2017-03-13 07:47:56 +01:00
Florian Bruhin
b35be46b8d
Merge commit '4b5af2296d07c7c9f0e6197d7167509ecc35c4f4' into pyup-bot/pyup-update-cheroot-5.2.0-to-5.3.0
2017-03-13 07:47:53 +01:00
Florian Bruhin
68247a1ef0
Fix PyQt5 requirements
...
See https://www.riverbankcomputing.com/pipermail/pyqt/2017-March/038964.html
2017-03-13 07:39:21 +01:00
Florian Bruhin
8d9030ec47
Use debug log for on_timeout message
2017-03-13 07:01:21 +01:00
Florian Bruhin
ecec836111
Fix adblock UTF-8 test on Windows
2017-03-13 07:01:13 +01:00
Florian Bruhin
7d9686f917
Don't keep temporary files around in asciidoc2html
...
Fixes #2431
2017-03-13 06:56:29 +01:00
pyup-bot
4b5af2296d
Update cheroot from 5.2.0 to 5.3.0
2017-03-12 18:54:35 +01:00
pkill9
b1771a13c9
Removed setting.
2017-03-12 16:48:57 +00:00
pkill9
87c4c143bf
Clear notification messages in a window when they're clicked.
2017-03-11 20:45:12 +00:00
pyup-bot
4d9d4490f5
Update setuptools from 34.3.1 to 34.3.2
2017-03-11 15:59:29 +01:00
pyup-bot
b5d5f323bb
Update werkzeug from 0.11.15 to 0.12
2017-03-10 13:22:25 +01:00
Imran Sobir
ccbf8572c3
Check for null when receiving history.
2017-03-09 22:16:46 +05:00
Imran Sobir
a1bec12b2e
Ensure qute:javascript throws QuteSchemeOSError on 404.
2017-03-09 22:07:55 +05:00
Imran Sobir
50bca33618
Use OSError instead of IOError.
2017-03-09 21:47:12 +05:00
Imran Sobir
19b7f779ef
Fix ambiguity in history table ID.
2017-03-09 21:41:57 +05:00
Imran Sobir
3fbeecbec2
Hide 'Show more' when Javascript is disabled.
2017-03-09 21:35:22 +05:00
Florian Bruhin
0b5838f9fd
Fix BDD version check operators
2017-03-08 20:56:30 +01:00
Florian Bruhin
685393c289
Update docs
2017-03-08 19:23:01 +01:00
Florian Bruhin
eb2888a957
Merge commit 'd3b16bbd075f9e8c8656a402975d776088c2dab8' into pkill-nine/upstream-master-close_messages
2017-03-08 19:19:30 +01:00
Florian Bruhin
4278cd5e3e
Remove unused operator imports
2017-03-08 19:10:29 +01:00
Florian Bruhin
3925fa2872
Use separate requirements file for PyQt
2017-03-08 19:09:34 +01:00
pkill9
d3b16bbd07
Add command to clear messages - cleaner
2017-03-08 10:49:15 +00:00
Florian Bruhin
7d7f5350c5
Add test for utils.get_clipboard with empty clipboard
2017-03-08 09:33:36 +01:00
Florian Bruhin
7ba01e6764
Get rid of utils.actute_warning
...
Only Ubuntu Trusty still uses Qt < 5.3, and the issue seems to be fixed there by
now.
2017-03-08 09:25:46 +01:00
Florian Bruhin
f86f9cd92a
Refactor qtutils.version_check API
...
Fixes #2423
2017-03-08 08:41:18 +01:00
Florian Bruhin
ac0409c60d
Don't install requirements-pip.txt
...
It causes stuff to blow up when something in there got upgraded, and we ask pip
to downgrade one of its dependencies.
We still keep the file around so we get notified about updates.
2017-03-08 07:42:08 +01:00
Florian Bruhin
dfb4374ae1
Release v0.10.1
2017-03-08 06:26:22 +01:00
Florian Bruhin
6052d36ef0
Merge commit '2304fd81b5440e55d2686f7cb33c10bb8eaa9e92' into pyup-bot/pyup-update-markupsafe-0.23-to-1.0
2017-03-08 05:11:08 +01:00
Florian Bruhin
4110355167
Merge commit '9512206f97bc51bb2884c38a86b93a72e556428d' into pyup-bot/pyup-update-pyqt5-5.8-to-5.8.1
2017-03-08 05:11:00 +01:00
Florian Bruhin
589ea70626
Update changelog for v0.10.1
...
(cherry picked from commit 361e4e93ed )
2017-03-08 05:09:53 +01:00
Florian Bruhin
6bdf8495aa
pylint: Disable too-many-boolean-expressions
2017-03-08 05:06:35 +01:00
Florian Bruhin
7c9d004bbc
Fix compiled version check
...
Fixes #2412
2017-03-07 22:05:17 +01:00
Florian Bruhin
4c3c86081f
Refactor adblock parsing
2017-03-07 21:46:04 +01:00
Florian Bruhin
3258ef7e3f
Merge commit 'c50e652cc70dcf1f86dd440b82c2b3f3c8fd5663' into pyup-bot/pyup-update-appdirs-1.4.2-to-1.4.3
2017-03-07 20:37:36 +01:00
Florian Bruhin
ace4006179
Stringify py.path.local in adblock tests
2017-03-07 20:36:50 +01:00
Florian Bruhin
c45019f0a0
Handle invalid UTF8 data in hostblock lists
...
Fixes #2301
2017-03-07 20:25:13 +01:00
pyup-bot
2304fd81b5
Update markupsafe from 0.23 to 1.0
2017-03-07 17:20:17 +01:00
pyup-bot
9512206f97
Update pyqt5 from 5.8 to 5.8.1
2017-03-07 12:10:15 +01:00
pyup-bot
c50e652cc7
Update appdirs from 1.4.2 to 1.4.3
2017-03-07 09:00:55 +01:00
Florian Bruhin
3cc4f69125
Merge commit '7ef71750e769f9402991f72b1d0e78c0efacf14a' into pyup-bot/pyup-update-flake8-tidy-imports-1.0.5-to-1.0.6
2017-03-07 06:51:34 +01:00
Florian Bruhin
d42dff67f2
Reorder initialization
...
marcos.init() really belongs into _init_modules, and we need to do _process_args
after everything has been initialized.
Fixes #2408 .
2017-03-07 06:46:35 +01:00
pyup-bot
7ef71750e7
Update flake8-tidy-imports from 1.0.5 to 1.0.6
2017-03-07 06:16:53 +01:00
Florian Bruhin
35a58b27af
Merge pull request #2406 from qutebrowser/pyup-update-vulture-0.12-to-0.13
...
Update vulture to 0.13
2017-03-06 16:12:04 +01:00
pyup-bot
694a1247a1
Update vulture from 0.12 to 0.13
2017-03-06 13:30:50 +01:00
pyup-bot
990ee1826e
Update vulture from 0.12 to 0.13
2017-03-06 13:30:49 +01:00
Florian Bruhin
3870e9f6b4
Merge pull request #2405 from qutebrowser/pyup-update-pyparsing-2.1.10-to-2.2.0
...
Update pyparsing to 2.2.0
2017-03-06 06:31:19 +01:00
Florian Bruhin
5fb6d26465
Stabilize some tests
2017-03-06 06:28:26 +01:00
pyup-bot
a19ebfb6d0
Update pyparsing from 2.1.10 to 2.2.0
2017-03-06 03:58:50 +01:00
Florian Bruhin
b117d981a5
Install debug packages on Ubuntu
2017-03-05 20:28:27 +01:00
Florian Bruhin
23a26bf08b
Improve travis backtrace script
2017-03-05 20:28:27 +01:00
Florian Bruhin
8fb640f1ff
Debug segfaults on travis
...
Fixes #2097
2017-03-05 20:28:27 +01:00
pkill9
74be2fa4b9
Add command to close all messages.
2017-03-05 14:55:28 +00:00
Florian Bruhin
271cb3be3d
Merge branch 'Kingdread-fast-open-download'
2017-03-05 15:51:35 +01:00
Florian Bruhin
27edc89d88
Update changelog
2017-03-05 15:51:14 +01:00
Florian Bruhin
ec42d2fd2a
Merge branch 'fast-open-download' of https://github.com/Kingdread/qutebrowser into Kingdread-fast-open-download
2017-03-05 15:50:38 +01:00
Florian Bruhin
0e56cff702
Merge branch 'TomRiddle01-hide_adblock_message'
2017-03-05 15:19:09 +01:00
Florian Bruhin
6fbaa16366
Update authors
2017-03-05 15:18:59 +01:00
Florian Bruhin
a585015d9d
Merge branch 'hide_adblock_message' of https://github.com/TomRiddle01/qutebrowser into TomRiddle01-hide_adblock_message
2017-03-05 15:18:43 +01:00
Florian Bruhin
a1c7d179e3
Only call QApplication::sync() with QtWebEngine
2017-03-05 15:16:14 +01:00
Florian Bruhin
fa89fff668
Stabilize session tests
2017-03-05 15:15:12 +01:00
Florian Bruhin
199a2ffe27
Remove unneeded deleted attribute for FakeSocket
2017-03-05 15:15:12 +01:00
Florian Bruhin
efe18b056a
Merge pull request #2401 from qutebrowser/pyup-update-cssutils-1.0.1-to-1.0.2
...
Update cssutils to 1.0.2
2017-03-05 11:03:21 +01:00
Florian Bruhin
c422897abb
Make sure to process history after the rest of init is done
...
Otherwise, with 5ccafd62d4 the history starts
processing before the webview opened, and opening it is delayed until the whole
history is read.
Instead, call _process_args directly (I'm not even sure why it was using a 0ms
QTimer...) and schedule _init_late_modules after everything is really done.
2017-03-04 18:24:44 +01:00
Florian Bruhin
5ccafd62d4
Fix initial keyboard focus with QtWebEngine
...
Fixes #2321 .
2017-03-04 18:11:34 +01:00
Florian Bruhin
e81edc8224
ipc: Delay deleting of QLocalSocket on disconnect
...
Fixes #2396 .
See https://bugreports.qt.io/browse/QTBUG-59297 and
https://github.com/qutebrowser/qutebrowser/issues/2321#issuecomment-284024213
2017-03-04 18:11:34 +01:00
pyup-bot
52518f6abe
Update cssutils from 1.0.1 to 1.0.2
2017-03-04 17:50:46 +01:00
Yannis Rohloff
7984643365
flake8 fails fixed
2017-03-04 17:16:52 +01:00
Yannis Rohloff
5d5652a24b
always read the host file
2017-03-04 17:08:53 +01:00
Yannis Rohloff
6219b37c39
adblock: Don't show message if host-blocking-enabled is true
...
Fixes #2364
2017-03-04 16:39:44 +01:00
Imran Sobir
0092b18c44
Fix qute:javascript on Windows.
2017-03-04 19:37:48 +05:00
Daniel Schadt
90f12a1d5a
return fast from DownloadItem.open_file
...
Fixes #2296
By using a singleshot timer, we return fast from DownloadItem.open_file,
which in turn closes the prompt fast, which in turn doesn't allow a
second Ctrl-x to be registered, which in turn doesn't want to set the
filename twice.
2017-03-04 11:30:41 +01:00
Florian Bruhin
550514c20b
Merge pull request #2393 from qutebrowser/pyup-update-setuptools-34.3.0-to-34.3.1
...
Update setuptools to 34.3.1
2017-03-03 07:31:41 +01:00
pyup-bot
0eeb3a51d3
Update setuptools from 34.3.0 to 34.3.1
2017-03-03 01:50:32 +01:00
Florian Bruhin
a5af039bf4
Merge pull request #2391 from qutebrowser/pyup-update-cheroot-5.1.0-to-5.2.0
...
Update cheroot to 5.2.0
2017-03-02 22:49:32 +01:00
Florian Bruhin
0186a9bde5
Fix lint
2017-03-02 21:10:31 +01:00
pyup-bot
88a04556ea
Update cheroot from 5.1.0 to 5.2.0
2017-03-02 20:45:31 +01:00
Florian Bruhin
75bc400e74
Add Chromium version to version output
...
This also restructures things a bit to show the backend version together with
the backend.
Fixes #2380
2017-03-02 20:22:17 +01:00
Imran Sobir
907d94591d
Make a now fixture to hold time of test.
2017-03-02 23:55:59 +05:00
Imran Sobir
96e81f595f
Fix a case where 'next' is not correctly returned.
2017-03-02 23:14:00 +05:00
Florian Bruhin
56ab02f54d
Set tab as parent for print dialogs
...
Fixes #2366
2017-03-02 18:44:07 +01:00
Imran Sobir
895620b536
Don't assume 'next' appears last.
2017-03-02 22:40:24 +05:00
Florian Bruhin
ea653e6fe4
Merge pull request #2388 from qutebrowser/pyup-initial-update
...
Initial Update
2017-03-02 10:16:49 +01:00
Florian Bruhin
65a701a180
Stabilize existing text test
2017-03-02 08:38:07 +01:00
Florian Bruhin
d6f47bd3fb
Fix lint
2017-03-02 08:29:43 +01:00
Florian Bruhin
d4124c5c2a
Ignore pyup-bot for author list
2017-03-01 23:55:19 +01:00
pyup-bot
22650785aa
Update parse from 1.6.6 to 1.8.0
2017-03-01 23:52:42 +01:00
Florian Bruhin
81a36ffd7d
Strip QtWebEngine download suffixes properly
...
Fixes #2386
2017-03-01 23:43:04 +01:00
Florian Bruhin
88904864c9
Skip failing tests on Qt < 5.8
2017-03-01 20:24:34 +01:00
Florian Bruhin
f4490fb90c
Fix WebKitElement._move_text_cursor with old PyQt
2017-03-01 20:19:40 +01:00
Florian Bruhin
1f12b4c1c1
Relax validation of QssColor values
...
Fixes #2370
2017-03-01 18:11:53 +01:00
Florian Bruhin
65f407e926
Remove webelem.style_property()
...
It's not used anymore, and not possible to support with QtWebEngine without a
massive performance hit when serializing elements.
2017-03-01 17:54:27 +01:00
Florian Bruhin
b4af966167
Make stubbed methods fail tests again
...
Only some caret browsing stuff and a few webelement methods are stubbed out now.
Make them fail tests so we notice when we use a stub.
2017-03-01 17:43:33 +01:00
Florian Bruhin
03f1e0913d
Add _js_call to WebEngineElement
2017-03-01 17:34:21 +01:00
Florian Bruhin
bc0a9cd94d
Move cursor to end with input elements on QtWebEngine
2017-03-01 17:30:48 +01:00
Florian Bruhin
1e1ba34b60
Fix selecting text fields with QtWebKit
...
Using focus() in JS there means that existing text in the field gets selected.
Move the cursor to the end after focusing it to prevent that.
Fixes #2359
2017-03-01 17:13:02 +01:00
Florian Bruhin
f9697f1ebe
Update changelog
2017-03-01 14:26:38 +01:00
Florian Bruhin
deb59fc66e
Don't strip info when loading PAC from a file
2017-03-01 14:19:23 +01:00
Florian Bruhin
9bb5c9fdab
Remove UserInfo and path/query for PAC URLs
2017-03-01 14:19:13 +01:00
Florian Bruhin
5d0c9440f6
Fix monkeypatch
2017-03-01 12:12:40 +01:00
Florian Bruhin
ca4f249c30
Use three-argument form of monkeypatch.*attr
2017-03-01 11:33:41 +01:00
Florian Bruhin
1e42fd1319
Fix lint
2017-03-01 11:12:28 +01:00
Florian Bruhin
642afb0aff
Merge branch 'wasamasa-ZZ-and-ZQ'
2017-02-28 21:23:18 +01:00
Florian Bruhin
0bd167cf96
Update authors
2017-02-28 21:23:10 +01:00
Florian Bruhin
61e7d5883f
Merge branch 'ZZ-and-ZQ' of https://github.com/wasamasa/qutebrowser into wasamasa-ZZ-and-ZQ
2017-02-28 21:22:55 +01:00
Florian Bruhin
47a9c8e17c
Also check compiled Qt version in version checks
2017-02-28 21:01:47 +01:00
Florian Bruhin
67dfbc7e5f
Don't create QWebEngine profile at import time
...
Fixes #2378
2017-02-28 17:24:48 +01:00
Imran Sobir
cb6c6b814e
Fix pylint errors.
2017-02-28 20:11:51 +05:00
Imran Sobir
9e6b0240f6
Put javascript in module, fix lint errors
2017-02-28 19:23:31 +05:00
Imran Sobir
3e45f739fc
Show message when Javascript is turned off.
2017-02-28 19:22:10 +05:00
Florian Bruhin
4f90fd952d
Skip test_qt_arg on Qt 5.2
2017-02-28 08:22:06 +01:00
Florian Bruhin
9be0e0d57d
Clarify javascript-can-access-clipboard description
...
Fixes #2374 .
2017-02-27 20:28:47 +01:00
Imran Sobir
e8db008671
Move qute:history javascript to own file.
2017-02-27 22:44:13 +05:00
Imran Sobir
3b3846c9dc
Add qute:javascript to serve JS files.
2017-02-27 22:37:24 +05:00
Florian Bruhin
fb5377b710
Remove unnecessary code
2017-02-27 17:55:50 +01:00
Imran Sobir
783769d302
Load new history items from next item's time.
2017-02-27 21:44:23 +05:00
Imran Sobir
c4416c8ac0
Prevent crash with invalid start_time param.
2017-02-27 21:41:35 +05:00
Imran Sobir
c223f6c69d
Style/misc fixes.
2017-02-27 21:39:51 +05:00
Florian Bruhin
8d22991d03
Fix test_qt_args
2017-02-27 15:12:38 +01:00
Florian Bruhin
07a20bd1ad
Add an end2end test for --qt-arg
2017-02-27 14:02:13 +01:00
Florian Bruhin
2bb4c2fb6e
Fix --qt-arg tests
2017-02-27 13:49:13 +01:00
Florian Bruhin
94cabdb840
Use double dashes for --qt-arg/--qt-flag
...
Qt seems to not care about -style vs --style, but this way we can also pass
stuff to Chromium.
2017-02-27 13:33:12 +01:00
Florian Bruhin
c59b6bf02b
Handle invalid layout in TabBarStyle.subElementRect
2017-02-27 09:05:40 +01:00
Imran Sobir
76bf8c0049
Convert history to list before converting to JSON.
2017-02-26 19:58:14 +05:00
Florian Bruhin
14c2536a9d
Add a note about qute:settings on QtWebEngine to quickstart
...
See #2360
2017-02-26 15:49:34 +01:00
Imran Sobir
845f21b275
New qute:history page.
2017-02-26 17:07:30 +05:00
Florian Bruhin
a3693888b4
Fix changelog typos
2017-02-26 11:04:58 +01:00
Vasilij Schneidermann
ce433bd139
Add ZZ and ZQ keys to (save and) quit the session
2017-02-25 23:10:18 +01:00
Daniel Karbach
38ca583084
new default keybinds
2016-11-28 10:57:16 +01:00
thuck
a254097558
Using log instead of prompt functions for test
2016-11-24 00:05:17 +01:00
thuck
8d4b55bb80
Fix comments and change self.pinned to self.pinned_count
2016-11-23 22:18:55 +01:00
thuck
e9c79e9be3
Fix for comments on configdata
2016-11-23 08:18:10 +01:00
thuck
05d3631750
Test for accidental url opened in a pinned tab
2016-11-23 08:10:13 +01:00
thuck
9dff4299e8
flake8 fixes
2016-11-23 08:10:13 +01:00
thuck
be980a7268
Including tests for pinned tab prompt
...
Duplicate function for "I wait for a prompt"
2016-11-23 08:10:13 +01:00
thuck
9547938f79
Fix initial tests
2016-11-23 08:10:13 +01:00
thuck
92e1181680
Included --force option for tab-close
...
This makes possible to close pinned tabs without
any confirmation.
2016-11-23 08:10:13 +01:00
thuck
b920de764f
Merge branch 'master' of https://github.com/The-Compiler/qutebrowser into pintab
2016-11-23 08:10:11 +01:00
thuck
982e4f46e0
Test for accidental url opened in a pinned tab
2016-11-22 07:24:02 +01:00
thuck
175744761b
flake8 fixes
2016-11-22 06:57:00 +01:00
thuck
69c82f8563
Including tests for pinned tab prompt
...
Duplicate function for "I wait for a prompt"
2016-11-21 20:56:34 +01:00
thuck
41adafdec4
Fix initial tests
2016-11-21 20:56:34 +01:00
thuck
e514b0d58e
Included --force option for tab-close
...
This makes possible to close pinned tabs without
any confirmation.
2016-11-21 20:56:34 +01:00
thuck
bcb0010fcb
Merge branch 'master' of https://github.com/The-Compiler/qutebrowser into pintab
2016-11-21 20:56:31 +01:00
thuck
e2a6f97c07
Initial tests
2016-11-16 07:48:12 +01:00
thuck
abe3c19646
Merge branch 'master' of https://github.com/The-Compiler/qutebrowser into pintab
2016-11-14 19:01:49 +01:00
thuck
6053078637
Merge branch 'master' of https://github.com/The-Compiler/qutebrowser into pintab
2016-11-13 14:16:05 +01:00
thuck
84c41c964b
First test for tab-pin
2016-11-13 09:40:07 +01:00
thuck
a8ccfe050d
Remove unecessary empty line
2016-11-13 08:56:43 +01:00
thuck
785c03c15c
Merge branch 'master' of https://github.com/The-Compiler/qutebrowser into pintab
2016-11-13 08:56:19 +01:00
thuck
9eb0a85bae
Some fixes for pyflake, pylint and remove useless function
2016-11-11 17:10:46 +01:00
thuck
25b69fe76a
Configuration for the size of a pinned tab
2016-11-11 13:57:01 +01:00
thuck
19cc721eb1
Changed behavior on location of tab being pinned
...
Now when a tab is pinned it goes to the end of all pinned tabs.
Before it went to the index 1.
2016-11-11 12:05:04 +01:00
thuck
00f2b4df96
Merge branch 'master' of https://github.com/The-Compiler/qutebrowser into pintab
2016-11-11 11:07:30 +01:00
thuck
23628cdfbf
Merge branch 'master' of https://github.com/The-Compiler/qutebrowser into pintab
2016-11-10 20:20:52 +01:00
thuck
9f70fa3ec8
Merge branch 'master' of https://github.com/The-Compiler/qutebrowser into pintab
2016-11-10 00:28:31 +01:00
thuck
9beb097c53
Corrected some unecessary spaces
2016-11-09 23:52:56 +01:00
thuck
d7f5f61f03
Implemented counter for total number of tabs
...
With this counter we can better control the space on the tabbar.
2016-11-09 23:50:41 +01:00
thuck
6f8aaccc2b
Attach pin information to tabwidget
...
Simple access to pin information on tab widget.
Some change for the fmt_pin to not use fields as cheap trick
2016-11-08 21:12:20 +01:00
thuck
d8b5ca295e
Merge branch 'master' of https://github.com/The-Compiler/qutebrowser into pintab
2016-11-08 19:53:46 +01:00
thuck
17b7b5c663
Merge branch 'master' of https://github.com/The-Compiler/qutebrowser into pintab
2016-11-08 08:13:15 +01:00
thuck
931b008f89
Update title when title-format-pinned is modified
2016-11-08 08:12:40 +01:00
thuck
4f0034911a
title-format-pinned initial work
...
Created configuration configdata.
Load and use template defined on configdata.
TODO: ability to conserve information between restart
TODO: ability to update title on configuration change
2016-11-08 07:56:13 +01:00
thuck
b24ac0ae78
More small fixes
...
Removed unsed variables.
Removed some empty lines.
Inncluded docstring.
2016-11-08 04:45:07 +01:00
thuck
f9b1d998d4
Last configuration as pin changed to pinned
2016-11-07 22:32:42 +01:00
thuck
f10284b04a
Initial work on message.confirm_async
...
Creation of _tab_close and usage of partial.
2016-11-07 22:28:05 +01:00
thuck
49b2a19925
Merge branch 'master' of https://github.com/The-Compiler/qutebrowser into pintab
2016-11-07 21:25:36 +01:00
thuck
ec50d39578
Some fixes for the pylint
2016-11-07 21:25:05 +01:00
thuck
4ed046d5e7
Everything is pinned instead of pin, and one if corrected
2016-11-07 21:12:34 +01:00
thuck
20eae4d671
Modifed exception structure
2016-11-07 08:11:47 +01:00
thuck
f8dffb4e5c
Some modifications from initial feedback
...
Moved pin information from BrowserTab to TabData.
Changed attribute from pin to pinned.
Changed "ifs" to implicit check boolen value.
Removed blancked line on before else statement.
2016-11-07 08:02:25 +01:00
thuck
29d1c0d68b
Small fix for situations where we cannot find the tab for the index
...
Need to investigate better why and when this is excatly happening
2016-11-06 23:27:06 +01:00
thuck
d7a1a542b6
Change shortcut to tab-pin
2016-11-06 23:25:36 +01:00
thuck
d592651c50
Change command from pin/unpin to tab-pin
2016-11-06 23:24:24 +01:00
thuck
6d7a6db130
Proper title and size for pinned tab
...
As I'm using self.count() without taking in consideration the number of
pinned tabs the end result is a lot of empty space.
2016-11-06 19:04:32 +01:00
thuck
22133beb72
Fix small bug because result was not declared
2016-11-06 18:24:33 +01:00
thuck
6f610e9c44
Initial development to support pin tabs #926
...
Done so far:
Two new commands pin/unpin, both accept a index to help the organization
(maybe this should be more a flag and not exactly two commands)
Crtl+p to pin, Crtl+O to unpin (not sure which should a good default
shortcut)
If user tries to close a pinned tab it's asked to confirm
If user tries to open a URL in a pinned tab it receives a message with a
information that the tab is pinned and ignore the openurl command
Preserve the pinned information across restart if session is activated
Missing:
Visual indication of the tab being pinned
Tab appearance being distinct over other tabs
Make pinned tabs to be the firsts on the tab bar
This is not ready, but it would be good to get some feedback earlier
2016-11-06 15:52:23 +01:00