Florian Bruhin
28ca292b9e
Fix lint
2018-10-04 19:35:38 +02:00
Florian Bruhin
6c245ca7a0
Merge remote-tracking branch 'origin/pr/4220'
2018-10-04 19:34:03 +02:00
Florian Bruhin
923b726e38
Merge remote-tracking branch 'origin/pr/4220'
2018-10-04 19:28:01 +02:00
Ryan Roden-Corrent
a5b3670477
Fix pylint/flake8 errors in configtypes.
2018-10-03 21:44:10 -04:00
Ryan Roden-Corrent
59f9d31d4b
Fix up configtypes based on code review.
...
- Remove stray statements
- add an early bail-out if we can't parse a color function
- add more test cases
2018-10-03 17:41:48 -04:00
Ryan Roden-Corrent
66cc5f5ea4
Add support for more values in QtColor config type.
...
Recent changes in the completion highlighter mandate that
config.val.colors.completion.match be changed from a QssColor to a
QtColor. However, the latter accepts fewer formats. To avoid breaking
configs, this allows QtColors to be specified using all the same formats
as QssColors, excluding gradients.
I separated the QssColor and QtColor tests as the previous approach of
generating the tests made adding tests for QtColor more complicated.
While working on this I discovered that Qt's css parser is potentially
broken around parsing hsv percentages and filed
https://bugreports.qt.io/browse/QTBUG-70897 .
For consistency, I made our parser similarly broken.
You can show the bug in qutebrowser right now by noting that the
following have different effects:
```
set colors.completion.odd.bg 'hsv(100%, 100%, 100%)'
set colors.completion.odd.bg 'hsv(358, 255, 255)'
```
2018-10-02 17:30:43 -04:00
Florian Bruhin
f780974d07
Allow fallback=False with config.get/get_obj
2018-09-28 16:40:08 +02:00
Florian Bruhin
46435bcd2f
Use always/never instead of force-on/force-off
2018-09-18 11:12:50 +02:00
Florian Bruhin
17c7663ad0
Make content.headers.referer work on QtWebEngine
2018-09-17 19:40:18 +02:00
Florian Bruhin
bd21686e0d
Add webrtc_ip_handling_policy setting
...
This exposes all possible values, but before
https://codereview.qt-project.org/#/c/240121/ we won't be able to change those
at runtime (or enable URL patterns, which thankfully weren't enabled for the
old setting).
In theory, it'd be possible to handle the "public-interface-only" value via
QWebEngineSettings without requiring a restart, but it isn't worth the trouble.
Closes #4201
2018-09-17 18:39:41 +02:00
Florian Bruhin
6fe09c12da
Add a setting for Chromium's low-end device mode
...
See #4039
See #2377
2018-09-17 18:39:41 +02:00
Florian Bruhin
574d7c6a11
Add settings for process models
...
See #4039 , #2377
Fixes #4040
2018-09-17 17:22:51 +02:00
Florian Bruhin
c8be2d4f7e
Fix pylint issues with config cache
2018-09-06 16:43:10 +02:00
Florian Bruhin
108cc65bc6
Merge remote-tracking branch 'origin/pr/4185'
2018-09-06 16:15:16 +02:00
Jay Kamat
8e82adc306
Refactor configcache to cache
...
Also fix and improve configcache tests
2018-09-05 22:26:12 -07:00
Florian Bruhin
2fcdc5a0c9
Merge branch 'blacklist-history'
2018-09-04 22:19:52 +02:00
Jay Kamat
d4cf5045ab
Fix tests for configcache
2018-09-02 18:03:36 -07:00
Jay Kamat
067d76616b
Implement config cache system
2018-09-02 14:23:00 -07:00
Florian Bruhin
5b0c10d430
Fix docstrings
2018-09-02 15:46:57 +02:00
Florian Bruhin
7fb2224640
Add a UrlPattern config type
...
For some settings it makes sense to have a list of URL patterns in the config,
rather than having a per-domain boolean setting.
2018-09-01 18:25:58 +02:00
Vasilij Schneidermann
3fa6d94893
Display value when calling :set without a value
...
This change brings Qutebrowser closer to Vim's behavior of `:set
foo?` *and* `:set foo` displaying the current value of `foo`.
2018-08-31 21:34:42 +02:00
Florian Bruhin
70addc93b3
Add missing yaml_value fixture
2018-08-06 19:57:38 +02:00
Florian Bruhin
8a748741ba
Fix checks for Nouveau workaround
2018-07-19 00:28:12 +02:00
Florian Bruhin
77fe2e1c85
Fix test_set_wrong_backend
2018-07-02 22:32:59 +02:00
Florian Bruhin
fd4ae2fabe
Fix test_set_wrong_backend
2018-06-12 14:17:50 +02:00
Florian Bruhin
6faff11243
Improve error messages with backend conditionals
2018-06-12 11:10:03 +02:00
Florian Bruhin
e066f83a7c
Make configinit tests run with all setups
2018-06-12 10:52:22 +02:00
Florian Bruhin
093f07f552
Add content.canvas_reading setting
...
See #2377
Closes #2235
2018-06-11 23:28:04 +02: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
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
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
88f2873a79
Allow more values for the qt.force_software_rendering setting
2018-06-09 16:21:10 +02:00
Florian Bruhin
32568a6da4
Simplify tests
2018-03-28 09:33:27 +02:00
Jussi Timperi
046a3dc159
Add option to only show favicons for pinned tabs
...
Closes #3440
2018-03-28 00:45:57 +03:00
rien333
e211801e16
Handle wayland decoration option rename through configdata.yml
2018-03-23 15:24:18 +01:00
rien333
bb0c79b5a2
Fix wayland test
2018-03-23 01:38:45 +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
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
1d25b212d5
Add missing qapp fixtures to tests
...
See #3723
2018-03-15 09:06:40 +01:00
Florian Bruhin
8c5b7bcd03
Fix lint
2018-03-12 08:51:36 +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
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
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