Commit Graph

4596 Commits

Author SHA1 Message Date
Jay Kamat
3a9a75c1d5
Fix style issues 2019-02-01 23:25:22 -08:00
Jay Kamat
09ce1bb8af
Merge branch 'master' of https://github.com/qutebrowser/qutebrowser into jay/insert-no-leave 2019-02-01 23:22:42 -08:00
Florian Bruhin
1799b7926a Make console available in PAC files 2019-01-14 22:23:30 +01:00
Florian Bruhin
d8c02f495e Add highlighting test 2019-01-13 10:36:14 +01:00
Florian Bruhin
cc0f5fc6d4 Fix migration of scrolling.bar 2019-01-11 11:26:08 +01:00
Florian Bruhin
2c1d039c9e Refactor tests for bool setting migrations 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
fdb4dd728f
Merge pull request #4508 from beelzebielsk/master
Implement pinned.tab.frozen setting (issue #4400)
2019-01-09 23:49:16 -08:00
Jay Kamat
8a48e5d2a5
Add benchmark for config cache 2019-01-09 23:16:00 -08: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
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
3528de82e9 Also skip SSL test on Qt 5.12
See #4240
2019-01-04 10:30:06 +01:00
Florian Bruhin
4da680f41c Fix lint/test issue 2018-12-15 16:50:15 +01:00
Florian Bruhin
e00a7ee5be Mark IPC test which is broken on macOS as xfail
See #4471
2018-12-12 11:34:18 +01:00
Florian Bruhin
aec348d929 Fix test_mhtml_e2e with QtWebKit + Qt 5.12
Fixup for 9eccaea09c
See #4025
2018-12-12 11:27:38 +01:00
Florian Bruhin
0953596ed6 Skip remaining tests which are broken on Qt 5.12
See #4320, #4244
2018-12-11 18:36:52 +01:00
Florian Bruhin
63510c41f5 Don't wait for focus ready message on Qt 5.12
Looks like there's no internal widget focused anymore...
2018-12-11 18:36:20 +01:00
Florian Bruhin
0aa342eae6 Mark test_appendchild as xfail on Qt 5.12
See #4244
2018-12-11 11:05:06 +01:00
Florian Bruhin
a3279772d5 Fix lint 2018-12-10 18:34:11 +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
007250033a Remove HostBlockerStub 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
9764472fd8 Move adblock from browser/ to components/ 2018-12-10 15:03:09 +01:00
Florian Bruhin
ec5a93a80d Add tests for extensions.loader 2018-12-10 12:37:58 +01:00
Florian Bruhin
fe75ee1469 Mark "Using JS after window.open" as flaky 2018-12-05 18:28:43 +01:00
Florian Bruhin
7bddb7867b Add missing test for configtypes.Key 2018-12-05 17:23:09 +01:00
Florian Bruhin
a9c1fc665f Fix configtypes.Perc.to_str()
If we used an int/float in config.py for a Perc value (e.g. zoom.default),
to_str() returned int/float instead of str, causing qWarnings and bugs.
2018-12-05 17:15:57 +01:00
Florian Bruhin
f53fd56c3d mypy: Add annotations for qutebrowser.config.configtypes 2018-12-05 17:06:45 +01:00
Florian Bruhin
2cb277afd7 Fix exception messages in Command
The messages weren't updated in ac78039171.
2018-12-04 16:30:01 +01:00
Florian Bruhin
71f9c5d206 Fix handling of annotated varargs in commands
When we have something like "*values: str" in :config-cycle, we get a list of
values, but the type converter assumes it's a string.

We could implement proper conversion of *args, but for now, let's just make
sure it's always a string.
2018-12-03 15:55:04 +01:00
Florian Bruhin
40d376fbcf Move unit tests 2018-11-30 16:25:12 +01:00
Florian Bruhin
569bb0fa09 Add cmdutils.Value instead of using count=True/win_id=True 2018-11-30 12:45:01 +01:00
Florian Bruhin
d549d4d5e2 Fix test_configcommands 2018-11-30 11:19:34 +01:00
Florian Bruhin
b3fa43a97c Fix broken test_on_tab_changed 2018-11-30 11:19:34 +01:00
Florian Bruhin
9c4ebb97d7 Fix refactoring issues 2018-11-30 11:19:34 +01:00
Florian Bruhin
f6c36ccbee Rename openurl to load_url
We still call the :open command openurl, but in the tab API and in
TabbedBrowser it's now called load_url.
2018-11-30 08:31:03 +01:00
Florian Bruhin
0104490978 Use enum values for load_status_changed 2018-11-29 19:44:48 +01:00
Florian Bruhin
73e196ff65 Make url(requested=True) a keyword-only arg 2018-11-29 19:23:14 +01:00
Florian Bruhin
b7de287e7b Move CommandError to api.cmdutils 2018-11-29 14:18:11 +01:00
Florian Bruhin
19628d0ae9 Move cmdutils.cmd_dict to objects.commands 2018-11-29 14:18:11 +01:00
Florian Bruhin
351b6c9b45 Add unit test for slashes in search terms 2018-11-29 08:29:56 +01:00
Thorsten Wißmann
9d069ea12b Encode slashes in default search engine test 2018-11-29 08:29:56 +01:00
Florian Bruhin
cbf55e1ef9 Fix remaining private_api refactoring issues 2018-11-28 22:19:07 +01:00
Florian Bruhin
5f5f202098 Move private tab API into an own object 2018-11-28 17:59:27 +01:00
Florian Bruhin
b5253ec473 Fix lint 2018-11-28 13:01:43 +01:00
Florian Bruhin
14fe7f9b0b pass fixup 2018-11-28 12:58:48 +01:00
Florian Bruhin
2237ca2bcf Remove now unneeded pylint suppressions 2018-11-28 12:54:19 +01:00
Florian Bruhin
2453134011 Remove unnecessary pass statements 2018-11-28 12:51:53 +01:00
Florian Bruhin
2152081d82 s/an URL/a URL/g 2018-11-16 12:37:30 +01:00