Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/6a1c64ff7b45dd830bfdb5e1295830b75c531f61
...commit
http://git.netsurf-browser.org/netsurf.git/commit/6a1c64ff7b45dd830bfdb5e1295830b75c531f61
...tree
http://git.netsurf-browser.org/netsurf.git/tree/6a1c64ff7b45dd830bfdb5e1295830b75c531f61
The branch, master has been updated
via 6a1c64ff7b45dd830bfdb5e1295830b75c531f61 (commit)
via ea549da8df0ab4ebed2b1f79cd215ac2bd0918e2 (commit)
from 5e45c4498c0a8a24330864b3d4c68ffe891ce15e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=6a1c64ff7b45dd830bfdb5e1295830b75c531f61
commit 6a1c64ff7b45dd830bfdb5e1295830b75c531f61
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>
improve css formatting in about scheme query handlers
diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index b922708..2cbb604 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -737,6 +737,9 @@ static bool fetch_about_query_auth_handler(struct
fetch_about_context *ctx)
"<h1>%s</h1>\n",
title, title);
+ slen += snprintf(buffer + slen, sizeof(buffer) - slen,
+ "<form method=\"post\"
enctype=\"multipart/form-data\">");
+
res = get_login_description(siteurl,
realm,
username,
@@ -749,8 +752,6 @@ static bool fetch_about_query_auth_handler(struct
fetch_about_context *ctx)
free(description);
}
- slen += snprintf(buffer + slen, sizeof(buffer) - slen,
- "<form method=\"post\"
enctype=\"multipart/form-data\">");
slen += snprintf(buffer + slen, sizeof(buffer) - slen,
"<div>"
@@ -769,7 +770,7 @@ static bool fetch_about_query_auth_handler(struct
fetch_about_context *ctx)
messages_get("Password"), password);
slen += snprintf(buffer + slen, sizeof(buffer) - slen,
- "<div>"
+ "<div align=\"right\">"
"<input type=\"submit\" id=\"cancel\" name=\"cancel\" "
"value=\"%s\">"
"<input type=\"submit\" id=\"login\" name=\"login\" "
diff --git a/resources/internal.css b/resources/internal.css
index c72dfac..f49f1bb 100644
--- a/resources/internal.css
+++ b/resources/internal.css
@@ -237,3 +237,32 @@ p.imagecachelist span {
display: table-cell;
}
+/*
+ * authentication styling
+ */
+
+body#authentication form {
+ /* Just to center the form on the page */
+ margin: 0 auto;
+ width: 400px;
+ /* To see the outline of the form */
+ padding: 1em;
+ border: 1px solid #CCC;
+ border-radius: 1em;
+}
+
+body#authentication label {
+ /* To make sure that all labels have the same size and are properly aligned
*/
+ display: inline-block;
+ width: 90px;
+ text-align: right;
+}
+
+body#authentication input#username, body#authentication input#password {
+/* To give the same size to all text fields */
+ width: 300px;
+ box-sizing: border-box;
+
+ /* To harmonize the look & feel of text field border */
+ border: 1px solid #999;
+}
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=ea549da8df0ab4ebed2b1f79cd215ac2bd0918e2
commit ea549da8df0ab4ebed2b1f79cd215ac2bd0918e2
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>
fix url reference counting in about scheme query handlers
diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index 7d0b3b9..b922708 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -801,9 +801,14 @@ static bool fetch_about_query_auth_handler(struct
fetch_about_context *ctx)
msg.type = FETCH_FINISHED;
fetch_about_send_callback(&msg, ctx);
+ nsurl_unref(siteurl);
+
return true;
fetch_about_query_auth_handler_aborted:
+
+ nsurl_unref(siteurl);
+
return false;
}
@@ -899,9 +904,13 @@ static bool fetch_about_query_ssl_handler(struct
fetch_about_context *ctx)
msg.type = FETCH_FINISHED;
fetch_about_send_callback(&msg, ctx);
+ nsurl_unref(siteurl);
+
return true;
fetch_about_query_ssl_handler_aborted:
+ nsurl_unref(siteurl);
+
return false;
}
-----------------------------------------------------------------------
Summary of changes:
content/fetchers/about.c | 16 +++++++++++++---
resources/internal.css | 29 +++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 3 deletions(-)
diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index 7d0b3b9..2cbb604 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -737,6 +737,9 @@ static bool fetch_about_query_auth_handler(struct
fetch_about_context *ctx)
"<h1>%s</h1>\n",
title, title);
+ slen += snprintf(buffer + slen, sizeof(buffer) - slen,
+ "<form method=\"post\"
enctype=\"multipart/form-data\">");
+
res = get_login_description(siteurl,
realm,
username,
@@ -749,8 +752,6 @@ static bool fetch_about_query_auth_handler(struct
fetch_about_context *ctx)
free(description);
}
- slen += snprintf(buffer + slen, sizeof(buffer) - slen,
- "<form method=\"post\"
enctype=\"multipart/form-data\">");
slen += snprintf(buffer + slen, sizeof(buffer) - slen,
"<div>"
@@ -769,7 +770,7 @@ static bool fetch_about_query_auth_handler(struct
fetch_about_context *ctx)
messages_get("Password"), password);
slen += snprintf(buffer + slen, sizeof(buffer) - slen,
- "<div>"
+ "<div align=\"right\">"
"<input type=\"submit\" id=\"cancel\" name=\"cancel\" "
"value=\"%s\">"
"<input type=\"submit\" id=\"login\" name=\"login\" "
@@ -801,9 +802,14 @@ static bool fetch_about_query_auth_handler(struct
fetch_about_context *ctx)
msg.type = FETCH_FINISHED;
fetch_about_send_callback(&msg, ctx);
+ nsurl_unref(siteurl);
+
return true;
fetch_about_query_auth_handler_aborted:
+
+ nsurl_unref(siteurl);
+
return false;
}
@@ -899,9 +905,13 @@ static bool fetch_about_query_ssl_handler(struct
fetch_about_context *ctx)
msg.type = FETCH_FINISHED;
fetch_about_send_callback(&msg, ctx);
+ nsurl_unref(siteurl);
+
return true;
fetch_about_query_ssl_handler_aborted:
+ nsurl_unref(siteurl);
+
return false;
}
diff --git a/resources/internal.css b/resources/internal.css
index c72dfac..f49f1bb 100644
--- a/resources/internal.css
+++ b/resources/internal.css
@@ -237,3 +237,32 @@ p.imagecachelist span {
display: table-cell;
}
+/*
+ * authentication styling
+ */
+
+body#authentication form {
+ /* Just to center the form on the page */
+ margin: 0 auto;
+ width: 400px;
+ /* To see the outline of the form */
+ padding: 1em;
+ border: 1px solid #CCC;
+ border-radius: 1em;
+}
+
+body#authentication label {
+ /* To make sure that all labels have the same size and are properly aligned
*/
+ display: inline-block;
+ width: 90px;
+ text-align: right;
+}
+
+body#authentication input#username, body#authentication input#password {
+/* To give the same size to all text fields */
+ width: 300px;
+ box-sizing: border-box;
+
+ /* To harmonize the look & feel of text field border */
+ border: 1px solid #999;
+}
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org