Florian Bruhin
bc3e1b316d
Use "command -v" instead of "which" in bash scripts
...
shellcheck recently added SC2330 checking for this. "which" is non-standard, and
not guaranteed by POSIX to have a meaningful exit status, while "command -v" is
specified by POSIX: https://stackoverflow.com/q/592620
2018-02-27 06:23:00 +01:00
Florian Bruhin
53fb5af99c
Paste version information privately
2018-02-26 23:09:55 +01:00
Florian Bruhin
cdf6f52d15
Update changelog
...
[ci skip]
2018-02-26 08:15:34 +01:00
Florian Bruhin
6f9c62b24a
Improve marker descriptions
2018-02-26 07:56:51 +01:00
Florian Bruhin
353753c03c
Merge remote-tracking branch 'origin/pr/3620'
2018-02-26 07:26:24 +01:00
Florian Bruhin
de0aa32c11
Merge remote-tracking branch 'origin/pr/3626'
2018-02-26 07:20:34 +01:00
Florian Bruhin
edd2f89d5d
Update changelog
2018-02-26 07:16:55 +01:00
Florian Bruhin
bd79d7e071
Merge remote-tracking branch 'origin/pr/3637'
2018-02-26 07:16:19 +01:00
Jay Kamat
76bf35cbdd
Add qtbug60673 markers to relevant tests
2018-02-25 19:00:15 -05:00
Jay Kamat
7a8fa5f46e
Implement deduplication of searches on webkit
2018-02-25 18:40:16 -05:00
Anton S
eeb565319f
Handle invalid URLs on Apple events
2018-02-25 23:58:49 +03:00
Florian Bruhin
3df066c694
Update changelog
2018-02-25 21:10:35 +01:00
Florian Bruhin
54713f57e5
Merge remote-tracking branch 'origin/pr/3624'
2018-02-25 21:09:56 +01:00
Florian Bruhin
a98466336e
Update changelog
2018-02-25 19:58:23 +01:00
Florian Bruhin
52b5492c6a
Merge branch 'per-url'
2018-02-25 19:44:51 +01:00
Florian Bruhin
ba88fc43e0
Stabilize error page test
2018-02-25 19:40:38 +01:00
Florian Bruhin
abf4d10d5b
Add a test for :set -p with a pattern
2018-02-25 19:33:27 +01:00
Florian Bruhin
4c147b77c1
Add a test for the error page workaround
2018-02-25 16:35:02 +01:00
Florian Bruhin
a32d74e983
Fix lint
2018-02-25 16:08:15 +01:00
Florian Bruhin
d44ff5ba01
Don't load the URL immediately on :undo
...
On some pages like Qt's Gerrit, Indiegogo or Telegram Web, this caused a crash
with QtWebEngine and Qt 5.10.1 in
QtWebEngineCore::WebContentsAdapter::webContents().
I'm not sure what causes the crash exactly, but I'm guessing it's some kind of
race condition between loading the URL initially and deserializing the history,
which both ends up loading the URL.
Since restoring the history means we end up on the given URL anyways, let's just
not open the URL beforehand, which seems to fix this.
Fixes #3619 .
2018-02-25 15:55:20 +01:00
Florian Bruhin
97e00ba4b5
Only reload after setting changes when needed
...
Apparently, things work fine with Type.link_clicked even if we don't emit
predicted_navigation there...
2018-02-25 15:17:03 +01:00
Florian Bruhin
eade305965
Add a predicted_navigation signal
...
This is emitted when we know that we're going to visit some URL, but Qt doesn't
know yet. This way, we can change the settings early, and since we know which
settings have actually changed, prevent a change needing a reload in
_on_navigation_request.
2018-02-25 15:04:04 +01:00
Florian Bruhin
65a62b67a5
Go back to using tab.openurl on config changes
...
This seems to work most reliably at the moment...
2018-02-25 14:45:30 +01:00
Florian Bruhin
638e880604
Improve workaround for missing error pages
2018-02-25 14:45:30 +01:00
Florian Bruhin
bfb3a6594f
Try using tab.reload() on setting changes instead
2018-02-25 14:45:19 +01:00
Florian Bruhin
08bc55995b
First attempt at reloading pages after setting changes
2018-02-25 14:45:09 +01:00
Jay Kamat
4602afe770
Add a webengine duplicate search test
2018-02-23 18:13:20 -05:00
Jay Kamat
820ffed07f
Remove test blacklists for 5.10
2018-02-23 18:06:57 -05:00
Jay Kamat
f926e7b850
Emulate webkit duplicate search behavior on webengine
2018-02-23 18:06:21 -05:00
Florian Bruhin
2c96446bb9
Track which settings changed for a URL
...
This is currently only used so only changed settings are logged, but will used
for more in the next commit.
2018-02-23 18:11:33 +01:00
Florian Bruhin
75b65e2f11
Simplify attribute handling in Web(Kit|Engine)Settings
...
Let's just have lists in _ATTRIBUTES for WebEngineSettings as well, that allows
us to share some more code.
2018-02-23 17:59:12 +01:00
Florian Bruhin
fc6a0dbe64
Show a simple error page on loading errors without JS
...
We can't tell what exactly the error is, but it's surely better than nothing.
2018-02-23 17:29:17 +01:00
Florian Bruhin
98b2b67b8b
Add tests for per-URL JavaScript settings
2018-02-23 15:08:07 +01:00
Florian Bruhin
3956f81e73
Refactor websettings
...
This refactors the whole web(kit|engine|) settings mess a bit so there's a
Web(Kit|Engine)Settings object for (non-static) settings set on a
QWeb(Engine)Settings object in Qt. Everything else is set on module-level a bit
less declaratively.
The whole inheritance mess is gone, and we can now also construct a
Web(Kit|Engine)Settings object for a given tab.
Fixes #2701
2018-02-23 09:51:28 +01:00
Florian Bruhin
49ead32f13
Update urlmatch tests for Chromium changes
...
See:
0ab1294c92
%5E%21/
https://bugs.chromium.org/p/chromium/issues/detail?id=812543
2018-02-23 06:31:49 +01:00
Jay Kamat
cb8d62866c
Blacklist qt versions 5.8.0 through 5.9.4 for caret tests
2018-02-22 18:34:15 -05:00
Jay Kamat
7ecbae765d
Use baseNode over anchorNode in follow-selected
...
baseNode isn't documented anywhere that I can find, but it seems to be
getting us what anchorNode used to get us.
2018-02-22 16:42:58 -05:00
Jay Kamat
c16c625feb
Add basic tests for searching and caret mode
2018-02-22 10:28:35 -05:00
Florian Bruhin
eb4c806ddb
Add URL pattern to settings output
2018-02-22 08:07:54 +01:00
Florian Bruhin
5c4277aac8
Add some default keybindings for toggling scripts
...
Those follow the following pattern:
1) "t" for 'toggle"
2) "s" for "scripts", upper-casing ("S") to make the toggle permanent
3) "h" for host, "H" for host with subdomains, "u" for the exact URL
2018-02-22 08:07:54 +01:00
Jay Kamat
2ffb1604d3
Convert search to blue selection when entering caret mode
2018-02-21 10:01:27 -05:00
Florian Bruhin
ada15510a7
Update changelog
2018-02-21 11:07:55 +01:00
Florian Bruhin
81c17627f7
Merge remote-tracking branch 'origin/pr/3617'
2018-02-21 11:06:52 +01:00
Florian Bruhin
d2e996a3b3
Merge remote-tracking branch 'origin/pr/3610'
2018-02-21 11:06:05 +01:00
Florian Bruhin
d2182edc7a
Merge remote-tracking branch 'origin/pr/3603'
2018-02-21 11:03:37 +01:00
Florian Bruhin
ca26d97589
Merge remote-tracking branch 'origin/pr/3599'
2018-02-21 11:02:51 +01:00
Florian Bruhin
13bd4dd05d
Clean up version.pastebin_url in pbclient fixture
2018-02-21 10:49:42 +01:00
Florian Bruhin
2fbc7b4e1d
Merge remote-tracking branch 'origin/pr/3594'
2018-02-21 10:15:27 +01:00
Florian Bruhin
8b09003bd1
Merge remote-tracking branch 'origin/pr/3592'
2018-02-21 10:13:26 +01:00
Florian Bruhin
ecfd4a77a0
Merge remote-tracking branch 'origin/pr/3562'
2018-02-21 10:11:40 +01:00