Daniel Carl [Thu, 10 Jan 2019 09:26:37 +0000 (10:26 +0100)]
Always generate version from git if possible #532.
Leonardo Taccari [Thu, 22 Nov 2018 09:12:00 +0000 (10:12 +0100)]
Add links to pkgsrc packages.
Daniel Carl [Wed, 21 Nov 2018 23:32:54 +0000 (00:32 +0100)]
Increased min required webkit version to 2.20.x #525.
Daniel Carl [Wed, 21 Nov 2018 23:23:09 +0000 (00:23 +0100)]
Fixed -Wpointer-sign warning.
Daniel Carl [Wed, 21 Nov 2018 23:14:04 +0000 (00:14 +0100)]
Switch distro for testing.
Daniel Carl [Wed, 21 Nov 2018 22:34:38 +0000 (23:34 +0100)]
Fixed wrong link in README.
Daniel Carl [Wed, 21 Nov 2018 22:21:01 +0000 (23:21 +0100)]
Fixed none shown hint labels by CSP headers #531.
The styling by elements style attribute might be forbidden by
Content-Security-Policy restrictions. But positioning of the elements by
the elements style object seems to work.
Daniel Carl [Wed, 21 Nov 2018 11:33:26 +0000 (12:33 +0100)]
Added link to mailing list archive.
Sören Tempel [Sun, 11 Nov 2018 22:35:25 +0000 (23:35 +0100)]
Fix out-of-bounds buffer access in parse_command
Since the cmd buffer needs to be null terminated we need to reserve
space for the null byte in the buffer.
Without this change an out-of-bounds buffer access is performed if the
first word is longer than 19 chars.
Fixes #529
Daniel Carl [Tue, 6 Nov 2018 23:00:04 +0000 (00:00 +0100)]
Update default user-agent to webkit default.
Daniel Carl [Tue, 6 Nov 2018 22:56:18 +0000 (23:56 +0100)]
Increase the version number.
Daniel Carl [Tue, 6 Nov 2018 22:46:08 +0000 (23:46 +0100)]
Fix some typos in CHANGELOG.
Daniel Carl [Tue, 6 Nov 2018 22:25:17 +0000 (23:25 +0100)]
Released version 3.3.0.
Daniel Carl [Mon, 29 Oct 2018 22:23:46 +0000 (23:23 +0100)]
Fixed none freed command variable.
Also removed goto from command_spawn_editor function. This makes the
code a little easier to read.
Daniel Carl [Thu, 25 Oct 2018 21:29:43 +0000 (23:29 +0200)]
Fix some code indentation.
Daniel Carl [Thu, 25 Oct 2018 21:29:06 +0000 (23:29 +0200)]
Fix possible memory leak #361.
Daniel Carl [Thu, 25 Oct 2018 21:02:06 +0000 (23:02 +0200)]
Merge branch 'view_source_support' of https://github.com/iamleot/vimb.
Leonardo Taccari [Thu, 25 Oct 2018 19:37:56 +0000 (21:37 +0200)]
Document `gf' command
Leonardo Taccari [Thu, 25 Oct 2018 11:55:21 +0000 (13:55 +0200)]
Always pass NUL-terminated text to command_spawn_editor()
It seems that there is no any guarantee that
webkit_web_resource_get_data_finish() return data that is
NUL-terminated.
Leonardo Taccari [Sun, 21 Oct 2018 16:21:51 +0000 (18:21 +0200)]
Avoid possible strlen() on NULL content
Leonardo Taccari [Fri, 19 Oct 2018 11:04:41 +0000 (13:04 +0200)]
Add command_spawn_editor() and implement normal_view_source()
- Add a command_spawn_editor() to asynchronously spawn editor
- Adjust input_editor_formfiller() to use command_spawn_editor()
- Add support to view the source of the current page via the editor (`gf'
command).
Daniel Carl [Fri, 19 Oct 2018 21:42:00 +0000 (23:42 +0200)]
Add links to pages writing about vimb.
Daniel Carl [Fri, 19 Oct 2018 21:35:52 +0000 (23:35 +0200)]
Add link to slackware package.
Daniel Carl [Mon, 15 Oct 2018 21:56:46 +0000 (23:56 +0200)]
Also test completion without filtering.
Daniel Carl [Mon, 15 Oct 2018 21:53:02 +0000 (23:53 +0200)]
Remove also tests on make clean.
Daniel Carl [Mon, 15 Oct 2018 21:15:41 +0000 (23:15 +0200)]
Use --no-install-recommends for travis install.
Daniel Carl [Mon, 15 Oct 2018 21:05:15 +0000 (23:05 +0200)]
Fixed wrong return type for util_file_set_content().
Leonardo Taccari [Mon, 15 Oct 2018 15:31:53 +0000 (17:31 +0200)]
Gracefully handle subtleties of util_expand() of `~' and `~user'.
When `~' is expanded to an home directory without any user, g_get_home_dir()
function is used that on Unix systems first try to honor HOME and fall back to
the passwd file if not set.
On the other hand, `~user' is expanded always by checking the passwd
file. Adjust test_expand_tilde_user() accordingly.
Leonardo Taccari [Mon, 15 Oct 2018 15:29:13 +0000 (17:29 +0200)]
Document a subtlety of util_parse_expansion() behaviour.
Single ~ uses g_get_home_dir() that honor HOME environment variable.
However, ~user always consult the passwd file.
Leonardo Taccari [Mon, 15 Oct 2018 10:18:10 +0000 (12:18 +0200)]
Use webkit2-gtk-web-extension-4.0 for EXT{C,LD}FLAGS
webkitgtk provides a webkit2gtk-web-extension-4.0 .pc file for
webkitgtk web extensions, use it for the web extension.
Please note that ATM both `--cflags' and `--libs' webkit2gtk-4.0
and webkit2gtk-web-extension-4.0 returns the same values but if
they will diverge in the future the web extension will then use
the right `.pc'.
Leonardo Taccari [Mon, 15 Oct 2018 09:19:54 +0000 (11:19 +0200)]
Document autocmd support
Leonardo Taccari [Mon, 15 Oct 2018 01:29:01 +0000 (03:29 +0200)]
Document marks in the man page, from vimb-2.12
Leonardo Taccari [Mon, 15 Oct 2018 01:27:19 +0000 (03:27 +0200)]
Add support for marks, based on vimb-2.12
- Introduce a scroll_top field in State, similar to scroll_percent but in pixel
- Adjust the webextension to communicate and update scroll_top
- Implement normal_map(), mostly based on vimb-2.12
Daniel Carl [Thu, 11 Oct 2018 22:10:48 +0000 (00:10 +0200)]
Always use curly braces for if and else.
Leonardo Taccari [Thu, 11 Oct 2018 20:37:39 +0000 (22:37 +0200)]
Use stat(2) to retrieve the file permissions mode
Remove the mode arguments from util_file_prepend_line(),
util_file_pop_line() and util_file_set_content().
Both util_file_prepend_line() and util_file_pop_line() just calls
util_file_set_content() so stat(2) can be used there and if it
fails the 0600 is used as a fallback.
Thanks to @fanglingsu for reviews and suggestions!
Leonardo Taccari [Thu, 11 Oct 2018 20:55:52 +0000 (22:55 +0200)]
Fix a typo
Leonardo Taccari [Thu, 11 Oct 2018 12:53:13 +0000 (14:53 +0200)]
Fix a copypasto regarding user-scripts option
Daniel Carl [Wed, 10 Oct 2018 22:41:02 +0000 (00:41 +0200)]
Replace g_file_set_contents().
The g_file_set_contents performs atomic write to file by creating a
temporary file, writing to it and renaming it. But during the creation
of the temporary file, the mode is set hard to 0666. So our files will
silently always change their mode in case we processed their content.
This patch adds the util_file_set_content() function which follows the
same approach, but allows to set the mode that is used to create the
temporary file. So the file is created with the right permissions.
Leonardo Taccari [Wed, 10 Oct 2018 11:03:10 +0000 (13:03 +0200)]
Add a mode (in chmod(2) context) argument to util_get_filepath()
Add a mode argument to util_get_filepath() in order to adjust file
permissions when creating file. Adjust all util_get_filepath()
call and file permissions making them readable and writable only
by the user.
Daniel Carl [Wed, 10 Oct 2018 07:47:49 +0000 (09:47 +0200)]
Show warning if peer dbus connection does not provide credentials #438.
Daniel Carl [Tue, 9 Oct 2018 21:36:47 +0000 (23:36 +0200)]
Remove trialing tabs.
Daniel Carl [Mon, 8 Oct 2018 21:31:10 +0000 (23:31 +0200)]
Use glib example code for dbus auth observer #438.
Daniel Carl [Mon, 8 Oct 2018 21:07:18 +0000 (23:07 +0200)]
Setup dbus server before the webextension #438.
Not sure if this changes anything, but it's a good choice to setup the
server before telling webkit where to look for webextensions.
Daniel Carl [Mon, 8 Oct 2018 20:26:14 +0000 (22:26 +0200)]
Do not stale bug labeled issues.
Daniel Carl [Tue, 2 Oct 2018 20:54:13 +0000 (22:54 +0200)]
Add stale bot configuration.
Daniel Carl [Tue, 2 Oct 2018 20:53:21 +0000 (22:53 +0200)]
Move github stuff into .github directory.
Daniel Carl [Fri, 28 Sep 2018 21:50:44 +0000 (23:50 +0200)]
Remove also shared object on make clean.
Daniel Carl [Fri, 28 Sep 2018 21:48:51 +0000 (23:48 +0200)]
Replace tabs by spaces.
Allan Wind [Thu, 27 Sep 2018 07:57:23 +0000 (03:57 -0400)]
Clarify proxy configuration
Daniel Carl [Wed, 26 Sep 2018 21:59:15 +0000 (23:59 +0200)]
Hint about none common PREFIX on build stage.
Daniel Carl [Mon, 27 Aug 2018 21:05:53 +0000 (23:05 +0200)]
Check webextension at startup by default.
Also fail with error if webextension could not be read.
Daniel Carl [Sun, 26 Aug 2018 19:16:19 +0000 (21:16 +0200)]
Adapt the min webkit version in config.mk #513.
This patch fixes missed version from #415.
Daniel Carl [Wed, 8 Aug 2018 19:04:23 +0000 (21:04 +0200)]
Added missed description for yank
Daniel Carl [Mon, 6 Aug 2018 21:59:57 +0000 (23:59 +0200)]
Update hints also on scrolling within frames.
Daniel Carl [Mon, 6 Aug 2018 21:38:29 +0000 (23:38 +0200)]
Fix wrong hint label in case of scrolling.
Also moved style for hintcontainer from user style to hints.js because
there is no styling set at the moment the user should change.
Daniel Carl [Mon, 6 Aug 2018 20:46:36 +0000 (22:46 +0200)]
Added webkit setting for file uri handling.
Daniel Carl [Sat, 4 Aug 2018 21:00:58 +0000 (23:00 +0200)]
Removed possible wrong test case #507.
The links on exherbo are set to margin: -10em and padding: 10em so they
have indeed a big bounding box which is returned by
e.getBoundlingClientRect().
Daniel Carl [Fri, 3 Aug 2018 22:43:57 +0000 (00:43 +0200)]
Added manual test case for #507.
Daniel Carl [Fri, 3 Aug 2018 22:34:19 +0000 (00:34 +0200)]
Move manual hint tests into own directory.
Daniel Carl [Fri, 3 Aug 2018 21:58:20 +0000 (23:58 +0200)]
Fix wrong hint label position on xkcd.com.
On some pages which set the body to fixed position the hint labels where
placed far away from the hinted element. This patch fixes this issue by
setting the position of the label to fixed instead of absolute.
This fixes #506.
Daniel Carl [Tue, 31 Jul 2018 22:05:11 +0000 (00:05 +0200)]
Merge branch 'cdom' of https://github.com/hsoft/vimb
Virgil Dupras [Fri, 27 Jul 2018 15:41:45 +0000 (11:41 -0400)]
Convert focus_element_by_id.js to C
Daniel Carl [Mon, 30 Jul 2018 21:04:20 +0000 (23:04 +0200)]
Added tests for the uri handlers #357.
Daniel Carl [Sat, 14 Jul 2018 22:12:44 +0000 (00:12 +0200)]
Get page size from body as well as the documentElement #501.
Virgil Dupras [Wed, 18 Jul 2018 12:14:41 +0000 (08:14 -0400)]
Improve scripts change detection in Makefile
When changing a script in `src/scripts`, `make` would need to be invoked
twice for a proper build: once for `scripts.h` and once for the `.o`
files depending on it.
This commit fixes this by integrating `src/scripts/Makefile` into
`src/Makefile` to allow for proper dependency update detection.
Daniel Carl [Thu, 28 Jun 2018 09:53:29 +0000 (11:53 +0200)]
Test also with gcc.
Daniel Carl [Thu, 28 Jun 2018 09:52:43 +0000 (11:52 +0200)]
Put the linker flags after the source files.
Daniel Carl [Thu, 28 Jun 2018 06:20:43 +0000 (08:20 +0200)]
Added gtk+-3.0 to the dependencies.
Daniel Carl [Wed, 27 Jun 2018 22:43:25 +0000 (00:43 +0200)]
Show compile options only once in travis-ci.
Daniel Carl [Wed, 27 Jun 2018 22:37:42 +0000 (00:37 +0200)]
Use explicit rules to make test targets.
Daniel Carl [Wed, 27 Jun 2018 22:36:42 +0000 (00:36 +0200)]
Remove duplicate give compiler option -fPIC.
Daniel Carl [Wed, 27 Jun 2018 11:16:12 +0000 (13:16 +0200)]
Add build status icon.
Daniel Carl [Wed, 27 Jun 2018 09:53:00 +0000 (11:53 +0200)]
Use travis-ci for testing.
Daniel Carl [Wed, 20 Jun 2018 18:49:50 +0000 (20:49 +0200)]
Merge branch 'master' of https://github.com/cdlscpmv/vimb.
Konst Mayer [Tue, 19 Jun 2018 05:36:24 +0000 (12:36 +0700)]
Correct the man page
Related to the introduction of the new `vimbhint` attribute.
Patrick Steinhardt [Mon, 18 Jun 2018 06:01:12 +0000 (08:01 +0200)]
Makefile: add dependency on scripts.h to input.o
While "input.c" includes "scripts/scripts.h", which is generated
dynamically by the build system, the Makefile does not state a
dependency of "input.c" on "scripts/scripts.h". Add the dependency to
fix broken builds.
Daniel Carl [Sun, 17 Jun 2018 22:15:26 +0000 (00:15 +0200)]
Fixed -Werror=format-security issue.
This fixes #495.
Daniel Carl [Sat, 16 Jun 2018 20:47:57 +0000 (22:47 +0200)]
Released version 3.2.0.
Yutao Yuan [Sat, 16 Jun 2018 10:28:16 +0000 (18:28 +0800)]
Fix missing string.h include
Daniel Carl [Thu, 14 Jun 2018 21:42:52 +0000 (23:42 +0200)]
Add new setting show-titlebar to CHANGELOG.
Daniel Carl [Thu, 14 Jun 2018 21:16:16 +0000 (23:16 +0200)]
Make function static.
This is only use within main.c so we can make it static and leaf the vb_
prefix.
Daniel Carl [Thu, 14 Jun 2018 21:07:15 +0000 (23:07 +0200)]
Merge branch 'fix-url-detection' of https://github.com/GKFX/vimb.
Daniel Carl [Wed, 13 Jun 2018 22:55:45 +0000 (00:55 +0200)]
Added tests for shortcuts #357.
George Bateman [Wed, 13 Jun 2018 22:38:10 +0000 (23:38 +0100)]
Make URL detection more robust
Daniel Carl [Wed, 13 Jun 2018 22:29:24 +0000 (00:29 +0200)]
Do not damage utf8 string on escape.
This fixes #492.
Daniel Carl [Sat, 14 Apr 2018 19:03:08 +0000 (21:03 +0200)]
Added first test for the util functions #357.
Daniel Carl [Wed, 13 Jun 2018 20:29:44 +0000 (22:29 +0200)]
Fixed indentation.
George Bateman [Wed, 13 Jun 2018 09:40:49 +0000 (10:40 +0100)]
Document :set show-titlebar
George Bateman [Tue, 12 Jun 2018 14:26:16 +0000 (15:26 +0100)]
Detect localhost and IPv6 as valid URLs. Fixes #478.
George Bateman [Tue, 12 Jun 2018 11:22:48 +0000 (12:22 +0100)]
Allow user to hide and show the titlebar on demand. Fixes #439.
Daniel Carl [Mon, 11 Jun 2018 21:51:28 +0000 (23:51 +0200)]
Fix wrong order of branch names in changelog.
Daniel Carl [Mon, 11 Jun 2018 21:49:33 +0000 (23:49 +0200)]
Update changelog.
Daniel Carl [Mon, 11 Jun 2018 21:22:44 +0000 (23:22 +0200)]
Allow to react on permission-requests.
George Bateman [Mon, 11 Jun 2018 13:53:11 +0000 (14:53 +0100)]
Clarify :set usage in man page
Daniel Carl [Sat, 2 Jun 2018 20:41:41 +0000 (22:41 +0200)]
Remove not really needed variable.
Daniel Carl [Sat, 2 Jun 2018 20:35:16 +0000 (22:35 +0200)]
Fixed possible memory leak in case of errors.
Daniel Carl [Sat, 2 Jun 2018 20:11:09 +0000 (22:11 +0200)]
Reuse success flag.
Daniel Carl [Sat, 2 Jun 2018 19:47:46 +0000 (21:47 +0200)]
Fixed some code style issues.
Daniel Carl [Sat, 2 Jun 2018 19:37:33 +0000 (21:37 +0200)]
Merge branch 'master' of https://github.com/svensp/vimb
Sven Speckmaier [Fri, 1 Jun 2018 19:45:54 +0000 (21:45 +0200)]
moved id to its own variable to adher to IPO model