summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config.def.h1
-rw-r--r--surf.111
-rw-r--r--surf.c7
3 files changed, 15 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h
index 32cda3c..dce76f8 100644
--- a/config.def.h
+++ b/config.def.h
@@ -153,6 +153,7 @@ static Key keys[] = {
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_i, toggle, { .i = LoadImages } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_v, toggle, { .i = Plugins } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_b, toggle, { .i = ScrollBars } },
+ { MODKEY|GDK_SHIFT_MASK, GDK_KEY_t, toggle, { .i = StrictTLS } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_m, toggle, { .i = Style } },
};
diff --git a/surf.1 b/surf.1
index 370dcee..0f02357 100644
--- a/surf.1
+++ b/surf.1
@@ -3,7 +3,7 @@
surf \- simple webkit-based browser
.SH SYNOPSIS
.B surf
-.RB [-bBdDfFgGiIkKmMnNpPsSvx]
+.RB [-bBdDfFgGiIkKmMnNpPsStTvx]
.RB [-a\ cookiepolicies]
.RB [-c\ cookiefile]
.RB [-C\ stylefile]
@@ -107,6 +107,12 @@ Disable Javascript
.B \-S
Enable Javascript
.TP
+.B \-t
+Disable strict TLS check
+.TP
+.B \-T
+Enable strict TLS check
+.TP
.B \-u useragent
Specify the
.I useragent
@@ -217,6 +223,9 @@ Open the Web Inspector (Developer Tools) window for the current page.
.B Ctrl\-Shift\-s
Toggle script execution. This will reload the page.
.TP
+.B Ctrl\-Shift\-t
+Toggle strict TLS check. This will reload the page.
+.TP
.B Ctrl\-Shift\-v
Toggle the enabling of plugins on that surf instance. This will reload the
page.
diff --git a/surf.c b/surf.c
index 8daa1e1..e08bfe5 100644
--- a/surf.c
+++ b/surf.c
@@ -226,7 +226,7 @@ static void clicknewwindow(Client *c, const Arg *a, WebKitHitTestResult *h);
static void clickexternplayer(Client *c, const Arg *a, WebKitHitTestResult *h);
static char winid[64];
-static char togglestats[10];
+static char togglestats[11];
static char pagestats[2];
static Atom atoms[AtomLast];
static Window embed;
@@ -569,7 +569,8 @@ gettogglestats(Client *c)
togglestats[6] = curconfig[Plugins].val.b ? 'V' : 'v';
togglestats[7] = curconfig[Style].val.b ? 'M' : 'm';
togglestats[8] = curconfig[FrameFlattening].val.b ? 'F' : 'f';
- togglestats[9] = '\0';
+ togglestats[9] = curconfig[StrictTLS].val.b ? 'T' : 't';
+ togglestats[10] = '\0';
}
void
@@ -715,7 +716,7 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a)
webkit_web_view_get_context(c->view), a->b ?
WEBKIT_TLS_ERRORS_POLICY_FAIL :
WEBKIT_TLS_ERRORS_POLICY_IGNORE);
- return; /* do not update */
+ break;
case Style:
if (a->b)
setstyle(c, getstyle(geturi(c)));
span>/+15 2009-09-07changing minimal size.Gravatar Enno Boland (tox) 1-1/+1 2009-09-07next version is 0.1Gravatar Enno Boland (tox) 1-1/+1 2009-09-07moving config.h to config.def.h.Gravatar Enno Boland (tox) 2-11/+15 2009-09-07moving color definitions to config.hGravatar Enno Boland (tox) 2-4/+5 2009-09-07indicator is red when http and green when httpsGravatar Enno Boland (tox) 1-1/+15 2009-09-07making indicator smaller.Gravatar Enno Boland (tox) 1-1/+1 2009-09-07typoGravatar Enno Boland (tox) 1-2/+2 2009-09-07adding indicator bar.Gravatar Enno Boland (tox) 1-11/+46 2009-09-07s/zoompage/zoom/Gravatar Enno Boland (tox) 2-5/+6 2009-09-07typo fixGravatar Enno Boland (tox) 1-1/+1 2009-09-07changes to the event system, make config.h saner, working on cookiesGravatar Enno Boland (tox) 2-96/+63 2009-09-06typofixGravatar Enno Boland (tox) 1-1/+1 2009-09-06reworked navigate.Gravatar Enno Boland (tox) 2-7/+4 2009-09-06reworked navigate.Gravatar Enno Boland (tox) 2-7/+4 2009-09-06reappling printing; changing some keys.Gravatar Enno Boland (tox) 2-3/+10 vatar.com/avatar/5466a16584c48c395293d4e5d2eb0af0?s=13&d=retro' width='13' height='13' alt='Gravatar' /> Christoph Lohmann 1-1/+10 2015-01-20Oh my blob!Gravatar Christoph Lohmann 1-0/+1 2015-01-19Data: is part of the browser too.Gravatar Christoph Lohmann 1-0/+1 2015-01-19file:// should be handled in surf too.Gravatar Christoph Lohmann 1-0/+1 2015-01-19Remove the debugging from the testing.Gravatar Christoph Lohmann 1-1/+0 2015-01-19Add some description for the plumb feature.Gravatar Christoph Lohmann 1-0/+3 2015-01-19Add plumbing functionality.Gravatar Christoph Lohmann 2-2/+28 2015-01-18Add a comment about how the styles are iterated.Gravatar Christoph Lohmann 1-0/+4 2015-01-18My CMD was too short. :OGravatar Christoph Lohmann 1-1/+1 2015-01-17Add the manpage changes for the disk cache support.Gravatar Christoph Lohmann 1-1/+7 2015-01-17Adding disk cache support for soup.Gravatar Christoph Lohmann 2-9/+40 2015-01-17Fix extra newline, and add -g where other switches are forwarded.Gravatar Ben Woolley 1-1/+3 2015-01-17Newer libc want _DEFAULT_SOURCE.Gravatar Christoph Lohmann 1-1/+1 2015-01-17Major styles update.Gravatar Christoph Lohmann 3-11/+84 2015-01-02Fix a typo in surf manual.Gravatar Jakukyo Friel 1-1/+1 2014-09-28Minor style change.Gravatar Christoph Lohmann 1-1/+1 2014-09-28Make »Copy image address« work.Gravatar Christoph Lohmann 1-3/+10 2014-08-07Mention xdotool in SEE ALSO too.Gravatar Christoph Lohmann 1-1/+2 2014-08-07Fix the manpage about xid.Gravatar Christoph Lohmann 1-1/+3