Florian Bruhin
d4176012e5
Merge remote-tracking branch 'origin/pr/4246'
2018-09-27 16:07:49 +02:00
Florian Bruhin
bb346bf6d1
Adjust dates in _chromium_version
2018-09-27 14:00:58 +02:00
Jay Kamat
e01682f51d
Add tabs.max_width setting
2018-09-26 21:39:45 -07:00
Florian Bruhin
a292664ca0
Merge remote-tracking branch 'origin/pr/4218'
2018-09-26 11:20:45 +02:00
Florian Bruhin
62ea8f6ec2
Merge remote-tracking branch 'origin/pr/4245'
2018-09-26 08:42:54 +02:00
Florian Bruhin
cb2a246070
Update Chromium version overview
2018-09-26 06:32:09 +02:00
Florian Bruhin
a8355022db
Pass through Ctrl+Mousewheel in passthrough mode
...
See #3836
2018-09-25 20:39:42 +02:00
Florian Bruhin
3efb7e6957
Auto-remove PDF.js downloads
2018-09-24 19:45:31 +02:00
Florian Bruhin
119a60d498
caret: Don't turn on animation repeatedly
2018-09-24 19:23:11 +02:00
Florian Bruhin
3c1ab71fce
Remove dead CaretBrowsing code
2018-09-24 18:29:17 +02:00
Florian Bruhin
fc89f3dfcc
Always open PDF.js tabs in foreground
2018-09-24 15:44:12 +02:00
Florian Bruhin
7b20bf4792
Fix tab_focus_last behaviour with :tab-focus -1
...
See #4248
2018-09-24 11:06:41 +02:00
Jay Kamat
67c108a320
Get pinned status from parent
2018-09-23 23:35:40 -07:00
Jay Kamat
773fe47687
Avoid calls to minTabSizeHint in tabSizeHint
2018-09-23 23:00:44 -07:00
Ben Gartner
ad02d01b2a
Change commands.py document generator
2018-09-23 16:46:01 -05:00
Florian Bruhin
1e32d1e01f
Fix PDFJS/qutescheme end2end tests
2018-09-23 17:40:10 +02:00
Florian Bruhin
e9ca4c4295
Merge remote-tracking branch 'origin/pr/4234'
2018-09-22 21:14:54 +02:00
Florian Bruhin
01f69bda4b
Merge remote-tracking branch 'origin/pr/4233'
2018-09-22 21:14:49 +02:00
Florian Bruhin
75bfb547ba
Add compatibility with PDF.js v2.x
...
Closes #4237
2018-09-22 20:26:25 +02:00
Florian Bruhin
ee5d98d5d0
Make sure PDF.js doesn't try to use the Fetch API
...
Closes #4235
2018-09-22 20:10:57 +02:00
Florian Bruhin
22a4aaa73c
Handle empty session files gracefully
...
There's still much more to do for #1926 , but with this we at least handle one
common case gracefully.
No tests because test_sessions.py is still in a kinda bad place...
2018-09-22 19:29:36 +02:00
Ryan Roden-Corrent
0fed563a02
Use QSyntaxHighlighter for completion.
...
This is a more "Qt" way of highlighting syntax, and works around the
problems of #4199 without resorting to complicated html escaping.
The tests are more straightforward with less mocking, but do involve
testing a private class.
2018-09-22 12:13:28 -04:00
Jay Kamat
f0568ece57
Make convert_js_arg public and use it for dispatch_element in webkit
2018-09-21 18:08:04 -07:00
Jay Kamat
1ea45780df
Only repaint tabs when they are needed
2018-09-21 00:15:02 -07:00
Jay Kamat
84a8845905
Use qt to equally size tabs
2018-09-20 23:21:11 -07:00
Florian Bruhin
bee806b2e2
Merge remote-tracking branch 'origin/pr/4231'
2018-09-20 20:26:21 +02:00
zaowen
0680f84ca4
fix auto merge problem
2018-09-20 11:56:12 -06:00
Zarthur
b41d7ba203
Merge branch 'master' into master
2018-09-20 11:02:27 -06:00
zaowen
c4cca4755e
Add adblock import directory unit test
2018-09-20 10:38:50 -06:00
Jay Kamat
1da2bdb1e5
Add bubbles, cancelable, and composed options to dispatch_event
2018-09-19 23:53:53 -07:00
Florian Bruhin
b4a0e16db9
Fix appending text
...
This was broken in 6e954a1596
.
2018-09-19 21:56:39 +02:00
Olmo Kramer
5bf6c97a68
Add bindings to toggle content.images
2018-09-19 12:48:13 +02:00
Florian Bruhin
93ec3e3fad
Make some stuff in adblock.py private
2018-09-18 20:27:58 +02:00
Florian Bruhin
1a0c6964e3
Fix lint
2018-09-18 20:25:58 +02:00
Ellis
398519762b
Merge branch 'master' of https://github.com/qutebrowser/qutebrowser
2018-09-18 13:33:30 -04:00
Ellis
2dec2b0c53
Reworded docs in whitelist config setting
2018-09-18 13:21:22 -04:00
Ellis
c3d8f66673
Renamed is_whitelisted_host to is_whitelisted_url, removed unused try block
2018-09-18 13:17:02 -04:00
Florian Bruhin
46435bcd2f
Use always/never instead of force-on/force-off
2018-09-18 11:12:50 +02:00
Florian Bruhin
45529c59a9
Add QtWebKit warning to backendproblem dialogs
2018-09-18 08:53:13 +02:00
Florian Bruhin
5218d35385
Also style h2 in styled.html
2018-09-18 08:53:13 +02:00
Florian Bruhin
f2e91cc82e
Add warnings for QtWebKit and old Qt
...
See #3839 , #4039
2018-09-18 08:53:11 +02:00
Florian Bruhin
d759846189
Remove old qute_backend_warning
2018-09-18 08:52:50 +02:00
Florian Bruhin
ce532654cb
Clean up _open_special_pages()
2018-09-17 22:05:07 +02:00
Florian Bruhin
7858beee06
Fix lint
2018-09-17 20:33:37 +02:00
Florian Bruhin
91df81f5ab
Refactor configinit.qt_args
2018-09-17 19:40:18 +02:00
Florian Bruhin
17c7663ad0
Make content.headers.referer work on QtWebEngine
2018-09-17 19:40:18 +02:00
Ellis
9c8a299a60
Removed unused variable and updated url function call
2018-09-17 13:21:54 -04:00
Ellis
80463cf8d8
Reworded configdata to fit with previously used descriptions
2018-09-17 12:49:07 -04:00
Ellis
ca0c892cbc
Fixed passing UrlPattern Object into itself
2018-09-17 12:40:56 -04: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
Ellis
8e42683f41
Changed QUrlPattern to UrlPattern
2018-09-17 12:27:45 -04:00
Ellis
c42a7dff0e
Changed QUrl to QUrlPattern
2018-09-17 12:05:46 -04:00
Ellis
15b00cea6a
Merge branch 'master' of https://github.com/qutebrowser/qutebrowser
2018-09-17 11:59:10 -04:00
Ellis
92b56b3d38
Changed configdata to use QUrl for adblock whitelisting
2018-09-17 11:57:20 -04:00
Florian Bruhin
574d7c6a11
Add settings for process models
...
See #4039 , #2377
Fixes #4040
2018-09-17 17:22:51 +02:00
Florian Bruhin
27d0d148b8
Split up _asciidoc_fallback_path from qute_help
2018-09-17 10:29:00 +02:00
Florian Bruhin
be0d6ef3d2
Try more possible asciidoc paths for qute://help fallback
2018-09-17 09:51:15 +02:00
Ellis
1384e14bf1
Removed unused import statement
2018-09-16 20:36:00 -04:00
Ellis
3f8958054b
Fixed is_whitelisted_host to use QUrl fixes #4179
2018-09-16 19:41:49 -04:00
Ellis
770a95c101
Changed is_whitelisted_host to use URL Patterns fixes #4179
2018-09-16 19:12:49 -04:00
Florian Bruhin
abff44def6
Get rid of end-of-doc-workaround in caret browsing
...
In Qt < 5.10 (and also sometimes on Windows), we get extra spaces or newlines
when moving to the end of the document. However, this only happens *sometimes*,
and manual testing confirms that with the current workaround, we actually lose
the last char in the selection.
I'm not sure what's happening there, but instead of making things worse with
the workaround, let's just be a bit less strict with the checking there and
accept both variants... This seems like some Chromium bug we can't do much
about.
2018-09-15 20:39:35 +02:00
Ryan Roden-Corrent
102c6b99dd
Don't highlight html escapes in completion.
...
Resolves #4199 .
To avoid accidentally highlighting characters that were introduced by
html escaping the text before feeding it to setHtml, we can't just
escape the whole string before adding the highlighting. Instead, we need
to break the string up on the pattern, format and escape the individual
parts, then join them back together.
re.escape includes empty strings if there is a match at the start/end,
which ensures that matches always land on odd indices:
https://docs.python.org/3/library/re.html#re.split
> If there are capturing groups in the separator and it matches at the
> start of the string, the result will start with an empty string. The
> same holds for the end of the string
2018-09-15 14:06:28 -04:00
Ryan Roden-Corrent
4f99af5876
Don't escape quotes in completion text.
...
Resolves the example case in #4199 , but not the larger problem. We don't
need to escape quotes as we don't put the string in an attribute value.
From the docs at
https://docs.python.org/3/library/html.html#html.escape :
> If the optional flag quote is true, the characters (") and (') are also
> translated; this helps for inclusion in an HTML attribute value
> delimited by quotes, as in <a href="...">.
Escaping quotes means we end up with a literal ' in the completion
view wherever there is a quote in the source text.
However, problem in #4199 , where unexpected parts of the text are
highlighted, can also happen with '<', '>', and '&', which still must be
escaped.
2018-09-15 13:39:49 -04:00
Florian Bruhin
59413810bf
Clean up emitting of follow_selected_done
2018-09-15 15:48:40 +02:00
zaowen
bdc41db601
Adblock import handles local directories and paths
...
Fixes #464
* Handles local Directories
* Handles local paths without file://
2018-09-15 02:22:44 -06:00
Florian Bruhin
d74daf9294
Fix lint
2018-09-14 22:52:40 +02:00
Florian Bruhin
4ae78d9bb2
Revert "Revert "Make sure we wait until follow_selected is done""
...
This reverts commit 200c11625f
.
2018-09-14 22:40:47 +02:00
Florian Bruhin
200c11625f
Revert "Make sure we wait until follow_selected is done"
...
This reverts commit bc45aa33e0
.
2018-09-14 21:58:42 +02:00
Florian Bruhin
bc45aa33e0
Make sure we wait until follow_selected is done
2018-09-14 20:18:33 +02:00
Jesko Dujmovic
25e396faea
Merge branch 'master' into master
2018-09-13 22:06:04 +02:00
Florian Bruhin
f9327731b8
Handle UTF-8 byte order marks in Greasemonkey scripts
...
See e.g. https://github.com/jerone/UserScripts/issues/135
2018-09-12 23:54:32 +02:00
Florian Bruhin
91b8002dd5
Clean up workaround for sqlite opening errors
...
Now that we know the real cause, we can be a bit stricter with our workaround.
2018-09-12 16:06:57 +02:00
Jay Kamat
59af280f5c
Merge pull request #4206 from airodactyl/feature/support-multiple-words-tab-give-take
...
Support multiple words for :tab-take without quotes
2018-09-11 18:37:21 -07:00
Florian Bruhin
c2a072f9fe
Fix handling of sqlite out of memory errors
...
The "error_code == -1" check never passed, as error_code (confusingly) is a
string of a number.
2018-09-12 01:36:50 +02:00
Florian Bruhin
c8b447daec
Clean up raise_sqlite_error
2018-09-12 01:31:41 +02:00
Florian Bruhin
941be6faed
Add docstring
2018-09-11 20:45:15 +02:00
Florian Bruhin
6a480564cb
Fix docs to say XDG_DATA_HOME instead of _DIR
2018-09-11 19:44:37 +02:00
Florian Bruhin
d80d9eb26c
Allow downloading from PDF.js
...
When we click the download button in PDF.js, it downloads a blob://qute:...
URL. We can detect that and force a download rather than opening it in PDF.js
again.
Note that what actually happens depends on the Qt version and backend:
QtWebKit (any Qt version):
Downloads always work properly (regardless of Qt version).
QtWebEngine, Qt 5.7.1:
Downloads work.
QtWebEngine, Qt 5.9 - 5.11:
Downloads won't work as we need to tell PDF.js to not use blob: URLs:
https://bugreports.qt.io/browse/QTBUG-70420 - in theory, PDF.js could fall back
to downloading the existing qute:// URL, but it has a whitelist of schemes
which does not include qute://... Since it's not in that whitelist, it just
ends up doing nothing at all.
QtWebEngine, Qt 5.12:
Downloads should hopefully work properly again, as we can register the qute://
scheme with Chromium, which allows us to use blob:// URLs.
2018-09-10 13:15:39 +02:00
Florian Bruhin
02641b86fc
Don't tell PDF.js to disable createObjectURL on Qt 5.7.1
...
Looks like things actually work fine there...
2018-09-10 13:01:01 +02:00
Michael Hoang
1b618b2501
Set maxsplit to 0 on :tab-take
2018-09-10 10:03:58 +10:00
Thomas Fischer
6b358fe955
(QtWebEngine) Unhide scrollbar on search result
2018-09-09 16:20:00 -07:00
Florian Bruhin
b4077a8543
Fix lint
2018-09-09 18:39:22 +02:00
Florian Bruhin
b96898db37
Simplify and lock down PDF.js filename handling
2018-09-09 18:35:09 +02:00
Florian Bruhin
231c1fbe59
Add underscore to temporary download filename suffix
2018-09-09 18:35:09 +02:00
Florian Bruhin
f7169dc0ba
Enable content.pdfjs setting on QtWebEngine
2018-09-09 18:35:09 +02:00
Florian Bruhin
36ad2c45b5
Clean up PDF.js snippet
2018-09-09 18:35:09 +02:00
Florian Bruhin
24babe76a1
Remove dead code
...
Thanks vulture!
2018-09-09 18:35:09 +02:00
Florian Bruhin
490fe5e1a3
Add utils.guess_mimetype
2018-09-09 18:35:09 +02:00
Florian Bruhin
24148c649e
Fix lint and tests
2018-09-09 18:35:09 +02:00
Florian Bruhin
2dccde8f4b
Only set PDFJS.disableCreateObjectURL when necessary
...
See #4198
2018-09-09 18:35:09 +02:00
Florian Bruhin
6665a1348e
Use jinja to get PDF.js script
2018-09-09 18:35:09 +02:00
Florian Bruhin
3ad7ae2a2c
Remove fix_urls which isn't needed anymore
...
With qute://pdfjs/web/viewer.html we can use relative URLs
2018-09-09 18:35:09 +02:00
Florian Bruhin
c40ddf37b7
Set disableCreateObjectURL for PDF.js
...
We can't use blob URLs or we'll get a renderer crash:
https://bugreports.qt.io/browse/QTBUG-70420
Thankfully, we can tell PDF.js to use data: URLs instead.
2018-09-09 18:35:09 +02:00
Florian Bruhin
bbcb87e434
Get PDF.js to work
...
We need to use the /web/viewer.html path so relative references are correct.
2018-09-09 18:35:09 +02:00
Florian Bruhin
7206dde19c
Revert "Simplify getting pdfjs main page"
...
This reverts commit 9c731bde85627308fdde4730b0181a014096cb47.
We need to set some PDF.js options, so we can't just use the default viewer
with ?file=...
2018-09-09 18:35:09 +02:00
Florian Bruhin
a0b4f09f02
Initial PDF.js support for QtWebEngine
2018-09-09 18:35:09 +02:00
Florian Bruhin
cb0c313404
Add qute://pdfjs/file to get files
...
Cross-origin requests aren't supported for qute:// URLs, and qute:// can't
access file://, so we need to get the files that way.
2018-09-09 18:35:09 +02:00
Florian Bruhin
8f19820a7a
Remove pdfjs.fix_urls
...
Now that we use qute://pdfjs to show the viewer, we don't need to rewrite any
URLs.
2018-09-09 18:35:09 +02:00
Florian Bruhin
24fb3b0d1b
Simplify getting pdfjs main page
2018-09-09 18:35:09 +02:00
Florian Bruhin
df67c254f8
Initial attempt at getting PDF.js to work with separate downloads
2018-09-09 18:35:09 +02:00
Florian Bruhin
8f1690eff7
Move pdfjs error page to pdfjs.py
2018-09-09 18:35:09 +02:00
Florian Bruhin
36b2f5e63f
Remove qute:// backend= argument
2018-09-09 18:35:09 +02:00
Florian Bruhin
dc82ac3eb2
Move qute_pdfjs to qutescheme.py
2018-09-09 18:35:09 +02:00
Florian Bruhin
b611ff52cf
Support URL patterns for content.autoplay
2018-09-09 18:31:41 +02:00
Jesko
f22fb30ef3
fixing non controversial changes
2018-09-09 20:51:19 +12:00
Jimmy
5252541fe3
greasemonkey: better handle scripts without metadata
...
Previously calling `script.code()` would fail if the script didn't have
a `name`. This wasn't being hit in practice because the only place that
constructs GreasemonkeyScripts was checking for that condition and add
the filename there as a fallback.
This change make the `name` attribute more explicitly mandatory by
failing with a `ValueError` if it is not provided and make it still
possible to use the filename fallback in that case by adding a
`filename` keyward argument to `__init__()`.
Additionally where `script_meta` is used in `script.code()` a fallback
to and emptry string was added so it doesn't fail for raw javascript
files without greasemonkey metadata.
2018-09-09 20:51:19 +12:00
Jimmy
32268ae66a
Split _inject_greasemonkey_scripts to separate requirements.
...
Because flake8 was complaining about cyclomatic complexity.
2018-09-09 20:45:21 +12:00
Jesko
abea603119
moving MAX_WORLD_ID to qtutils, changing test names, fixing linter errors, changing error type to WebTabError
2018-09-09 20:45:21 +12:00
Jesko
ee9b1f4950
adding tests and improving error messages
2018-09-09 20:45:21 +12:00
Jesko
0c38cbcbdd
putting in current borders
2018-09-09 20:45:21 +12:00
Jesko
8aa682e769
catching greasemonkey errors aswell
2018-09-09 20:45:21 +12:00
Jesko
583c7e4198
catch the exception
2018-09-09 20:45:21 +12:00
Jay Kamat
e295e8054c
Add support for triggering change handlers when using :open-editor
2018-09-08 20:39:38 -07:00
Florian Bruhin
88cbc9bb12
caret: Also enable end-of-doc-workaround on Windows
2018-09-08 16:32:28 +02:00
Florian Bruhin
3738a8c8a9
Apply caret mode workarounds correctly
2018-09-08 16:20:58 +02:00
Florian Bruhin
1647c28632
Allow lists for javascript.convert_js_arg
2018-09-08 16:20:38 +02:00
Florian Bruhin
45eece372f
Don't access caretElement if it's gone
2018-09-08 15:51:42 +02:00
Florian Bruhin
03dea493de
Make sure we only update the caret selection once
...
Otherwise, stuff goes haywire when trying to use the caret mode very fast (like
in a unit test), because new stuff runs before we've managed to update the selection.
2018-09-08 13:18:09 +02:00
cauimsouza
4a8d8688cb
Improve configuration description
2018-09-07 21:46:03 +02:00
Florian Bruhin
93eb05598e
Fix request logging
2018-09-07 16:12:40 +02:00
Florian Bruhin
0b27779c9d
Allow null initiator for qute:// URLs on Qt 5.11
...
Before Qt 5.11.2, for unique origins, we always got QUrl() and thus passed it
through.
With Qt 5.11.2, only missing origins (browser-initiated requests) get an empty
initiator, while unique origins get QUrl("null"):
https://codereview.qt-project.org/#/c/234849/
https://bugreports.qt.io/browse/QTBUG-69372
In theory, those should be locked down (as an unique origin is e.g. a sandboxed
iframe) and never have access to any other content.
However, thanks to a Qt bug, XHR on qute:// pages has QUrl("null") as origin as
long as the URL scheme is not registered. We can only do the registering once
Qt 5.12 is out.
Since unique origins were effectively already allowed on Qt 5.11.0/.1, we pass
them through here as well until Qt 5.12.
See #4198
2018-09-07 12:25:07 +02:00
Florian Bruhin
15c547b3f5
Move QuteSchemeHandler._check_initiator to its own method
2018-09-07 12:24:54 +02:00
Florian Bruhin
5ca911bcdb
Fix lint
2018-09-06 20:09:57 +02:00
Florian Bruhin
ab6c8dde9a
Decrease minimum QProgressDialog duration
...
We already have a threshold before we use a QProgressDialog at all, so let's
show it quite quickly and not after 4 seconds.
2018-09-06 17:26:28 +02:00
Florian Bruhin
d4f16f88b6
Remove support for importing pre-v1.0.0 history
2018-09-06 17:26:28 +02:00
Florian Bruhin
ec774379bd
Add tests for history progress
2018-09-06 17:13:46 +02:00
Florian Bruhin
e4b7786bcc
Factor out GUI stuff to a HistoryProgress object
2018-09-06 17:04:26 +02:00
Florian Bruhin
2109b2276e
Initial progress dialog for history rebuild
2018-09-06 16:52:14 +02:00
Florian Bruhin
cd8fd8ab3c
Use config cache for completion.web_history.exclude
...
On my machine, this speeds up regenerating from ~6min to ~25s.
2018-09-06 16:17:23 +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
cauimsouza
a742f03bca
Change setting name
2018-09-05 02:59:03 +02:00
cauimsouza
fc1d192880
Pass url as second argument to slot
2018-09-05 02:37:23 +02:00
Florian Bruhin
6293bc5178
Fix lint and test
2018-09-04 23:46:34 +02:00
SubbulakshmiRS
5b8e0d8d80
Fixing the previous patches
...
Patch files for correct usage of QuteSchemeError and general clean up.
Closes https://github.com/qutebrowser/qutebrowser/issues/4059
2018-09-04 23:15:05 +02:00
Florian Bruhin
58793d95d7
Further clean up error handling
2018-09-04 23:05:59 +02:00
Florian Bruhin
92fcc523c5
WIP: Properly signal scheme errors
2018-09-04 23:03:10 +02:00
Florian Bruhin
2fcdc5a0c9
Merge branch 'blacklist-history'
2018-09-04 22:19:52 +02:00
Florian Bruhin
f6d0ed78d0
Improve description for completion.web_history.exclude
2018-09-04 22:19:22 +02:00
cauimsouza
d324448039
Fix mute_per_domain feature
...
Users can allow sounds to be played by
default while specifying domains not allowed
to play sounds, or the opposite.
2018-09-04 16:40:05 +02:00
cauimsouza
9d91c22236
Allow tabs be muted by default
2018-09-04 04:25:37 +02:00
Philip Scheel
8d04f8cdc8
Fixed pylint complaints
2018-09-04 00:59:49 +02:00
Philip Scheel
cf13c31142
Resolved conflicts for merge, regenerated asciidoc, removed whitespace
...
Removed whitespace
2018-09-04 00:10:07 +02:00
Philip Scheel
35c2f95a58
Merged upstream, made requested modifications to the search engine code and added tests
2018-09-03 23:28:43 +02:00
Jay Kamat
d4cf5045ab
Fix tests for configcache
2018-09-02 18:03:36 -07:00
Jay Kamat
cc09f6c962
Fix doc issues in configcache
2018-09-02 14:38:46 -07:00
Jay Kamat
0335fc31c1
Use config cache to cache static hotspots
2018-09-02 14:23:01 -07:00
Jay Kamat
067d76616b
Implement config cache system
2018-09-02 14:23:00 -07:00
Florian Bruhin
79eece8fd0
Completely undo older changes
2018-09-02 18:27:30 +02:00
Florian Bruhin
87a4b1d662
Reduce code duplication
2018-09-02 18:26:43 +02:00
Florian Bruhin
5b0c10d430
Fix docstrings
2018-09-02 15:46:57 +02:00
Florian Bruhin
8a42256cff
Merge remote-tracking branch 'origin/pr/4178'
2018-09-02 15:45:48 +02:00
Florian Bruhin
a7775ffc2d
Release v1.4.2
2018-09-02 14:53:38 +02:00
Florian Bruhin
ed67263a64
Check redirect before patterns
2018-09-02 14:42:47 +02:00
Florian Bruhin
dbdeb6a9c7
Rename history.exclude to completion.web_history.exclude
...
If the blacklist is only valid for the completion, the setting should also be
under completion.
This also un-renames history.gap_interval and renames
completion.web_history_max_items.
2018-09-02 14:42:47 +02:00
Florian Bruhin
4f56355fbe
Don't affect qute://history with history.exclude
2018-09-02 14:42:47 +02:00
Florian Bruhin
3a13614d0e
Fix none_ok description in BaseType
2018-09-02 12:10:07 +02:00
Florian Bruhin
67b4b7d490
Handle :// as URL pattern
2018-09-02 11:58:34 +02:00
Florian Bruhin
37396d68f3
Define names for sqlite error codes
2018-09-01 22:25:22 +02:00
Florian Bruhin
f5c92ded41
Merge Sql{Environment,Bug}Error with Sqlite{Environment,Bug}Error
2018-09-01 22:25:22 +02:00
Florian Bruhin
50ae2bf2f9
Redesign SQL error handling
...
Instead of having an environmental attribute on exceptions, we now have two
different exception classes.
Fixes #3341
See #3073
2018-09-01 22:25:22 +02:00
Florian Bruhin
99ae49ccd6
Describe all sqlite error codes
2018-09-01 22:25:22 +02:00
Florian Bruhin
71a2dad570
Add a history.exclude setting
...
This allows to exclude URL patterns from being displayed in the completion or
in qute://history.
2018-09-01 22:25:22 +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
Florian Bruhin
5c8d4ede06
Rename history_gap_interval to history.gap_interval
2018-09-01 18:25:58 +02:00
Florian Bruhin
67a52527f5
Mark SQLITE_IOERR/SQLITE_CANTOPEN as environmental error
...
Fixes #3060
IOERR: The SQLITE_IOERR result code says that the operation could not finish
because the operating system reported an I/O error.
CANTOPEN: The SQLITE_CANTOPEN result code indicates that SQLite was unable to
open a file. The file in question might be a primary database file or on of
several temporary disk files.
2018-09-01 18:25:58 +02:00
Florian Bruhin
47218e5402
sql.Query: Roll back transactions on errors
2018-09-01 18:25:58 +02:00
Florian Bruhin
aff1108836
sql.Query: Make sure transaction/commit succeed
2018-09-01 18:25:58 +02:00
Florian Bruhin
992f13b5b8
Add sql.Query._check_ok
2018-09-01 18:25:58 +02:00
Florian Bruhin
3f2a468750
Also detect missing bound values for sql.Query.run_batch
2018-09-01 18:25:58 +02:00
Florian Bruhin
0e284944e7
Use composition instead of inheritance for sql.Query
...
This means we're more loosely coupled to Qt's QSqlQuery, and also can move some
logic for handling batch queries from the table to there.
2018-09-01 18:25:58 +02:00
Florian Bruhin
6b719fb218
Make sure queries don't have any missing bindings
2018-09-01 18:25:58 +02:00
Florian Bruhin
9fb794656b
Make it possible to force a history rebuild
...
This adds a new CompletionMetaInfo table which is a simple key/value store.
Thanks to Python/sqlite duck typing, we can use that to store values of any
type, even new ones in the future.
Currently, the only allowed key is force_rebuild, which forces a rebuild of the
CompletionHistory table. This will be needed for a future change.
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
1815070dab
Make sure the host blocker doesn't block 0.0.0.0
2018-08-31 16:48:45 +02:00
Florian Bruhin
65caf40b06
Remove unneeded import
2018-08-31 11:47:18 +02:00
Florian Bruhin
a13607674f
Elide URLs at the end and not in the middle
...
With a URL like http://www.example.com/long/path/end , an elision like
http://www.example.com/…/path/end would be nicest, but using ElideMiddle means
we can end up with something like http://www.example.…/path/end , which can
possibly trick a user during a phishing attempt.
Instead, let's just always elide at the end, so we end up with
http://www.example.com/long/ …. That makes sure the scheme/hostname (which are
most important) are visible as long as possible.
Fixes #4170 .
2018-08-30 07:46:01 +02:00
Florian Bruhin
8459afb76e
Recognize "Command"/"Cmd" in keybindings
2018-08-28 18:57:47 +02:00
Florian Bruhin
1a7efd92d7
Merge remote-tracking branch 'origin/pr/4140'
2018-08-27 10:06:04 +02:00
Florian Bruhin
bfec5c9f7f
Merge pull request #4153 from vilhalmer/set-desktop-entry-name
...
Set desktop file name
2018-08-27 09:31:00 +02:00
Florian Bruhin
1dd857a51a
Implement MouseLock permission
...
Closes #3287
2018-08-24 23:31:04 +02:00
vilhalmer
8ac9c72412
Set desktop file name
2018-08-21 21:38:26 -04:00
Jimmy
b192164f2e
Don't alphabetically sort tab completion.
...
`ListCategory` sorts its completion by default, we are already building
the categories in the right order so don't need that.
The test tests the case of where you have 11 tabs and if the model was
sorted the tabs with index 10 and 11 would be sorted before the one with
index 2.
The `random.sample` bit for the tab url and title is to also make sure
the model isn't being sorted on those columns, whithout haveng to write
and all ten lines.
2018-08-19 16:42:36 +12:00
lufte
9c4337c359
Fix "Unnecessary generator - rewrite as a list comprehension."
2018-08-17 18:06:23 -03:00
lufte
fd70d6d2d8
Some memory improvements with generators
2018-08-17 01:00:32 -03:00
lufte
68b9dff747
Perform attribute updates on a record's clone
2018-08-17 00:59:14 -03:00
Florian Bruhin
de8fd25f43
Change key to leave passthrough mode to Shift-Escape
...
We changed this a while ago in a2f62238f1
already, but Ctrl-V was kind of cumbersome as well, as it conflicted with
pasting.
Shift-Escape is closer to the default leave-mode binding (Escape), and also
unlikely to conflict as it's used for the task manager in Chrome.
2018-08-15 18:34:26 +02:00
Jay Kamat
b962c5c4d9
Merge pull request #4118 from DerJesko/master
...
Tests for ipv6 support in urlmatch
2018-08-13 14:33:53 -07:00
wishfort36
0e3e41a5e8
Handle nitpicks
2018-08-13 07:50:54 +02:00
wishfort36
b05738dd6c
Keep $QUTE_COUNT unset if a count is not given
2018-08-12 22:39:32 +02:00
wishfort36
359eefe1ab
Expose $QUTE_COUNT to userscripts
2018-08-12 21:21:01 +02:00
Florian Bruhin
58dffafb1e
Merge remote-tracking branch 'origin/pr/4126'
2018-08-12 20:24:56 +02:00
Florian Bruhin
2a1afd5255
Add more detailed info to _chromium_version docs
2018-08-11 22:18:52 +02:00
Jesko
0d78533480
remove useless config option
2018-08-11 19:43:11 +02:00
farlusiva
8e2307c546
Docstring things, change test
...
- Update the docstring for repeat
- Remove the blank line after the docstring
- Update the docstring with scripts/dev/src2asciidoc.py
- Simplify the test
2018-08-11 19:32:41 +02:00
wishfort36
f27195d360
Have 'times' multiply with [count] by default
2018-08-11 18:31:17 +02:00
wishfort36
961fa07fb0
Core functionality
2018-08-11 17:59:45 +02:00
Jesko
a676cca6c5
changing the texts of the errors
2018-08-10 20:49:20 +02:00
Jesko
b74b069153
removing useless brackets
2018-08-10 19:14:48 +02:00