pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/netsurf Fix crash in netsurf when surfing certain ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0175af01425f
branches:  trunk
changeset: 404337:0175af01425f
user:      nros <nros%pkgsrc.org@localhost>
date:      Mon Nov 11 12:58:53 2019 +0000

description:
Fix crash in netsurf when surfing certain pages

Fix crash in netsurf when surfing pages that have visability:hidden set
for the entire page.

diffstat:

 www/netsurf/distinfo                                                        |   3 +-
 www/netsurf/patches/patch-netsurf_content_handlers_html_html__interaction.c |  15 ++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r e3cef8652929 -r 0175af01425f www/netsurf/distinfo
--- a/www/netsurf/distinfo      Mon Nov 11 12:44:04 2019 +0000
+++ b/www/netsurf/distinfo      Mon Nov 11 12:58:53 2019 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.16 2019/11/11 12:31:16 nros Exp $
+$NetBSD: distinfo,v 1.17 2019/11/11 12:58:53 nros Exp $
 
 SHA1 (netsurf-all-3.9.tar.gz) = 392aa7cf94b303228a00e6887c74e5763a81f3a4
 RMD160 (netsurf-all-3.9.tar.gz) = 3f7aff04cfd253f2b18590830b0aa2fca0123b3c
 SHA512 (netsurf-all-3.9.tar.gz) = 3223b0a3bc9721ea1a5a81bbabdda11e1d0f63850074a5dea3ea8999e53c92f07228f58befbf10359c028965131426888a8b9595d6c3cd7a5cde33ca256cf987
 Size (netsurf-all-3.9.tar.gz) = 8416458 bytes
+SHA1 (patch-netsurf_content_handlers_html_html__interaction.c) = 5dbfbaf26ba8ee32077af5aae0db2ee54cf59eb8
 SHA1 (patch-netsurf_frontends_gtk_download.c) = 8a449c0b46859be104f2eb87860960f84ebd38ad
 SHA1 (patch-netsurf_utils_config.h) = 761700b4fd92ea68d8644e3ec2ac270e0e0dd3fc
 SHA1 (patch-nsgenbind_src_Makefile) = 9024fe193c532fefec83b86a8cf85f1bcffb614e
diff -r e3cef8652929 -r 0175af01425f www/netsurf/patches/patch-netsurf_content_handlers_html_html__interaction.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/netsurf/patches/patch-netsurf_content_handlers_html_html__interaction.c       Mon Nov 11 12:58:53 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-netsurf_content_handlers_html_html__interaction.c,v 1.1 2019/11/11 12:58:53 nros Exp $
+* fix crash when an entire document has visability: hidden
+  from upstream:
+http://source.netsurf-browser.org/netsurf.git/commit/content/handlers/html/html_interaction.c?id=acee5faa3f03a229a6d7d14e042441a6af048faf
+--- netsurf/content/handlers/html/html_interaction.c.orig      2019-11-11 12:34:12.647371538 +0000
++++ netsurf/content/handlers/html/html_interaction.c
+@@ -382,7 +382,7 @@ void html_mouse_action(struct content *c
+       int padding_left, padding_right, padding_top, padding_bottom;
+       browser_drag_type drag_type = browser_window_get_drag_type(bw);
+       union content_msg_data msg_data;
+-      struct dom_node *node = NULL;
++      struct dom_node *node = html->layout->node; /* Default to the <HTML> */
+       union html_drag_owner drag_owner;
+       union html_selection_owner sel_owner;
+       bool click = mouse & (BROWSER_MOUSE_PRESS_1 | BROWSER_MOUSE_PRESS_2 |



Home | Main Index | Thread Index | Old Index