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
Florian Bruhin
3638849257
Fix lint
2016-11-15 23:41:53 +01:00
Florian Bruhin
7d8ef9fccf
Remove urlutils import
2016-11-15 23:25:14 +01:00
Florian Bruhin
8e0565b79a
Add {backend} window/tab title field
2016-11-15 23:23:20 +01:00
Florian Bruhin
d7d270ea28
Implement user stylesheets for QtWebEngine
2016-11-15 23:17:27 +01:00
Florian Bruhin
fcb955458c
Require a filename for user-stylesheet; add hide-scrollbar setting
2016-11-15 22:58:56 +01:00
Florian Bruhin
964ddb472b
Add urlutils.data_url
2016-11-15 22:25:51 +01:00
Florian Bruhin
a09a565aea
Improve :click-element error message
2016-11-15 19:43:03 +01:00
Florian Bruhin
d05918ac0b
Add custom user-agent support for QtWebEngine
2016-11-15 11:32:05 +01:00
Florian Bruhin
8d173e1718
Update comment
2016-11-15 10:55:12 +01:00
Florian Bruhin
fc7961ae22
Set correct paths for QtWebEngine
2016-11-15 10:51:14 +01:00
Florian Bruhin
ed10cd14d6
Remove history NUL byte logging
...
It just produces a lot of logging noise, and I still have no idea what
to do about it...
2016-11-15 07:28:35 +01:00
Florian Bruhin
a38e6be52a
Fix standarddir._from_args
2016-11-15 07:26:10 +01:00
Florian Bruhin
671ce67be5
Remove --datadir/--confdir/--cachedir
...
Closes #2115 .
2016-11-15 07:09:46 +01:00
Florian Bruhin
d04534dc33
Reenable @qtwebengine_createWindow tests
...
Closes #2121
2016-11-15 07:03:13 +01:00
Jan Verbeek
fc79349af6
Remove misplaced blank line
2016-11-15 00:30:54 +01:00
Jan Verbeek
f0d215e07a
Change hard-coded escape to leave-mode binding
2016-11-14 23:28:38 +01:00
Florian Bruhin
81d67f8a2c
Remove support for an empty data/config/cachedir
...
See #2115
2016-11-14 23:13:21 +01:00
Florian Bruhin
b30d37e3e0
WebEngine: Fake keypresses with modifiers instead of override_target
...
With QtWebEngine, handling a click (e.g. createWindow being called)
happens some time after a click event has been handled.
When setting override_target, that means we don't know when to set the
override target back, and we can't simply only unset it in createWindow
as elements not causing a new tab to be opened (like an input field) can
be hinted too.
Instead, we now only use override_target with QtWebKit, and simply
generate fake key events with the right modifiers to do the right thing
in createWindow for QtWebEngine.
Fixes #2119 .
2016-11-14 23:09:16 +01:00
Florian Bruhin
ba1bcc658e
Fix WebEnginePage acceptNavigationRequest
2016-11-14 09:37:23 +01:00
Florian Bruhin
781a326648
Fix lint
2016-11-14 09:14:57 +01:00
Florian Bruhin
30827c1239
Fix rapid hinting with QtWebEngine
...
There were actually two issues here:
- The override_target was reset too early - now
acceptNavigationRequest/createWindow is responsible for resetting it.
- The QTBUG-54419 workaround opened any tabs in the background instead
of preserving their position/focus.
Fixes #2086 .
2016-11-14 07:14:44 +01:00
Florian Bruhin
5de07246be
Handle clicks via createWindow with QtWebEngine
...
Before, we used the same logic for QtWebKit and QtWebEngine, where we
simply set an attribute on the tab on a mousePressEvent and then handled
opening links in acceptNavigationRequest.
However, this caused random links to pop up in new tabs (probably to
things being much more async?) on QtWebEngine, so we now handle those
cases in createWindow and only use override_target from the tab there.
Fixes #2102 .
2016-11-14 06:52:33 +01:00
Florian Bruhin
650b9e465c
Merge branch 'webengine-prompts'
2016-11-13 21:25:07 +01:00
Florian Bruhin
02257694c4
Fix indent
2016-11-13 12:43:20 +01:00
thuck
e1012501ec
Issue only happens when using webengine
...
Check if using webengine, before trying to use thw workaround
2016-11-13 12:10:03 +01:00
thuck
0eab91ac4c
Fix for webengine too
2016-11-13 11:56:21 +01:00
thuck
56ee7d63b3
Should fix the issue #2117
2016-11-13 09:50:54 +01:00
Florian Bruhin
5bdd74138d
Handle not being able to get elements via JS
2016-11-13 01:46:18 +01:00
Florian Bruhin
645a9aa6e1
Add a better workaround for QTBUG-54419
...
Whenever we open a new tab in createWindow, we now set an attribute
marking it - as soon as its URL changes the first time, we then close
and re-open it in a new tab in TabbedBrowser.
2016-11-13 01:38:02 +01:00
Florian Bruhin
2dd857d580
Remove FakeTypingMeta.__subclasscheck__
2016-11-11 07:40:21 +01:00
Florian Bruhin
94e2a4dccc
Make sure the tab indicator color is always available
2016-11-11 07:04:01 +01:00
Jan Verbeek
75c996c13e
Cancel register key input with escape
2016-11-11 02:45:59 +01:00
Florian Bruhin
a6215be864
Get rid of NetworkManager._ask
2016-11-10 22:45:27 +01:00
Florian Bruhin
a9d48753ef
Adjust docstring
2016-11-10 22:45:27 +01:00
Florian Bruhin
b270c69ea7
Improve authentication dialog with no realm
2016-11-10 22:45:27 +01:00
Florian Bruhin
29cb9279e5
Emit shutting_down signal when a WebEngineTab shuts down
...
Fixes #2109
2016-11-10 22:45:27 +01:00
Florian Bruhin
8d781c68c9
Fix lint
2016-11-10 22:45:27 +01:00
Florian Bruhin
013c2691d5
Fix javaScriptPrompt override for newer PyQt versions
2016-11-10 22:45:27 +01:00
Florian Bruhin
62d258190f
Only support :debug-clear-ssl-errors with QtWebKit
2016-11-10 22:45:27 +01:00
Florian Bruhin
adb2ce0160
Remove MouseLock permission support
...
For some reason it doesn't work...
2016-11-10 22:45:27 +01:00
Florian Bruhin
bbcbb24cb5
Handle feature permissions with QtWebEngine
2016-11-10 22:45:27 +01:00
Florian Bruhin
8f55725555
Fix lint
2016-11-10 22:45:27 +01:00
Florian Bruhin
8a4ca25b8d
Avoid circular import
2016-11-10 22:45:27 +01:00
Florian Bruhin
c6f83d3148
Don't show SSL error page for subresources
2016-11-10 22:45:27 +01:00
Florian Bruhin
d93bc8b26b
Make prompt tests run
2016-11-10 22:45:27 +01:00
Florian Bruhin
6697d692e1
webengine: Initial SSL error support
2016-11-10 22:45:27 +01:00
Florian Bruhin
65625a9dea
webengine: Initial support for authentication and javascript prompts
2016-11-10 22:45:27 +01:00
Florian Bruhin
6d72bce4b6
Remove stub call for WebEngineCaret._on_mode_(entered|left)
...
It doesn't really serve a purpose...
2016-11-10 22:41:41 +01:00
Florian Bruhin
adcd8a7220
Fix lint
2016-11-10 08:53:44 +01:00
Florian Bruhin
bddda6b778
Use a data: URL for the broken qutebrowser logo
...
It blows our HTML up, but we use error.html from various places with
various security policies, so we can't rely on being able to load
file:// URLs.
2016-11-10 08:53:06 +01:00
Florian Bruhin
f1bba45db5
Revert "Serve broken qutebrowser logo via qute:resources"
...
This reverts commit 37fa7431b0
.
2016-11-10 07:51:19 +01:00
Florian Bruhin
bbd842bd82
Get rid of modeman.maybe_leave
2016-11-10 07:19:45 +01:00
Florian Bruhin
2ef85d6c35
Fix macros with a mode-switching command
2016-11-10 07:16:52 +01:00
Florian Bruhin
5d30105a53
Merge branch 'macros' of https://github.com/blyxxyz/qutebrowser into blyxxyz-macros
2016-11-10 06:50:21 +01:00
Florian Bruhin
ac2df2f253
Merge branch 'webengine-downloads-3'
2016-11-09 19:09:58 +01:00
Jan Verbeek
a778b7184c
Revert back to objreg to avoid circular import
2016-11-09 19:07:56 +01:00
Jan Verbeek
f1c3bc89ec
Further cleanup
2016-11-09 14:56:41 +01:00
Florian Bruhin
1a5e90f652
Fix lint
2016-11-09 14:29:06 +01:00
Jan Verbeek
479c8e56b4
Improve macro code style, info messages
2016-11-09 13:09:10 +01:00
Florian Bruhin
d80022f3cd
Merge branch 'issue1619' of https://github.com/HolySmoke86/qutebrowser into HolySmoke86-issue1619
2016-11-09 12:32:52 +01:00
Jan Verbeek
e5dec949b0
Merge https://github.com/The-Compiler/qutebrowser into macros
2016-11-09 12:17:04 +01:00
Daniel Karbach
4afd75a24d
typo in comment
2016-11-09 09:30:37 +01:00
Florian Bruhin
cf32aac111
Move usertypes.DownloadTarget to downloads module
2016-11-09 08:15:58 +01:00
Florian Bruhin
80562fbdca
Add DownloadTarget.suggested_filename
2016-11-09 08:06:57 +01:00
Florian Bruhin
8771759f68
Improve error handling in objreg.dump_objects
2016-11-09 07:54:02 +01:00
Florian Bruhin
970e4d3e03
Fix mhtml overwrite prompts
...
See #2101
2016-11-08 23:23:53 +01:00
Florian Bruhin
df9bee33f4
Fix 100% coverage in misc.ipc
2016-11-08 21:56:54 +01:00
Florian Bruhin
baeb8653c8
Finish stats correctly with QtWebEngine downloads
2016-11-08 20:41:40 +01:00
Florian Bruhin
3ba7f28069
Re-add download cleanup on shutdown
2016-11-08 20:36:49 +01:00
Florian Bruhin
de1e3a7a54
Make DownloadItem._autoclose private
2016-11-08 20:35:07 +01:00
Florian Bruhin
b00c889dd1
Call _set_fileobj in AbstractDownloadItem.set_target
2016-11-08 20:33:25 +01:00
Florian Bruhin
23e7b3f551
Elide js element debug string
2016-11-08 12:17:44 +01:00
Florian Bruhin
19d31ac201
Deduplicate "Focus object changed" logging
2016-11-08 12:17:44 +01:00
Florian Bruhin
57ee378ec5
Ignore None-socket in ipc.on_timeout
2016-11-08 12:17:44 +01:00
Florian Bruhin
f271081012
Handle None-tab in on_current_changed
2016-11-08 12:17:44 +01:00
Florian Bruhin
19c7d747dd
Fix downloads with unknown size with WebEngine
2016-11-08 09:18:10 +01:00
Florian Bruhin
ed3347365f
Fix lint
2016-11-08 09:18:10 +01:00
Florian Bruhin
54db4255b1
Fix handling of temporary files
...
When we use self._set_filename in self._set_fileobj, the file already
exists, so we need to force "overwriting" it.
Also, move temporary file handling to a dedicated _set_tempfile method,
so we can officially claim not supporting _set_fileobj with QtWebEngine
instead of supporting it with a hack.
2016-11-08 09:18:10 +01:00
Florian Bruhin
53e360ec4b
Always use a global QNAM for downloads
...
This makes a lot of code eaiser, and we don't have per-tab settings yet
anyways. Also, with QtWebEngine, we can't honour any per-tab settings
for downloads...
2016-11-08 09:18:09 +01:00
Florian Bruhin
bc1e4385e0
Fix first bunch of download tests
2016-11-08 09:18:09 +01:00
Florian Bruhin
ce1b675a1e
Implement :download/hints via QtNetwork
2016-11-08 09:18:09 +01:00
Florian Bruhin
5bc3914f24
Pass basename only as suggested filename
2016-11-08 09:18:09 +01:00
Florian Bruhin
fc6c6d4998
Fix lint
2016-11-08 09:16:47 +01:00
Florian Bruhin
39b3bfba93
Mention package names in pdfjs error
...
Closes #2095 .
2016-11-08 06:18:40 +01:00
Florian Bruhin
690633bd87
Release v0.8.4
2016-11-06 00:47:53 +01:00
Florian Bruhin
f7cfb6afc3
Release v0.8.3
2016-11-05 23:08:28 +01:00
Florian Bruhin
b6195d4e77
Fix handling of typing.Union with newer Python 3.5 versions
2016-11-05 22:11:52 +01:00
Florian Bruhin
a5afdf6fb6
Handle QtWebEngine downloads in DownloadModel
2016-11-04 18:49:25 +01:00
Florian Bruhin
ea9796403f
Fix _ask_confirm_question
2016-11-04 18:49:25 +01:00
Florian Bruhin
bf994cd8da
Initial QtWebEngine download support
2016-11-04 18:49:24 +01:00
Florian Bruhin
c876c3d244
Fix lint
2016-11-04 18:49:24 +01:00
Florian Bruhin
a3a167e683
Split _die in two methods
...
We need to do some stuff before AbstractDownloadItem._die runs.
2016-11-04 18:49:24 +01:00
Florian Bruhin
6eef79e180
Adjust imports/objreg
2016-11-04 18:49:24 +01:00
Florian Bruhin
990985e60f
Rename browser.webkit.downloads to browser.qtnetworkdownloads
2016-11-04 18:49:24 +01:00
Florian Bruhin
e985730cbf
Simplify TempDownloadManager initialization
2016-11-04 18:49:24 +01:00
Florian Bruhin
7ca6996f39
Adjust imports
2016-11-04 18:49:24 +01:00
Florian Bruhin
0ac2b71304
Simplify how filename questions are handled
2016-11-04 18:49:24 +01:00
Florian Bruhin
3b51548d3a
More download splitting
2016-11-04 18:49:24 +01:00
Florian Bruhin
92b1bf2227
Get rid of win_id for DownloadItem
2016-11-04 18:49:24 +01:00
Florian Bruhin
12d798d54d
Continue download splitting
2016-11-04 18:49:24 +01:00