Daniel Carl [Mon, 12 Oct 2020 21:28:47 +0000 (23:28 +0200)]
Move some file to $XDG_DATA_HOME #582.
Do not store all files in XDG_CONFIG_HOME.
Daniel Carl [Mon, 12 Oct 2020 19:53:00 +0000 (21:53 +0200)]
Moved some default settings into config.def.h.
Daniel Carl [Sun, 7 Jun 2020 19:38:17 +0000 (21:38 +0200)]
Update CHANGELOG.
Daniel Carl [Sun, 7 Jun 2020 19:26:06 +0000 (21:26 +0200)]
Merge branch 'master' of https://github.com/Unixsys/vimb.
Daniel Carl [Sun, 7 Jun 2020 19:20:52 +0000 (21:20 +0200)]
Merge branch 'fix-i-crash' of https://github.com/mawww/vimb
Maxime Coste [Fri, 5 Jun 2020 03:02:03 +0000 (13:02 +1000)]
Hinting over an element with no url or source is not an error
focusHint returning "OVER:A:" because the hint element did not have
a src or href was treated as an error, and led to the hint keystroke
also being passed down to the page.
Maxime Coste [Fri, 5 Jun 2020 03:00:52 +0000 (13:00 +1000)]
Fix crash in normal_focus_last_active
g_variant_get was missing a parameter for the string element of
the variant tuple, pass NULL there as we dont care about that value.
Daniel Carl [Thu, 28 May 2020 21:19:45 +0000 (23:19 +0200)]
Fixed typo in setting #617.
Unixsys [Tue, 26 May 2020 21:26:43 +0000 (16:26 -0500)]
Update README.md with descriptive language
Updated vimb's README.md with more descriptive language regarding changing files ```config.mk``` and ```config.h```.
Daniel Carl [Wed, 15 Apr 2020 21:00:59 +0000 (23:00 +0200)]
Allow to push link url to queue by <S-LeftMouse> #610.
Daniel Carl [Sat, 4 Apr 2020 21:53:37 +0000 (23:53 +0200)]
Do not auto close stale issues.
Daniel Carl [Sat, 29 Feb 2020 00:03:31 +0000 (01:03 +0100)]
Allow to set scroll-multiplier #602.
Daniel Carl [Fri, 28 Feb 2020 22:48:26 +0000 (23:48 +0100)]
Allow to focus last input field by 'i' #605.
Daniel Carl [Fri, 21 Feb 2020 22:30:54 +0000 (23:30 +0100)]
Use g_string_erase instead of memmove.
The memmove moved queued keys toward the beginning and left clutter and
unwanted stuff at the end which might cause issues in future. So now
g_string_erase is used which strips chars from the beginning of the
string. This is what the memmove() intended but did not make obvious.
Daniel Carl [Fri, 21 Feb 2020 22:26:42 +0000 (23:26 +0100)]
Do not run queued events if the last key was not typed.
Fixes #600.
Daniel Carl [Fri, 14 Feb 2020 22:17:20 +0000 (23:17 +0100)]
Use old C89 comments.
Raphael Gosselin [Wed, 12 Feb 2020 23:01:38 +0000 (18:01 -0500)]
fix conditional xembed compilation
Daniel Carl [Fri, 10 Jan 2020 23:39:05 +0000 (00:39 +0100)]
Give the customers LDFLAGS to webextension too.
SFort [Thu, 9 Jan 2020 23:21:51 +0000 (00:21 +0100)]
update arch linux packages
Daniel Carl [Fri, 10 Jan 2020 22:18:42 +0000 (23:18 +0100)]
Do not require trailing newline in config file #586.
Daniel Carl [Thu, 9 Jan 2020 23:27:54 +0000 (00:27 +0100)]
Update travis-ci status badge to new url.
Daniel Carl [Thu, 9 Jan 2020 23:20:37 +0000 (00:20 +0100)]
Give current selection as env on :shellcmd #592.
Give current selected text as environment variable $VIMB_SELECTION to
scripts called by `:shellcmd`.
Daniel Carl [Fri, 3 Jan 2020 23:36:31 +0000 (00:36 +0100)]
Remove expansion of '%' #584.
The % is often used in urls and in case of the x-hint-command those are
feed to :shellcmd and will be replaced by current URL. This made the
x-hint-command unusable on some search engines.
The expansion of % to the current URL also required to give the current
browser state to the expansion logic and to feed it to all callers of
this too. This bloated the code.
This patch removes the % expansion which was a redundant alternative to
$VIMB_URI.
Daniel Carl [Thu, 2 Jan 2020 22:17:49 +0000 (23:17 +0100)]
Released version 3.6.0.
Daniel Carl [Wed, 18 Dec 2019 22:29:29 +0000 (23:29 +0100)]
Added --cmd,-C option to give ex commands on startup #342.
Daniel Carl [Sat, 14 Dec 2019 23:40:29 +0000 (00:40 +0100)]
Add new dark-mode setting to CHANGELOG.
Alva [Wed, 11 Dec 2019 18:45:01 +0000 (19:45 +0100)]
Add documentation for dark-mode option
Alva [Wed, 11 Dec 2019 18:42:30 +0000 (19:42 +0100)]
Add dark-mode option
This lets websites use the `prefers-color-scheme` media query to adapt
styles according to user preference.
It also affects internal pages like about:blank.
Daniel Carl [Mon, 18 Nov 2019 22:46:54 +0000 (23:46 +0100)]
Update the changelog.
Daniel Carl [Mon, 18 Nov 2019 22:33:08 +0000 (23:33 +0100)]
Fix none working geolocation=always #580.
The 'permission-request' return value is only used to identify if the
callback made a decision or not.
Daniel Carl [Mon, 18 Nov 2019 22:23:56 +0000 (23:23 +0100)]
Merge branch 'geolocation' of https://github.com/fjallarefur/vimb.
Daniel Carl [Mon, 18 Nov 2019 22:20:00 +0000 (23:20 +0100)]
Allow to disable hint matching base on element text #581.
Alva [Mon, 11 Nov 2019 18:26:02 +0000 (19:26 +0100)]
Add documentation for 'geolocation' setting
Alva [Mon, 11 Nov 2019 15:07:51 +0000 (16:07 +0100)]
Add geolocation setting
This setting lets users automatically reject/allow geolocation access.
The default is to ask every time, like before.
Daniel Carl [Mon, 18 Nov 2019 20:18:24 +0000 (21:18 +0100)]
Merge branch 'pks/load-starting' of https://github.com/pks-t/vimb.
Patrick Steinhardt [Sat, 14 Sep 2019 09:46:35 +0000 (11:46 +0200)]
autocmd: implement new LoadStarting event
The first autocommand event that is being triggered when loading a
website is the "LoadStarted" event. LoadStarted gets triggered when the
web view has started loading of the page, notably after the initial
request has been sent. Thus, this event comes too late to change
settings that would modify the initial request, like e.g. the user
agent.
Implement a new event LoadStarting that triggers immediately before
performing the initial load and thus before LoadStarted. As WebKit does
not provide any signal for this, we have to manually trigger this event
when executing any load or navigation actions. The best place to
piggy-back on WebKit itself is in fact `decide_navigation_action`, which
will get executed on clicks, history navigation and `load_uri`. Like
this, there is only a single location that needs to trigger the new
event.
This change enables one to modify configuration like the user agent for
certain websites, which was not possible with "LoadStarted".
Daniel Carl [Thu, 10 Oct 2019 00:05:04 +0000 (02:05 +0200)]
Simplified the man page a little.
Daniel Carl [Wed, 9 Oct 2019 21:11:19 +0000 (23:11 +0200)]
Put :cleardata dataType before timespan.
Daniel Carl [Wed, 9 Oct 2019 00:15:57 +0000 (02:15 +0200)]
Added :clearcache by :cleardata command.
Allow to clear different types of website data base on the last update
time.
Michael Vetter [Fri, 23 Aug 2019 05:38:19 +0000 (07:38 +0200)]
Fix spelling mistake 'reed' -> 'read'
Daniel Carl [Thu, 1 Aug 2019 19:40:03 +0000 (21:40 +0200)]
Fixed typo in travis dist setting.
Daniel Carl [Wed, 31 Jul 2019 22:14:26 +0000 (00:14 +0200)]
Use bionic for testing.
Daniel Carl [Mon, 29 Jul 2019 20:03:20 +0000 (22:03 +0200)]
Released version 3.5.0.
Docbroke [Thu, 20 Jun 2019 06:45:37 +0000 (12:15 +0530)]
Spelling correction
Daniel Carl [Fri, 14 Jun 2019 23:28:48 +0000 (01:28 +0200)]
Use ephemeral webview if incognito option is used #562
Also removed obsolete 'private-browsing' setting.
Daniel Carl [Fri, 14 Jun 2019 22:32:46 +0000 (00:32 +0200)]
Show error if printing fails #564.
Daniel Carl [Thu, 13 Jun 2019 23:09:20 +0000 (01:09 +0200)]
Fixed memory allocation errors in incognito mode.
Fix crash with message "free(): invalid next size (fast)" when a new
instance was spawned.
Daniel Carl [Sat, 8 Jun 2019 21:45:21 +0000 (23:45 +0200)]
Give --incognito option also to new spawned instances #562.
Daniel Carl [Fri, 7 Jun 2019 22:50:22 +0000 (00:50 +0200)]
Added --incognito option to man page #562.
Daniel Carl [Fri, 7 Jun 2019 22:34:14 +0000 (00:34 +0200)]
Rename option ephemeral to incognito #562.
Daniel Carl [Mon, 3 Jun 2019 23:43:35 +0000 (01:43 +0200)]
Added ephemeral mode #562.
If vimb is started with --ephemeral option no files are created by
default and no persistent cookie manager is used.
Daniel Carl [Mon, 3 Jun 2019 21:18:04 +0000 (23:18 +0200)]
Check if file exists during runtime #562.
Do not consider file to be existent which was on startup. This allows
also to benenfit from files created by other vimb instances spawned
later.
Daniel Carl [Thu, 23 May 2019 23:36:30 +0000 (01:36 +0200)]
Add file storage to allow to collect ephemeral data #562.
Konst Mayer [Thu, 23 May 2019 02:52:18 +0000 (09:52 +0700)]
Fix a typo
Daniel Carl [Mon, 20 May 2019 21:53:59 +0000 (23:53 +0200)]
Avoid double free in on_webview_notify_uri #561.
Thank to Valérian Rousset for pointing this out. Also change the
until_sanitize_uri function to return given uri in case an error occurred
during sanitization process to reduce cases where this function returns
NULL.
tharvik [Mon, 20 May 2019 09:23:29 +0000 (11:23 +0200)]
Fix NULL ret of util_sanitize_uri
Daniel Carl [Sat, 18 May 2019 22:29:23 +0000 (00:29 +0200)]
Add external download command #543 #348.
Added 'download-command' setting to configure a command/script that
handles the download of an uri. With the new setting flag
'download-use-external' can be decided if the external download command
is used to download an uri or the built in downloader.
Daniel Carl [Wed, 24 Apr 2019 14:50:05 +0000 (16:50 +0200)]
Fix segfault on open in new tabe from context menu #556.
Daniel Carl [Sat, 30 Mar 2019 22:19:55 +0000 (23:19 +0100)]
Change hover link url on status bar via direct function.
Do not emit fake signal to show the current hovered url from hinting
shown on the left of the statusbar. Instead call a function which writes
the url to the statusbar.
Daniel Carl [Sat, 30 Mar 2019 01:18:51 +0000 (02:18 +0100)]
Show uri of hinted element in statusbar.
Daniel Carl [Fri, 29 Mar 2019 23:08:40 +0000 (00:08 +0100)]
Do the -webkit-transform:translate in js.
The -webkit-transform:translate(-4px, -4px) was added to move the hint
labels a little bit from the hinted links so that they do not cover to
much of the link text. But in this way the labels where sometime only
partial visible if the hinted element is near to the top or left.
This patch removes the css translate and calculates the offset direct
in the hints.js. So we can now ensure that the hint labels are not
placed behind the top or left of the viewport.
Docbroke [Sun, 24 Mar 2019 08:30:04 +0000 (14:00 +0530)]
added "bookmark" to the FILES list
Patrick Steinhardt [Wed, 27 Mar 2019 06:47:30 +0000 (07:47 +0100)]
Makefile: fix compilation if source is not in a git repo
To make the version available, the Makefile creates a "version.h"
header. This file will either contain the output of `git describe
--tags` or a fallback value that is declared inside the Makefile
itself.
This logic is broken as there is a hard dependcy on the
".git/index" file. The intent here is to regenerate the header
file whenever there is any change to the git repo itself. But in
case where vimb is for example being compiled from a tarball,
there will be no git index at all, leading to an error "No rule
to make target '.git/index'".
Fix the issue by using `$(wildcard .git/index)`. In case the file
exists, we will pick it up as a dependency of "version.h" and
thus recompile it whenever the git repo changes. Otherwise, the
wildcard won't match and we will fall back to just using the
declared value of the "version" variable.
Daniel Carl [Tue, 26 Mar 2019 22:18:28 +0000 (23:18 +0100)]
Released version 3.4.0.
Daniel Carl [Sun, 24 Mar 2019 23:07:52 +0000 (00:07 +0100)]
Use webkit_uri_for_display().
Use this function for shown url for IDN homograph mitigation.
Daniel Carl [Sun, 24 Mar 2019 00:00:53 +0000 (01:00 +0100)]
Merge branch 'disallow-window-open'
Daniel Carl [Sat, 23 Mar 2019 23:53:47 +0000 (00:53 +0100)]
Prevent opening links into new window #544.
Added setting 'prevent-newwindow' to enforce opening links into same
window even if they are crafted by `target="_blank"` or using
`window.open()`.
This option does not change the behaviour for links fired by hinting.
Daniel Carl [Wed, 13 Mar 2019 00:47:45 +0000 (01:47 +0100)]
Added test case for disabled opening of new window #544.
Daniel Carl [Thu, 14 Mar 2019 23:38:20 +0000 (00:38 +0100)]
Move functions from events.c to map.c #546.
Daniel Carl [Thu, 14 Mar 2019 23:30:51 +0000 (00:30 +0100)]
Use GSList to queue events #546.
Daniel Carl [Thu, 14 Mar 2019 22:59:31 +0000 (23:59 +0100)]
Use the right gdk function to duplicate the key events #546.
This fixes the warning "Event with type 8 not holding a GdkDevice. It
is most likely synthesized outside Gdk/GTK+".
Daniel Carl [Thu, 14 Mar 2019 22:34:28 +0000 (23:34 +0100)]
Use glib memory functions to simplify the code #546.
Thomas Legris [Thu, 14 Mar 2019 21:44:15 +0000 (21:44 +0000)]
Allow incomplete imap sequence to timeout
Daniel Carl [Tue, 12 Mar 2019 23:53:53 +0000 (00:53 +0100)]
Split policy decision into parts.
Also make always a decision.
Daniel Carl [Tue, 12 Mar 2019 16:15:07 +0000 (17:15 +0100)]
Allow to not maximize window via option --no-maximize #483.
Bernhard M. Wiedemann [Tue, 5 Mar 2019 09:31:42 +0000 (10:31 +0100)]
Use man page date instead of build date
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good.
Daniel Carl [Wed, 13 Feb 2019 21:55:43 +0000 (22:55 +0100)]
Avoid double client destroy in case of webview close #537.
Michael Vetter [Tue, 12 Feb 2019 16:34:14 +0000 (17:34 +0100)]
Add openSUSE package to README
Daniel Carl [Fri, 8 Feb 2019 09:46:32 +0000 (10:46 +0100)]
Added release shield
Daniel Carl [Mon, 4 Feb 2019 13:18:17 +0000 (14:18 +0100)]
Added license badge
Leonid Bobrov [Sat, 26 Jan 2019 11:05:05 +0000 (13:05 +0200)]
Define feature macros only on Linux
Daniel Carl [Mon, 21 Jan 2019 22:16:14 +0000 (23:16 +0100)]
Replace deprecated gtk_css_provider_get_default.
Daniel Carl [Thu, 17 Jan 2019 23:02:14 +0000 (00:02 +0100)]
Allow to show video in fullscreen if requested.
If JavaScript calls element.webkitRequestFullScreen webkit switches vimb
into full screen mode. But the statusbar and the input box where still
shown. So now vimb hides the statusbar and the input box to allow videos
to be show on the whole screen.
Daniel Carl [Thu, 10 Jan 2019 09:39:24 +0000 (10:39 +0100)]
Create version-h also on single make test.
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.