surf.git
7 years agoAdd a keybinding to show current TLS certificate
Quentin Rameau [Sat, 29 Apr 2017 12:56:02 +0000 (14:56 +0200)]
Add a keybinding to show current TLS certificate

7 years agoDisplay an error message and certificate on tls error
Quentin Rameau [Sat, 29 Apr 2017 12:49:04 +0000 (14:49 +0200)]
Display an error message and certificate on tls error

7 years agoArrange Makefile
Quentin Rameau [Sat, 29 Apr 2017 13:21:49 +0000 (15:21 +0200)]
Arrange Makefile

Let the user specify his own C and LD FLAGS.
Remove unuseful and non portable CFLAGS like pendantic and Wall.

7 years agoFree temporary certificate in setcert
Quentin Rameau [Sat, 29 Apr 2017 12:34:02 +0000 (14:34 +0200)]
Free temporary certificate in setcert

7 years agoDo not build SiteSpecific file when regex is invalid
Quentin Rameau [Fri, 28 Apr 2017 11:09:39 +0000 (13:09 +0200)]
Do not build SiteSpecific file when regex is invalid

7 years agoAdd support for using custom certificates per url
Quentin Rameau [Fri, 28 Apr 2017 10:58:36 +0000 (12:58 +0200)]
Add support for using custom certificates per url

7 years agoAvoid using global name stylefile in setstyle()
Quentin Rameau [Thu, 27 Apr 2017 13:41:16 +0000 (15:41 +0200)]
Avoid using global name stylefile in setstyle()

7 years agoChange site styles structure for a more generic one
Quentin Rameau [Thu, 27 Apr 2017 13:01:54 +0000 (15:01 +0200)]
Change site styles structure for a more generic one

7 years agoFix 27cec48 Add a flag/keybinding for strict TLS
Quentin Rameau [Sun, 23 Apr 2017 16:18:23 +0000 (18:18 +0200)]
Fix 27cec48 Add a flag/keybinding for strict TLS

Forgot to add changes in main(), usage() and newwindow() too.

7 years agoFix a981959 Move -t stylefile flag to -C stylefile
Quentin Rameau [Sun, 23 Apr 2017 16:11:54 +0000 (18:11 +0200)]
Fix a981959 Move -t stylefile flag to -C stylefile

Forgot to modify usage() and newwindow() too.

7 years agoFix possible oob access of cmd in newwindow()
Quentin Rameau [Sun, 23 Apr 2017 16:25:40 +0000 (18:25 +0200)]
Fix possible oob access of cmd in newwindow()

Thanks to tarug0 for spotting this!

7 years agoBump year in program
Quentin Rameau [Wed, 19 Apr 2017 18:56:01 +0000 (20:56 +0200)]
Bump year in program

7 years agoAdd a flag and toggle keybinding for strict TLS
Quentin Rameau [Wed, 19 Apr 2017 16:35:16 +0000 (18:35 +0200)]
Add a flag and toggle keybinding for strict TLS

7 years agoMove -t stylefile flag to -C stylefile
Quentin Rameau [Wed, 19 Apr 2017 16:14:56 +0000 (18:14 +0200)]
Move -t stylefile flag to -C stylefile

7 years agoRename SSL instances to TLS
Quentin Rameau [Wed, 19 Apr 2017 15:45:20 +0000 (17:45 +0200)]
Rename SSL instances to TLS

7 years agoSet strict ssl by default and handle insecure content
Quentin Rameau [Fri, 8 Jul 2016 16:27:07 +0000 (18:27 +0200)]
Set strict ssl by default and handle insecure content

Non-https content in https pages is now handled separately from https
connection establishment.

7 years agoAdd a configure option for default window size
Quentin Rameau [Wed, 19 Apr 2017 14:05:39 +0000 (16:05 +0200)]
Add a configure option for default window size

7 years agoBump version to 2.0
Quentin Rameau [Tue, 28 Mar 2017 16:17:45 +0000 (18:17 +0200)]
Bump version to 2.0

We're using the new scheme: 2.x is for webkit2

7 years agoAdd contributors to the LICENSE
Quentin Rameau [Tue, 28 Mar 2017 16:13:50 +0000 (18:13 +0200)]
Add contributors to the LICENSE

7 years agoInstall Atoms before initializing gtk
Quentin Rameau [Sun, 12 Feb 2017 17:50:31 +0000 (18:50 +0100)]
Install Atoms before initializing gtk

There a race condition in gtkplug/socket which is raised when setting
Atoms.
Use this workaround until
https://bugzilla.gnome.org/show_bug.cgi?id=778680 is fixed.

7 years agoFix spelling of otherwise in surf.1
Michael Stevens [Tue, 8 Dec 2015 11:12:14 +0000 (11:12 +0000)]
Fix spelling of otherwise in surf.1

Add more spelling to surf.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
7 years agoFix font-size setting parameter value type in newview
Quentin Rameau [Mon, 6 Mar 2017 10:00:04 +0000 (11:00 +0100)]
Fix font-size setting parameter value type in newview

8 years agoAdd support for loading Webkit extensions
Quentin Rameau [Mon, 23 Nov 2015 21:12:00 +0000 (22:12 +0100)]
Add support for loading Webkit extensions

8 years agoReload on SIGHUP
Charles Lehner [Sat, 9 Jan 2016 19:18:53 +0000 (14:18 -0500)]
Reload on SIGHUP

ratiueratuie rstiure tiurest aruite rautie rautier tiue rtaruit ratiuera
This patch makes surf reload its pages when it receives a SIGHUP signal.
This makes it easier for shell scripts to trigger surf to reload.

I'm aware of using xdotool to trigger ctrl+r keypresses for reloading
but I wasn't able to get that to work in a general way. [1]

I'm sending this here in case surf maintainers and users would like to
include this in core - if not I will submit it to the wiki.

Regards,
Charles

[1] http://surf.suckless.org/files/autorefresh

Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoAdd a few configuration options
Quentin Rameau [Tue, 5 Jul 2016 15:26:54 +0000 (17:26 +0200)]
Add a few configuration options

“enable-accelerated-2d-canvas”
“media-playback-requires-user-gesture”
“enable-site-specific-quirks”

Lookup those at
https://webkitgtk.org/reference/webkit2gtk/stable/WebKitSettings.html

8 years agoFix GdkDisplay assignment in setup()
Quentin Rameau [Tue, 5 Jul 2016 11:35:44 +0000 (13:35 +0200)]
Fix GdkDisplay assignment in setup()

Init GTK before trying to get the default display.

8 years agoGet rid of getkbdevice
Quentin Rameau [Tue, 5 Jul 2016 10:33:23 +0000 (12:33 +0200)]
Get rid of getkbdevice

The GTK guys nicely took in account our request and pushed in a
convenience function to get default keyboard device.

8 years agoFixing the last patch to the surf style.
Christoph Lohmann [Fri, 3 Jun 2016 13:14:53 +0000 (15:14 +0200)]
Fixing the last patch to the surf style.

8 years agoCheck $HOME and home dir of $USER before getpwuid()->pw_dir
Dmitry Bogatov [Sun, 29 May 2016 09:56:51 +0000 (11:56 +0200)]
Check $HOME and home dir of $USER before getpwuid()->pw_dir

getpwnam(3) recommends to use $HOME instead of getpwuid()->pw_dir,
as it allows users to point programs to a different path.

Using getpwuid() also breaks namespaces-related use cases,
like `unshare -r`.

Patch was submitted by Dmitry Bogatov on the Debian bug tracker:
https://bugs.debian.org/825397

Signed-off-by: Christoph Lohmann <20h@r-36.net>
8 years agoFix url parsing in load()
Quentin Rameau [Sat, 16 Apr 2016 04:19:13 +0000 (06:19 +0200)]
Fix url parsing in load()

8 years agoApply domain parameters each time url is changed
Quentin Rameau [Thu, 3 Mar 2016 15:51:24 +0000 (16:51 +0100)]
Apply domain parameters each time url is changed

Urls are only changed at load (initial requested one), or while
redirected. When the page is committed, url is already final.

8 years agoFix inspector toggling
Quentin Rameau [Sat, 9 Jan 2016 12:42:50 +0000 (13:42 +0100)]
Fix inspector toggling

Always get the inspector object, and let the user eventually close it
even if it's disabled for the current page.

8 years agoRectify how parameters are handled in setparameter()
Quentin Rameau [Sat, 9 Jan 2016 11:57:39 +0000 (12:57 +0100)]
Rectify how parameters are handled in setparameter()

Access parameters through given Arg parameter instead of accessing
global parameters.

8 years agoFix parameter initialization and assignment
Quentin Rameau [Sun, 29 Nov 2015 23:39:52 +0000 (00:39 +0100)]
Fix parameter initialization and assignment

8 years agoAdapting the whole surf structure to new settings
Quentin Rameau [Sun, 29 Nov 2015 16:42:42 +0000 (17:42 +0100)]
Adapting the whole surf structure to new settings

8 years agoAdapt default parameters to new config style
Quentin Rameau [Sun, 29 Nov 2015 16:22:15 +0000 (17:22 +0100)]
Adapt default parameters to new config style

8 years agoIntroduce new data structure for handling settings
Quentin Rameau [Sun, 29 Nov 2015 16:16:48 +0000 (17:16 +0100)]
Introduce new data structure for handling settings

8 years agoDisable globbing in curl command
Dmitrij D. Czarkoff [Sun, 6 Mar 2016 00:14:52 +0000 (01:14 +0100)]
Disable globbing in curl command

Curl is invoked for downloading particular files.  Without "-g" flag it would
apply globbing rules to URLs, which may end badly in case URL is not properly
quoted.

8 years agoGet rid of JavaScript for scrolling in views
Quentin Rameau [Wed, 2 Mar 2016 13:29:21 +0000 (14:29 +0100)]
Get rid of JavaScript for scrolling in views

This is still a hack, until WebKitGTK gives us a more practical and
stable way to do that. Manipulating directly the DOM inside a
webextension is a pain and only usable with unstable API atm.

8 years agoModify linking parameter
Quentin Rameau [Sun, 29 Nov 2015 23:45:18 +0000 (00:45 +0100)]
Modify linking parameter

8 years agoImport the arg.h from st which fixed the oob bug.
Christoph Lohmann [Mon, 22 Feb 2016 05:47:46 +0000 (06:47 +0100)]
Import the arg.h from st which fixed the oob bug.

8 years agoFix title handling
Quentin Rameau [Tue, 1 Dec 2015 11:31:42 +0000 (12:31 +0100)]
Fix title handling

Don't forget to always set the title to the current uri, this way it's
up to date when there is no title on the page (ie for local file
exploration).
Thanks to pickfire for reporting the issue.

8 years agoFix clickexternplayer(), no need to test the target again
Quentin Rameau [Tue, 24 Nov 2015 22:18:06 +0000 (23:18 +0100)]
Fix clickexternplayer(), no need to test the target again

9 years agoFix user agent command-line parameter
Quentin Rameau [Mon, 23 Nov 2015 21:13:32 +0000 (22:13 +0100)]
Fix user agent command-line parameter

Thanks to yui for seeing that!

9 years agoAdd webkit language settings
Quentin Rameau [Sun, 22 Nov 2015 18:13:48 +0000 (19:13 +0100)]
Add webkit language settings

You can now set your prefered website languages in order.
It is also possible to enable spell checking in the same way.

9 years agoFix key handling
Quentin Rameau [Sun, 22 Nov 2015 16:44:40 +0000 (17:44 +0100)]
Fix key handling

I had forgotten to compare configured key values against lowered pressed
key values.
Integrated keypress() into winevent().

9 years agoFix target uri handling when leaving window
Quentin Rameau [Sun, 22 Nov 2015 15:45:22 +0000 (16:45 +0100)]
Fix target uri handling when leaving window

Introduce a new string pointer overtitle in Client to be able to keep
the targeturi intact while modifying the former for overriding or not
the window title.
Connect to GDK_ENTER_NOTIFY to restore overtitle when refocusing on
window.

9 years agoAdapt togglestyle()
Quentin Rameau [Sun, 22 Nov 2015 14:31:15 +0000 (15:31 +0100)]
Adapt togglestyle()

We can't apply an empty stylesheet anymore, instead remove any previous
stylesheet.

9 years agoModify decideresource() and favicon handling
Quentin Rameau [Sun, 22 Nov 2015 14:19:10 +0000 (15:19 +0100)]
Modify decideresource() and favicon handling

Return as soon as the request has been processed.
No need to modify the favicon uri, just ignore it.

9 years agoStyle change in newview(), sort signals order
Quentin Rameau [Sun, 22 Nov 2015 12:51:05 +0000 (13:51 +0100)]
Style change in newview(), sort signals order

9 years agoFix error handling in spawn()
Quentin Rameau [Sun, 22 Nov 2015 12:44:31 +0000 (13:44 +0100)]
Fix error handling in spawn()

Be more specific about process name and exit with an error.

9 years agoModify default handling of cookiepolicy functions
Quentin Rameau [Sun, 22 Nov 2015 12:33:28 +0000 (13:33 +0100)]
Modify default handling of cookiepolicy functions

It's more obvious this way that the default is to always accept cookies
and not the other way around.

9 years agoSimplify handling of c->title
Quentin Rameau [Sun, 22 Nov 2015 12:24:24 +0000 (13:24 +0100)]
Simplify handling of c->title

9 years agoFix pasteuri()
Quentin Rameau [Sun, 22 Nov 2015 12:15:39 +0000 (13:15 +0100)]
Fix pasteuri()

The uri check had been inverted.

9 years agoStyle fix in sigchld()
Quentin Rameau [Sun, 22 Nov 2015 11:22:23 +0000 (12:22 +0100)]
Style fix in sigchld()

9 years agoReplace use of EXIT_* constants to 0 and 1
Quentin Rameau [Sun, 22 Nov 2015 11:17:05 +0000 (12:17 +0100)]
Replace use of EXIT_* constants to 0 and 1

9 years agoFix WM_CLASS and WM_WINDOW_ROLE properties
Quentin Rameau [Sun, 22 Nov 2015 10:53:19 +0000 (11:53 +0100)]
Fix WM_CLASS and WM_WINDOW_ROLE properties

Instead of forcing class and instance names, which is what GTK does by
default anyway, allow the user to set the instance name, but keep the
general class as “Surf”.
Is we won't support a “-name” parameter and don't implement a parsing of
RESOURCE_NAME env variable, let's fallback on the third behaviour, use
the name of the calling executable.
That would let the user do things like 'ln -s ./surf ./surf-other;
./surf-other' and set different parameters for the two instances (in dwm
for example).
Try to generate a unique WM_WINDOW_ROLE (within the surf process)
composed of “Surf” and the view ID.

9 years agoRemove window hints settings
Quentin Rameau [Sun, 22 Nov 2015 02:00:03 +0000 (03:00 +0100)]
Remove window hints settings

Setting minimum size to 1x1 is not necessary as this is the default.

9 years agoStyle indentation fix
Quentin Rameau [Sun, 22 Nov 2015 01:25:07 +0000 (02:25 +0100)]
Style indentation fix

9 years agoContinue making chars const
Quentin Rameau [Sun, 22 Nov 2015 01:22:38 +0000 (02:22 +0100)]
Continue making chars const

9 years agoCorrect and simplify buttonreleased() gdk event
Quentin Rameau [Sun, 22 Nov 2015 01:10:18 +0000 (02:10 +0100)]
Correct and simplify buttonreleased() gdk event

The passed event is a GdkEvent (or GdkEventButton), but not a
GdkEventKey.
Access the struct directly.

9 years agoUn(g)boolify to separate GTK dependant code from the rest
Quentin Rameau [Sun, 22 Nov 2015 01:03:26 +0000 (02:03 +0100)]
Un(g)boolify to separate GTK dependant code from the rest

9 years agoUse char instead of gchar and make them const when possible
Quentin Rameau [Sun, 22 Nov 2015 00:52:13 +0000 (01:52 +0100)]
Use char instead of gchar and make them const when possible

9 years agoStyle update for indentation
Quentin Rameau [Sun, 22 Nov 2015 00:42:34 +0000 (01:42 +0100)]
Style update for indentation

9 years agoAdd mouse function to play medias in external player
Quentin Rameau [Sat, 21 Nov 2015 18:53:29 +0000 (19:53 +0100)]
Add mouse function to play medias in external player

Control + left click launches mpv with the target media url.

9 years agoUpdate credits
Quentin Rameau [Sat, 21 Nov 2015 18:24:19 +0000 (19:24 +0100)]
Update credits

9 years agoStyle change in includes order
Quentin Rameau [Sat, 21 Nov 2015 18:22:11 +0000 (19:22 +0100)]
Style change in includes order

9 years agoStyle change in functions ordering
Quentin Rameau [Sat, 21 Nov 2015 18:14:08 +0000 (19:14 +0100)]
Style change in functions ordering

Try to group and order functions in a logical manner.
Same thing for config keybindings.

9 years agoCleanup remaining unused variables and copystr()
Quentin Rameau [Fri, 20 Nov 2015 16:42:25 +0000 (17:42 +0100)]
Cleanup remaining unused variables and copystr()

9 years agoAdapt newwindow()
Quentin Rameau [Fri, 20 Nov 2015 16:39:45 +0000 (17:39 +0100)]
Adapt newwindow()

Reorder cmdline options alphabetically and try to keep settings as they
have been toggled in this surf client.

9 years agoAdapt user agent handling
Quentin Rameau [Fri, 20 Nov 2015 16:12:00 +0000 (17:12 +0100)]
Adapt user agent handling

Now we can only append Surf version to the default WebKit user agent
instead of setting the whole string (while this remains possible to do).

9 years agoAdapt updatetitle()
Quentin Rameau [Fri, 20 Nov 2015 15:59:15 +0000 (16:59 +0100)]
Adapt updatetitle()

Now always show loading progress, still print mouse over link uri before
page uri. Process simplyfied because we use const strings.

9 years agoAdapt toggle statistics
Quentin Rameau [Fri, 20 Nov 2015 15:53:52 +0000 (16:53 +0100)]
Adapt toggle statistics

Rename *togglestat to plural *togglestats, add frame flatenning
indicator, resize array in consequence.
Use a static index instead of a dynamic one as we always use all values
anyway.

9 years agoAdapt page statistics
Quentin Rameau [Fri, 20 Nov 2015 15:48:18 +0000 (16:48 +0100)]
Adapt page statistics

Rename *pagestat to plural *pagestats, and resize array to reflect
missing proxy parameter.

9 years agoAdapt loaduri()
Quentin Rameau [Fri, 20 Nov 2015 15:39:53 +0000 (16:39 +0100)]
Adapt loaduri()

Better handling of different URIs. Filter out “about:” scheme, dont
touch URI if it contains a complete scheme (we assume "://", denotes
one), else test if given path is an actual reachable file on the
filesystem, else prepend arbitrary http:// scheme.

9 years agoAdapt config MACROs SETPROP, DOWNLOAD, PLUMB
Quentin Rameau [Fri, 20 Nov 2015 15:35:13 +0000 (16:35 +0100)]
Adapt config MACROs SETPROP, DOWNLOAD, PLUMB

As we now use directly const strings from WebKitGTK, “constify” arg void
pointer.

9 years agoRename mouse functions to clickFUNCTION()
Quentin Rameau [Fri, 20 Nov 2015 15:19:24 +0000 (16:19 +0100)]
Rename mouse functions to clickFUNCTION()

9 years agoAdapt toggle(), clean some config parameters
Quentin Rameau [Fri, 20 Nov 2015 14:48:04 +0000 (15:48 +0100)]
Adapt toggle(), clean some config parameters

Regroup all toggles in an enum and handle them with a unique function
via a switch. That lets us take different actions for each toggle.
Add a frame flatenning and a dns preteching options.

9 years agoAdapt find()
Quentin Rameau [Fri, 20 Nov 2015 00:12:28 +0000 (01:12 +0100)]
Adapt find()

Slightly new behaviour: searching again for the same string (via MOD+/)
resets the search (ie restarts search from document top).
Searching for an empty string stops the search (ie all highlights are
removed).

9 years agoAdapt zoom()
Quentin Rameau [Fri, 20 Nov 2015 00:03:32 +0000 (01:03 +0100)]
Adapt zoom()

9 years agoAdapt navigate()
Quentin Rameau [Fri, 20 Nov 2015 00:00:38 +0000 (01:00 +0100)]
Adapt navigate()

9 years agoRemove togglescrollbars()
Quentin Rameau [Thu, 19 Nov 2015 23:58:14 +0000 (00:58 +0100)]
Remove togglescrollbars()

We do not have access to scrollbars and will have to manipulate DOM to
do that.

9 years agoAdapt scrolling
Quentin Rameau [Thu, 19 Nov 2015 23:53:14 +0000 (00:53 +0100)]
Adapt scrolling

In fact, we have a scrolling handle ersatz for now using JavaScript
calls as we don't have access anymore to scrollbars.
We'll have to manipulate the DOM directly (later).

9 years agoAdapt inspector handling
Quentin Rameau [Thu, 19 Nov 2015 23:44:29 +0000 (00:44 +0100)]
Adapt inspector handling

The inspector is now easily manageable via API, there's no need for
keeping its state in the Client.

9 years agoAdapt print()
Quentin Rameau [Thu, 19 Nov 2015 23:30:17 +0000 (00:30 +0100)]
Adapt print()

9 years agoSimplify building of stylefiles path
Quentin Rameau [Thu, 19 Nov 2015 23:17:50 +0000 (00:17 +0100)]
Simplify building of stylefiles path

We can directly use style file pointers instead of using temporary
string pointers.

9 years agoAdapt setstyle()
Quentin Rameau [Thu, 19 Nov 2015 23:13:07 +0000 (00:13 +0100)]
Adapt setstyle()

We can't anymore pass a simple path to a stylefile, we have to read the
entire file to create a stylesheet and apply it to the view.

9 years agoAdapt clipboard()
Quentin Rameau [Thu, 19 Nov 2015 23:09:21 +0000 (00:09 +0100)]
Adapt clipboard()

Replace linkhover with target uri and add some comments

9 years agoRename fullscreen() to togglefullscreen()
Quentin Rameau [Thu, 19 Nov 2015 23:00:59 +0000 (00:00 +0100)]
Rename fullscreen() to togglefullscreen()

And handle c->fullscreen value in winevent(). This way we keep track of
fullscreen state even if we did not directly initiate the fullscreen.

9 years agoReplace titlechangeleave() with catch-all winevent()
Quentin Rameau [Thu, 19 Nov 2015 22:42:19 +0000 (23:42 +0100)]
Replace titlechangeleave() with catch-all winevent()

All GtkWidget events have the same function prototype with the generic
GdkEvent as parameter. This will let us handle everything in the switch.

9 years agoAdapt JavaScript functions
Quentin Rameau [Thu, 19 Nov 2015 16:14:29 +0000 (17:14 +0100)]
Adapt JavaScript functions

Removed eval(), evalscript() is now sufficient and can directly execute
passed JavaScript string.

9 years agoRemove windowobjectcleared(), execute scripts on load finished
Quentin Rameau [Thu, 19 Nov 2015 15:38:58 +0000 (16:38 +0100)]
Remove windowobjectcleared(), execute scripts on load finished

The “window-object-cleared” signal is not directly accessible for
specific WebViews now. We'll have to use an Extension or rewrite the
JavaScript running functions.

9 years agoAdd createwindow() for GtkWindow creation
Quentin Rameau [Thu, 19 Nov 2015 13:38:23 +0000 (14:38 +0100)]
Add createwindow() for GtkWindow creation

Move there window creation from showview().

9 years agoAdd closeview() for JavaScript window closing
Quentin Rameau [Thu, 19 Nov 2015 13:25:29 +0000 (14:25 +0100)]
Add closeview() for JavaScript window closing

Simply call gtk_widget_destroy() on the window. Then GtkWindow closing
process will take care of the rest.

9 years agoRemove (delete :>) deletion_interface()
Quentin Rameau [Thu, 19 Nov 2015 13:15:28 +0000 (14:15 +0100)]
Remove (delete :>) deletion_interface()

9 years agoIntegrate beforerequest() into decidepolicy()
Quentin Rameau [Thu, 19 Nov 2015 13:10:28 +0000 (14:10 +0100)]
Integrate beforerequest() into decidepolicy()

9 years agoRemove contextmenu() and menuactivate() for "context-menu" signal
Quentin Rameau [Thu, 19 Nov 2015 12:40:35 +0000 (13:40 +0100)]
Remove contextmenu() and menuactivate() for "context-menu" signal

Those were added because “right click menu to copy the link URI will now
work” (would not work) in 2013. It's been a while since that works without
intervention.

9 years agoAdapted buttonrelease()
Quentin Rameau [Thu, 19 Nov 2015 12:19:27 +0000 (13:19 +0100)]
Adapted buttonrelease()

Use the current hit test (c->mousepos) to determine where the mouse
pointer is.
It is possible to link an action to a click and still propagate the
event after that by setting the “stop event” parameter of a Button to 0.

9 years agoReplace initdownload() and intercept global download requests.
Quentin Rameau [Wed, 18 Nov 2015 18:05:59 +0000 (19:05 +0100)]
Replace initdownload() and intercept global download requests.

Attach to download requests on WebKitContext, this way we can easily
manage all types of downloads (coming from views or not).

9 years agoAdapted progresschanged()
Quentin Rameau [Wed, 18 Nov 2015 17:51:55 +0000 (18:51 +0100)]
Adapted progresschanged()