summaryrefslogtreecommitdiff
path: root/surf.c
AgeCommit message (Collapse)Author
2017-05-11Add config option for setting default charset.Quentin Rameau
This will be used for pages with no specified charset.
2017-05-11Improve parameters handlingQuentin Rameau
There's no need to reload all parameters each time a new url is loaded, instead set only custom parameters and restore those to defaults when needed.
2017-05-04Simplify usage()Quentin Rameau
There's no real need for using the real executable call name, especially with basename requiring special care.
2017-05-04Simplify version messageQuentin Rameau
2017-05-02Use Ctrl-t for showcert instead of Ctrl-xIvan Tham
2017-05-01Fix forgotten options in surf.1Quentin Rameau
2017-04-30setcert: check uri before adding a certificateHiltjo Posthuma
Also directly check for https scheme, we won't need a certificate for others.
2017-04-30fix mini typoHiltjo Posthuma
2017-04-29Add a flag for custom certificatesQuentin Rameau
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 -wQuentin Rameau
2017-04-29Add a keybinding to show current TLS certificateQuentin Rameau
2017-04-29Display an error message and certificate on tls errorQuentin Rameau
2017-04-29Free temporary certificate in setcertQuentin Rameau
2017-04-28Do not build SiteSpecific file when regex is invalidQuentin Rameau
2017-04-28Add support for using custom certificates per urlQuentin Rameau
2017-04-27Avoid using global name stylefile in setstyle()Quentin Rameau
2017-04-27Change site styles structure for a more generic oneQuentin Rameau
2017-04-23Fix 27cec48 Add a flag/keybinding for strict TLSQuentin Rameau
Forgot to add changes in main(), usage() and newwindow() too.
2017-04-23Fix a981959 Move -t stylefile flag to -C stylefileQuentin Rameau
Forgot to modify usage() and newwindow() too.
2017-04-23Fix possible oob access of cmd in newwindow()Quentin Rameau
Thanks to tarug0 for spotting this!
2017-04-20Bump year in programQuentin Rameau
2017-04-20Add a flag and toggle keybinding for strict TLSQuentin Rameau
2017-04-20Move -t stylefile flag to -C stylefileQuentin Rameau
2017-04-19Rename SSL instances to TLSQuentin Rameau
2017-04-19Set strict ssl by default and handle insecure contentQuentin Rameau
Non-https content in https pages is now handled separately from https connection establishment.
2017-04-19Add a configure option for default window sizeQuentin Rameau
2017-03-22Install Atoms before initializing gtkQuentin Rameau
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-06Fix font-size setting parameter value type in newviewQuentin Rameau
2016-09-22Add support for loading Webkit extensionsQuentin Rameau
2016-07-08Reload on SIGHUPCharles Lehner
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 optionsQuentin Rameau
“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()Quentin Rameau
Init GTK before trying to get the default display.
2016-07-05Get rid of getkbdeviceQuentin Rameau
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.Christoph Lohmann
2016-07-05Check $HOME and home dir of $USER before getpwuid()->pw_dirDmitry Bogatov
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()Quentin Rameau
2016-07-05Apply domain parameters each time url is changedQuentin Rameau
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 togglingQuentin Rameau
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()Quentin Rameau
Access parameters through given Arg parameter instead of accessing global parameters.
2016-07-05Fix parameter initialization and assignmentQuentin Rameau
2016-07-05Adapting the whole surf structure to new settingsQuentin Rameau
2016-07-05Introduce new data structure for handling settingsQuentin Rameau
2016-03-02Get rid of JavaScript for scrolling in viewsQuentin Rameau
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.
2015-12-01Fix title handlingQuentin Rameau
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 againQuentin Rameau
2015-11-23Fix user agent command-line parameterQuentin Rameau
Thanks to yui for seeing that!
2015-11-22Add webkit language settingsQuentin Rameau
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 handlingQuentin Rameau
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 windowQuentin Rameau
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()Quentin Rameau
We can't apply an empty stylesheet anymore, instead remove any previous stylesheet.