Florian Bruhin
04dddc2475
Fix backslash escape
2017-01-13 18:25:34 +01:00
Florian Bruhin
73f371a956
Release v0.9.1
2017-01-13 18:10:03 +01:00
Florian Bruhin
cc4a8e53df
Prevent using %2F as slash in a Content-Disposition header
2017-01-13 18:04:04 +01:00
Florian Bruhin
2d364f43cf
Ignore Python 3.6 warnings in dependencies
2017-01-08 22:38:54 +01:00
Florian Bruhin
61e598552e
eslint: Turn off prefer-destructuring
2017-01-08 15:36:51 +01:00
Florian Bruhin
420897eaf1
Merge branch 'clear-keychain' of https://github.com/kevinwang/qutebrowser into kevinwang-clear-keychain
2017-01-07 21:29:29 +01:00
Florian Bruhin
16c8c1b189
Document how webelem.js works
2017-01-07 12:21:22 +01:00
Kevin Wang
3a1ecad1f3
Clear keychain on <Ctrl-[> in addition to <Escape>.
2017-01-07 00:45:06 -05:00
Daniel Schadt
bd5274af5a
fix tests
2017-01-04 17:59:53 +01:00
Daniel Schadt
69001111da
actually use DownloadTarget for :download -m /path
2017-01-04 16:32:25 +01:00
Daniel Schadt
6497bb5ace
break cicular imports in utils
2017-01-04 16:04:06 +01:00
Daniel Schadt
4fdd3cd761
deduplicate download opening code
2017-01-04 15:31:47 +01:00
Daniel Schadt
8c5ad7d46d
use download prompt for mhtml downloads
...
Fixes #2204
We didn't previously use PromptMode.download for MHTML download prompts
to avoid dealing with thinks like "Open download", but the new download
prompt is just way better than the old, which justifies the extra work.
This means that MHTML downloads can now also be opened directly.
2017-01-04 15:18:56 +01:00
Nikolay Amiantov
19966a9b9f
proxy_from_url: fix PACFetcher construction
2017-01-03 13:47:13 +03:00
Florian Bruhin
f4081c8b87
Fix error position when the statusbar is invisible
2016-12-29 20:35:10 +01:00
Florian Bruhin
643cf3f578
Fix various small mouse scrolling issues
2016-12-29 00:38:52 +01:00
Florian Bruhin
ce71b59894
Merge branch 'horizontal-scroll' of https://github.com/fiete201/qutebrowser into fiete201-horizontal-scroll
2016-12-29 00:34:26 +01:00
Fritz Reichwald
f25c5dedd6
First try for horizontal scrolling with mouse
2016-12-29 00:21:42 +01:00
Florian Bruhin
9837c9f70b
Release v0.9.0
2016-12-28 23:47:59 +01:00
Florian Bruhin
6d9362028f
Merge branch 'jinja-error' of https://github.com/fiete201/qutebrowser into fiete201-jinja-error
2016-12-28 23:31:04 +01:00
Florian Bruhin
864b9870a5
Also catch UnicodeDecodeError on Windows
2016-12-28 23:03:37 +01:00
Florian Bruhin
9727d6c74f
Improve error output
2016-12-28 23:03:30 +01:00
Fritz Reichwald
ae736da5f7
Fix lint
2016-12-28 22:51:20 +01:00
Fritz Reichwald
8c3d461482
Fix test for logging
2016-12-28 22:35:03 +01:00
Fritz Reichwald
421fc7eca3
Remove icon from html_fallback
2016-12-28 22:23:05 +01:00
Fritz Reichwald
0bd3100de8
Fix test_not_found
2016-12-28 22:11:34 +01:00
Fritz Reichwald
f38dda5f16
Fix html_fallback and logged error message
2016-12-28 02:23:35 +01:00
Fritz Reichwald
eb03f79978
Add error handling for UnicodeDecodeError
2016-12-27 22:51:30 +01:00
Fritz Reichwald
07143dd433
Add html escape proper quotes and log call
2016-12-27 20:31:57 +01:00
Fritz Reichwald
004b0dc911
Add fallback for missing error.html
2016-12-27 17:54:06 +01:00
Florian Bruhin
2d1d078430
Merge branch 'issue-2173' of https://github.com/Kingdread/qutebrowser into Kingdread-issue-2173
2016-12-22 22:24:19 +01:00
Florian Bruhin
71404a87b9
Fix lint
2016-12-22 15:14:35 +01:00
Florian Bruhin
89fe725a85
Add __init__.py
2016-12-22 14:26:35 +01:00
Florian Bruhin
6c1b7dcca1
Move proxy/pac out of QtWebKit folder
2016-12-22 13:54:11 +01:00
Florian Bruhin
b220b5438f
Add urlutils.proxy_for_url
2016-12-22 13:51:27 +01:00
Florian Bruhin
5a89ee96d9
Merge branch 'pac' of https://github.com/abbradar/qutebrowser into abbradar-pac
2016-12-22 08:53:10 +01:00
Daniel Schadt
f92c82ead1
downloads: don't remember dir for temp downloads
...
Fixes #2173
2016-12-20 14:52:39 +01:00
Samuel Walladge
aafcd1f1d7
fix failing pylint test (line too long)
2016-12-17 09:22:22 +10:30
Samuel Walladge
f6c73f3ad6
implement optional download-open handler setting
...
- adds new `general` -> `default-open-dispatcher` setting (string)
- if set, will be used instead of QDesktopServices.openUrl (xdg-open backend)
- fixes the 'download handlers' part of issue #841
- note that this is only relevent to the `:download-open` command and other
methods of opening downloaded files from qutebrowser
2016-12-16 21:54:04 +10:30
Florian Bruhin
f0831dacae
Bind back/forward keys by default
...
Those are the XF86Back/Forward media keys on a keyboard, which are apparently
handled by default with QtWebKit, but not QtWebEngine.
Fixes #2166 .
2016-12-13 21:49:10 +00:00
Florian Bruhin
d0372f1730
Decode percent sequences in QtWebEngine downloads
...
Fixes #2122 .
2016-12-09 07:08:51 +01:00
Florian Bruhin
03eea7f62a
Remove download filename suffixes with QtWebEngine
2016-12-09 07:00:25 +01:00
Florian Bruhin
5b70df15fa
Revert "Enable HighDPI scaling"
...
This reverts commit 62bcd24c9a
.
Looks like this causes issues for various people...
2016-12-08 21:23:56 +01:00
Florian Bruhin
976cd5f881
Fix lint
2016-12-08 10:31:52 +01:00
Florian Bruhin
62bcd24c9a
Enable HighDPI scaling
...
This should scale up things automatically, without needing to set e.g.
default-zoom (at least with QtWebEngine).
See #1993 , #1585
2016-12-08 09:45:46 +01:00
Florian Bruhin
c7d4ea5247
Ignore connection failures for debug.log_signals
2016-12-08 07:15:59 +01:00
Florian Bruhin
70b0a86729
WebEngine: Save/restore zoom when opening a new page
...
This isn't very pleasurable, but I can't find a solution to set the zoom
correctly while the page is still loading.
See https://bugreports.qt.io/browse/QTBUG-51851
Fixes #1993
2016-12-08 07:06:11 +01:00
Florian Bruhin
e5ddb281f4
Add a ui -> prompt-filebrowser option
...
See #2104
2016-12-07 12:33:44 +01:00
Florian Bruhin
57adcea587
Fix QTBUG-54419 workaround with tabs-are-windows set
...
Fixes #2162
2016-12-07 07:01:06 +01:00
Nikolay Amiantov
a7d96e0b85
Ignore ESLint warnings for Mozilla's PAC utils
2016-12-07 02:01:19 +03:00
Nikolay Amiantov
87890dab20
Add PAC files support
2016-12-07 02:01:19 +03:00
Florian Bruhin
d709756eb1
Add AbstractZoom._set_factor_internal
2016-12-06 22:50:08 +01:00
Florian Bruhin
caf1950868
Set the default zoom initially with QtWebEngine
...
This solves a part of #1993 , however when the user navigates to a
different page, the zoom is reset.
2016-12-06 20:28:18 +01:00
Nikolay Amiantov
271cb4b001
Add network logger
2016-12-06 18:16:25 +03:00
Florian Bruhin
df5ce12ed8
Make it possible to cancel authentication with QtWebEngine
...
Fixes #2156
2016-12-06 07:45:03 +01:00
Florian Bruhin
717fc97f05
Make tab.set_html work without base_url
2016-12-06 07:16:41 +01:00
Florian Bruhin
0ab23a74fb
Allow --qt-arg and --qt-flag to be given multiple times
...
Fixes #2151
2016-12-06 06:47:42 +01:00
Florian Bruhin
61ada6ba32
Merge branch 'tab-move' of https://github.com/Raihid/qutebrowser into Raihid-tab-move
2016-12-01 13:25:03 +01:00
Florian Bruhin
d668a1b6d6
Merge branch 'master' of https://github.com/Raihid/qutebrowser into Raihid-master
2016-12-01 13:23:01 +01:00
Maciej Wołczyk
63808fdb98
Removed handling of tab's position and color since it's done by QTabBar
2016-12-01 00:44:07 +01:00
Maciej Wołczyk
2fca442892
Fixed TabbedBrowserStub's tabBar, no longer toggling updates while moving tabs
2016-11-30 15:23:35 +01:00
Maciej Wołczyk
e613d01263
Fixed problems with tab completion after moving tabs ( #2141 )
2016-11-30 14:17:20 +01:00
Maciej Wołczyk
2cbea50152
Fixed style issues, corrected unit test
2016-11-29 19:10:36 +01:00
Florian Bruhin
9f5f362533
Don't crash if we can't get an element's value for editing
...
Fixes #2150
2016-11-29 11:31:03 +01:00
Florian Bruhin
5f22affa36
Show longer debug string for elems got from JS
...
See #2150
2016-11-29 11:16:04 +01:00
Florian Bruhin
6340eee448
Handle invalid text layout when drawing tab
2016-11-29 09:33:27 +01:00
Maciej Wołczyk
729cc61152
Fixed mhtml quopri encoding with spaces and tabs (see: #2063 )
2016-11-29 04:03:35 +01:00
Florian Bruhin
59d16efbef
Don't set title from URL twice
...
browsertab already does that before emitting url_changed.
2016-11-26 13:35:49 +01:00
Florian Bruhin
c83c9d96ae
Small cleanup
2016-11-26 13:33:38 +01:00
Florian Bruhin
c17bbd47b8
Fix QTBUG-54419 workaround for invalid URLs
2016-11-26 13:32:37 +01:00
Florian Bruhin
73c608dce7
Allow :open without URL with -t/-b/-w
2016-11-26 12:17:23 +01:00
Florian Bruhin
ea44c6d4b9
eslint: Turn off capitalized-comments
2016-11-26 11:48:57 +01:00
Florian Bruhin
64b47fc3a2
Handle an invalid $XDG_RUNTIME_DIR gracefully
...
This is probably against the XDG basedir spec, but some people have a
Linux without anything setting $XDG_RUNTIME_DIR correctly.
Fixes #971 .
2016-11-24 10:14:02 +01:00
Florian Bruhin
3d140a1353
Get rid of --cycle for :set with multiple values
...
See https://github.com/The-Compiler/qutebrowser/pull/1840#issuecomment-258714784
2016-11-24 07:23:49 +01:00
Niklas Haas
1b5664b72f
Add --cycle flag to :set
...
Chooses the next value from the provided list of values (string-wise
comparison). Technically, the 'option!' syntax for toggling bools is now
redundant, but a translation from 'option!' to '--cycle option false
true' is kept for backwards compatibility.
The '--cycle' flag could also be technically optionally, since the only
thing that depends on it is preserving the error message for specifying
multiple values. (But I think it's best to keep it explicit, as a
principle-of-least-surprise thing)
Note: The business logic of picking the next value and setting it was
moved out to a separate function to avoid tripping pylint's
too-many-branches detector.
Fixes #47
2016-11-24 07:22:06 +01:00
Florian Bruhin
c57ad91e04
Update comment for ignored Qt warning
2016-11-24 06:43:33 +01:00
Florian Bruhin
cc8db65b18
Merge branch 'cancel-register-key' of https://github.com/blyxxyz/qutebrowser into blyxxyz-cancel-register-key
2016-11-23 12:53:50 +01:00
Florian Bruhin
a3482a8979
Lowercase special keys when checking if they're new
...
Between v0.8.4 and now, the default keybinding for Ctrl-PgDown changed:
- ('tab-focus', ['J', '<Ctrl-PgDown>']),
+ ('tab-next', ['J', '<Ctrl-PgDown>']),
The existing keybinding was lower-cased in the config, but _is_new
didn't lowercase the new one, causing a conflict to show up.
Fixes #1835
See #1958
Supersedes #1986
2016-11-23 12:37:19 +01:00
Florian Bruhin
552e0551af
Revert zero counts
...
This initially seemed like a nice feature, but it means 0 can't be bound
as a separate key anymore, and 0<Esc> gives weird error messages...
Reverts #1953 .
Fixes #2032 .
2016-11-23 08:37:29 +01:00
Florian Bruhin
1507cfcae7
Fix lint
2016-11-23 08:37:24 +01:00
Florian Bruhin
946e3f93f9
Add --enable-webengine-inspector option
...
Since the inspector can be a security risk, it's now not linked to
developer-extras anymore until QtWebEngine provides a better way to
access it.
See:
https://bugreports.qt.io/browse/QTBUG-50725
http://bouk.co/blog/hacking-developers/
2016-11-23 08:12:13 +01:00
Florian Bruhin
d99a7bd7ad
Pass arguments to websettings init functions
2016-11-23 07:57:35 +01:00
Florian Bruhin
7ffabb2b92
Update docs
2016-11-22 22:22:24 +01:00
Florian Bruhin
f0cc1de808
Merge branch 'master' of https://github.com/Raihid/qutebrowser into Raihid-master
2016-11-22 20:32:59 +01:00
Maciej Wołczyk
81cbd4c8a0
Hyphen in variable name fixed
2016-11-22 17:39:13 +01:00
Maciej Wołczyk
9d19c3aee6
Changed add to history option name
2016-11-22 17:27:34 +01:00
Florian Bruhin
20af3133eb
Simplify if-condition
2016-11-22 11:24:34 +01:00
Florian Bruhin
97d23144f7
Add an API to get the QNAM of a tab
2016-11-22 11:23:45 +01:00
Florian Bruhin
c363982d05
Use per-tab QNAM for QtNetwork downloads again
...
When starting a download due to unsupportedContent being emitted, we
need to use (and later adopt) the page's QNetworkAccessManager.
Since we need the whole adopting logic for that case anyways, let's keep
things as they were and always run downloads in per-tab QNAMs.
This reverts 53e360ec4b
and fixes #2134 .
2016-11-22 11:10:37 +01:00
Maciej Wołczyk
918b3e2d12
History flag: test added, short version changed, minor fixes
2016-11-21 15:33:38 +01:00
Florian Bruhin
c5cacbc439
Handle background tabs in QtWebEngine createWindow with older Qt
2016-11-21 06:22:38 +01:00
Rahid
058c3e6541
Trailing spaces
2016-11-18 23:45:12 +01:00
Rahid
bf41135846
Added chronicle flag to init function, docs
2016-11-18 23:10:50 +01:00
Maciej Wołczyk
554b9b2bda
Added chronicle flag
2016-11-18 20:16:43 +01:00
Florian Bruhin
d1154759d1
Improve --qt-arg docs
2016-11-16 22:35:20 +01:00
Florian Bruhin
8d7fcf41da
Set a maximum width for prompts
...
Fixes #2124
2016-11-16 22:26:16 +01:00
Florian Bruhin
7c88fe318f
Handle cancelled SSL prompts correctly
...
When the user pressed esc during an SSL prompt, the message.ask call
returned None, which was handled fine by QtWebKit (which simply used an
'if') but failed with QtWebEngine (which returned the value to Qt).
Fixes #2123 .
2016-11-16 22:13:57 +01:00
Florian Bruhin
25358bb5fc
Clean up webelem.text/set_text
...
webelem.text() was only used without use_js=True from webelem.__str__.
Now we instead default to the use_js=True behavior and renamed the
method from text() to value().
The old behavior is instead directly implemented in __str__.
This changes how webelem.value (aka text) handles elements for which
is_content_editable() returns True, but I haven't found any cases where
this makes a difference.
This also fixes getting existing text from elements with QtWebEngine,
which closes #1957 .
2016-11-16 12:34:27 +01:00
Florian Bruhin
35d9514456
Whoops...
...
Dang, spacemacs!
2016-11-16 07:50:47 +01:00
Florian Bruhin
e9a8201aa1
cxfreeze requirements: Blacklist >= 5.0.0
...
See #1004
2016-11-16 07:48:37 +01:00