Commit Graph

9405 Commits

Author SHA1 Message Date
Florian Bruhin
1799b7926a Make console available in PAC files 2019-01-14 22:23:30 +01:00
Jay Kamat
322b4d26d8
Fix match highlighting on qt 5.11.3 and 5.12.1+
For some reason, populating the text (even if we completely overwrite
it later) before the highlighter is added results in no highlighting.
I think this has something to do with python locking/delayed
re-highlighting.

At some point, it would be nice to file this as a bug, but I can't
seem to make a small c++ example.

See https://codereview.qt-project.org/#/c/244699/4//ALL and
https://bugreports.qt.io/browse/QTBUG-71307 for more information.

Closes #4519
2019-01-12 10:13:44 -08:00
Florian Bruhin
cc0f5fc6d4 Fix migration of scrolling.bar 2019-01-11 11:26:08 +01:00
Florian Bruhin
dcd2184f97
Merge pull request #4518 from jgkamat/jay/configcache-cache
Optimize configcache for critical path
2019-01-10 14:04:46 +01:00
Jay Kamat
8bb2db5e56
Restructure cache to optimize critical path 2019-01-09 23:16:00 -08:00
adam
65ae7ca455 Make option desc imperative
As given in commit 494aceec45

Changes to be committed:
      modified:   qutebrowser/config/configdata.yml
2019-01-07 15:42:01 -05:00
adam
5cd988ae52 Change config option to in tabs.pinned group
Changes to be committed:
      modified:   qutebrowser/browser/browsertab.py
      modified:   qutebrowser/config/configdata.yml
      modified:   tests/end2end/features/tabs.feature
        Changed pinned.tabs.frozen to be tabs.pinned.frozen in all of
        these files.
2019-01-06 20:53:26 -05:00
adam
9662d3aa25 Change commands.py to maintain old indent level
Changes to be committed:
      modified:   qutebrowser/browser/commands.py
2019-01-05 23:21:59 -05:00
adam
24a1104dc7 Implement pinned.tab.frozen setting (issue #4400)
Implement a new setting, `pinned.tab.frozen` (boolean), which when false
allows a user to navigate to new URLs in a pinned tab (default behavior
is to have `pinned.tab.frozen = true`, in which no navigation is allowed).

issue URL: https://github.com/qutebrowser/qutebrowser/issues/4400

Changes to be committed:
      modified:   qutebrowser/browser/browsertab.py
        Add `navigation_blocked` method to AbstractTab, which returns
        true if navigation is allowed on a tab.
      modified:   qutebrowser/browser/commands.py
        Change `openurl` to use `navigation_blocked` method of a tab to
        determine behavior while navigating a pinned tab.
      modified:   qutebrowser/components/misccommands.py
        Change `home` to use `navigation_blocked` method of a tab to
        determine behavior while navigating a pinned tab.
      modified:   qutebrowser/config/configdata.yml
        Add `pinned.tab.frozen` config.
      modified:   tests/end2end/features/tabs.feature
        Add tests for :open and :home on pinned tabs with
        `pinned.tab.frozen` set to false
2019-01-04 18:03:33 -05:00
Florian Bruhin
530befd681 Register qute:// scheme with Qt
See #3992, #4198
2019-01-03 14:38:12 +01:00
Florian Bruhin
1ef793fa66 Qt 5.12: Disable chrome-error:// and chrome-extension:// workaround 2019-01-03 13:40:05 +01:00
Jay Kamat
4b0d1b394e
Merge pull request #4364 from helbling/fix_4349
Prevent exiting video player from exiting fullscreen
2018-12-29 07:54:20 -08:00
Jay Kamat
403b4643da Merge branch 'master' into fix_4349 2018-12-26 14:30:51 -08:00
Hummer12007
a49f82062b
Use native style for downloads view on macOS 2018-12-21 02:39:31 +02:00
user202729
01c25837d5 Fix tab_mute command 2018-12-15 23:38:25 +07:00
Florian Bruhin
4da680f41c Fix lint/test issue 2018-12-15 16:50:15 +01:00
Florian Bruhin
ba940f7f87 Disable Wayland check on Qt >= 5.11.2
Fixes #2932
2018-12-15 15:43:44 +01:00
Florian Bruhin
206a2f199b Fix annotation 2018-12-14 15:27:55 +01:00
Florian Bruhin
f49384f0bf Expose InterceptorType via qutebrowser.api.interceptor 2018-12-13 19:44:48 +01:00
Florian Bruhin
02596fd325 Fix docstring 2018-12-13 11:29:52 +01:00
Florian Bruhin
81375b3029 Add type annotations for webelem/webkitelem/webengineelem 2018-12-13 11:29:52 +01:00
Florian Bruhin
9250f3c560 Fix lint 2018-12-12 17:19:39 +01:00
Florian Bruhin
a0437a3e68 Improve Sphinx docs 2018-12-12 10:32:42 +01:00
Florian Bruhin
184e41b538 Adjustments for mypy upgrade 2018-12-10 20:05:59 +01:00
Florian Bruhin
a3279772d5 Fix lint 2018-12-10 18:34:11 +01:00
Florian Bruhin
98543af57b Rename requests/request filters to interceptors
So we don't collide with the requests library.
2018-12-10 17:50:13 +01:00
Florian Bruhin
7f06b54f25 Add more extensions.loader tests 2018-12-10 17:26:58 +01:00
Florian Bruhin
7b1bcea306 Bring back separate is_blocked method 2018-12-10 16:33:24 +01:00
Florian Bruhin
8508928f3d Use bool instead of passing args 2018-12-10 16:33:24 +01:00
Florian Bruhin
35a3fe029d Fix lint 2018-12-10 16:33:24 +01:00
Florian Bruhin
4e99caafb9 Skip hooks for vulture/docs 2018-12-10 16:33:24 +01:00
Florian Bruhin
b41005d487 Fix mypy issues 2018-12-10 16:27:04 +01:00
Florian Bruhin
a96c6efc34 Add types to components.adblock 2018-12-10 16:27:04 +01:00
Florian Bruhin
3b53270ee3 Use hook system for config_changed hook 2018-12-10 15:48:26 +01:00
Florian Bruhin
6001640a8a Guard against double init hooks 2018-12-10 15:24:15 +01:00
Florian Bruhin
93a36c8572 Fix :adblock-update
After #640 we can likely fix this up again.
2018-12-10 15:03:09 +01:00
Florian Bruhin
a146ce865b Register host blocker as request filter 2018-12-10 15:03:09 +01:00
Florian Bruhin
58d179302e Add api.config.get 2018-12-10 15:03:09 +01:00
Florian Bruhin
1b1872e464 Expose a config_changed signal to extensions 2018-12-10 15:03:09 +01:00
Florian Bruhin
42790e7623 Expose config.change_filter 2018-12-10 15:03:09 +01:00
Florian Bruhin
9764472fd8 Move adblock from browser/ to components/ 2018-12-10 15:03:09 +01:00
Florian Bruhin
7ad7623d73 Add request filter API for host blocking
Closes https://github.com/qutebrowser/qutebrowser-extensions/issues/8
2018-12-10 15:03:09 +01:00
Florian Bruhin
3d6f604739 Prepare for moving adblocker to extension API 2018-12-10 15:03:09 +01:00
Florian Bruhin
8806c0925e Expose data and config dir as pathlib.Path 2018-12-10 14:11:16 +01:00
Florian Bruhin
4ad5790311 Add API for temporary downloads
Closes https://github.com/qutebrowser/qutebrowser-extensions/issues/9
2018-12-10 14:08:32 +01:00
Florian Bruhin
b1894f1428 Fix lint 2018-12-10 13:00:41 +01:00
Florian Bruhin
380905854c Pass standarddir to modules 2018-12-10 12:37:58 +01:00
Florian Bruhin
5b354164c5 Make it possible for extensions to define init hooks 2018-12-10 12:37:58 +01:00
Florian Bruhin
38c4ef3623 Fix lint 2018-12-10 12:37:58 +01:00
Florian Bruhin
bb115afc1a Make sure we always yield full names 2018-12-10 12:37:58 +01:00