summaryrefslogtreecommitdiffstats
path: root/surf.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-04-29Add a flag for custom certificatesGravatar Quentin Rameau 2-4/+21
I don't think a keybinding would be useful here because we can't remove a custom certificate which is alread set anyway. I'll add it if somebody convince me of it's usefulness.
2017-04-29Move xid printing option from -x to -wGravatar Quentin Rameau 2-3/+3
2017-04-29Add a keybinding to show current TLS certificateGravatar Quentin Rameau 3-3/+42
2017-04-29Display an error message and certificate on tls errorGravatar Quentin Rameau 2-3/+55
2017-04-29Arrange MakefileGravatar Quentin Rameau 2-38/+43
Let the user specify his own C and LD FLAGS. Remove unuseful and non portable CFLAGS like pendantic and Wall.
2017-04-29Free temporary certificate in setcertGravatar Quentin Rameau 1-0/+1
2017-04-28Do not build SiteSpecific file when regex is invalidGravatar Quentin Rameau 1-9/+10
2017-04-28Add support for using custom certificates per urlGravatar Quentin Rameau 2-0/+66
2017-04-27Avoid using global name stylefile in setstyle()Gravatar Quentin Rameau 1-4/+4
2017-04-27Change site styles structure for a more generic oneGravatar Quentin Rameau 2-6/+6
2017-04-23Fix 27cec48 Add a flag/keybinding for strict TLSGravatar Quentin Rameau 1-2/+9
Forgot to add changes in main(), usage() and newwindow() too.
2017-04-23Fix a981959 Move -t stylefile flag to -C stylefileGravatar Quentin Rameau 1-5/+5
Forgot to modify usage() and newwindow() too.
2017-04-23Fix possible oob access of cmd in newwindow()Gravatar Quentin Rameau 1-1/+1
Thanks to tarug0 for spotting this!
2017-04-20Bump year in programGravatar Quentin Rameau 1-1/+1
2017-04-20Add a flag and toggle keybinding for strict TLSGravatar Quentin Rameau 3-4/+15
2017-04-20Move -t stylefile flag to -C stylefileGravatar Quentin Rameau 2-9/+9
2017-04-19Rename SSL instances to TLSGravatar Quentin Rameau 3-6/+6
2017-04-19Set strict ssl by default and handle insecure contentGravatar Quentin Rameau 2-11/+20
Non-https content in https pages is now handled separately from https connection establishment.
2017-04-19Add a configure option for default window sizeGravatar Quentin Rameau 2-1/+4
2017-03-28Bump version to 2.0Gravatar Quentin Rameau 1-1/+1
We're using the new scheme: 2.x is for webkit2
2017-03-28Add contributors to the LICENSEGravatar Quentin Rameau 1-4/+27
2017-03-22Install Atoms before initializing gtkGravatar Quentin Rameau 1-6/+9
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.
2017-03-22Fix spelling of otherwise in surf.1Gravatar Michael Stevens 1-1/+1
Add more spelling to surf. Signed-off-by: Christoph Lohmann <20h@r-36.net>
2017-03-06Fix font-size setting parameter value type in newviewGravatar Quentin Rameau 1-1/+1
2016-09-22Add support for loading Webkit extensionsGravatar Quentin Rameau 2-1/+11
2016-07-08Reload on SIGHUPGravatar Charles Lehner 1-0/+14
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>
2016-07-05Add a few configuration optionsGravatar Quentin Rameau 2-0/+18
“enable-accelerated-2d-canvas” “media-playback-requires-user-gesture” “enable-site-specific-quirks” Lookup those at https://webkitgtk.org/reference/webkit2gtk/stable/WebKitSettings.html
2016-07-05Fix GdkDisplay assignment in setup()Gravatar Quentin Rameau 1-1/+2
Init GTK before trying to get the default display.
2016-07-05Get rid of getkbdeviceGravatar Quentin Rameau 1-19/+3
The GTK guys nicely took in account our request and pushed in a convenience function to get default keyboard device.
2016-07-05Fixing the last patch to the surf style.Gravatar Christoph Lohmann 1-15/+18
2016-07-05Check $HOME and home dir of $USER before getpwuid()->pw_dirGravatar Dmitry Bogatov 1-7/+36
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>
2016-07-05Fix url parsing in load()Gravatar Quentin Rameau 1-1/+4
2016-07-05Apply domain parameters each time url is changedGravatar Quentin Rameau 1-5/+2
Urls are only changed at load (initial requested one), or while redirected. When the page is committed, url is already final.
2016-07-05Fix inspector togglingGravatar Quentin Rameau 1-8/+5
Always get the inspector object, and let the user eventually close it even if it's disabled for the current page.
2016-07-05Rectify how parameters are handled in setparameter()Gravatar Quentin Rameau 1-22/+23
Access parameters through given Arg parameter instead of accessing global parameters.
2016-07-05Fix parameter initialization and assignmentGravatar Quentin Rameau 1-30/+34
2016-07-05Adapting the whole surf structure to new settingsGravatar Quentin Rameau 2-155/+233
2016-07-05Adapt default parameters to new config styleGravatar Quentin Rameau 1-29/+32
2016-07-05Introduce new data structure for handling settingsGravatar Quentin Rameau 1-2/+38
2016-03-06Disable globbing in curl commandGravatar Dmitrij D. Czarkoff 1-1/+1
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.
2016-03-02Get rid of JavaScript for scrolling in viewsGravatar Quentin Rameau 2-18/+61
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.
2016-03-02Modify linking parameterGravatar Quentin Rameau 1-1/+1
2016-03-02Import the arg.h from st which fixed the oob bug.Gravatar Christoph Lohmann 1-20/+27
2015-12-01Fix title handlingGravatar Quentin Rameau 1-4/+8
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.
2015-11-24Fix clickexternplayer(), no need to test the target againGravatar Quentin Rameau 1-4/+2
2015-11-23Fix user agent command-line parameterGravatar Quentin Rameau 1-1/+1
Thanks to yui for seeing that!
2015-11-22Add webkit language settingsGravatar Quentin Rameau 2-0/+12
You can now set your prefered website languages in order. It is also possible to enable spell checking in the same way.
2015-11-22Fix key handlingGravatar Quentin Rameau 1-41/+17
I had forgotten to compare configured key values against lowered pressed key values. Integrated keypress() into winevent().
2015-11-22Fix target uri handling when leaving windowGravatar Quentin Rameau 1-9/+16
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.
2015-11-22Adapt togglestyle()Gravatar Quentin Rameau 1-1/+6
We can't apply an empty stylesheet anymore, instead remove any previous stylesheet.