netsurf: branch master updated. release/3.9-669-gee054db

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/ee054db071170fadf4108d7b282d2e4518987d8d
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/ee054db071170fadf4108d7b282d2e4518987d8d
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/ee054db071170fadf4108d7b282d2e4518987d8d

The branch, master has been updated
   via  ee054db071170fadf4108d7b282d2e4518987d8d (commit)
  from  e6c666d4f432d51ff449bbd4dfd137107c9e774c (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=ee054db071170fadf4108d7b282d2e4518987d8d
commit ee054db071170fadf4108d7b282d2e4518987d8d
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

monkey: Excise sslcert and add loading blocking support

Signed-off-by: Daniel Silverstone 

diff --git a/docs/integration-testing.md b/docs/integration-testing.md
index 1191fba..da93343 100644
--- a/docs/integration-testing.md
+++ b/docs/integration-testing.md
@@ -292,6 +292,7 @@ terminate the block.
   - window: win1
 status: complete
 
+valid `status` values are `complete` or `loading`.
 
 ## repeat
 
@@ -488,16 +489,6 @@ Remove a previously added authentication details.
   password: bar
 
 
-## add-cert
-
-Add certificate error handler for a url.
-
-
-## remove-cert
-
-Remove certificate error handler for a url.
-
-
 ## clear-log
 
 Clear log for a window.
diff --git a/test/monkey_driver.py b/test/monkey_driver.py
index fe904d3..5074640 100755
--- a/test/monkey_driver.py
+++ b/test/monkey_driver.py
@@ -35,7 +35,6 @@ class DriverBrowser(Browser):
 def __init__(self, *args, **kwargs):
 super(DriverBrowser, self).__init__(*args, **kwargs)
 self.auth = []
-self.cert = []
 
 def add_auth(self, url, realm, username, password):
 self.auth.append((url, realm, username, password))
@@ -87,46 +86,6 @@ class DriverBrowser(Browser):
 print("401: No candidate found, cancelling login box")
 logwin.destroy()
 
-def add_cert(self, url):
-# add sll certificate error exception
-self.cert.append(url)
-
-def remove_cert(self, url):
-keep = []
-
-def matches(first, second):
-if first is None or second is None:
-return True
-return first == second
-
-for iurl in self.cert:
-if not matches(url, iurl):
-keep.append(iurl)
-self.cert = keep
-
-def handle_ready_sslcert(self, cwin):
-
-def matches(first, second):
-if first is None or second is None:
-return True
-return first == second
-
-candidates = []
-for url in self.cert:
-score = 0
-if matches(url, cwin.url):
-score += 1
-if score > 0:
-candidates.append((score, url))
-if candidates:
-candidates.sort()
-(score, url) = candidates[-1]
-print("SSLCert: Found candidate {} with score {}".format(url, 
score))
-cwin.go()
-else:
-print("SSLCert: No candidate found, cancelling sslcert box")
-cwin.destroy()
-
 
 def print_usage():
 print('Usage:')
@@ -212,19 +171,19 @@ def conds_met(ctx, conds):
 elif 'window' in cond.keys():
 status = cond['status']
 window = cond['window']
-assert status == "complete"  # TODO: Add more status support?
+assert status == "complete" or status == "loading"  # TODO: Add 
more status support?
 if window == "*all*":
 # all windows must be not throbbing
 throbbing = False
 for win in ctx['windows'].items():
 if win[1].throbbing:
 throbbing = True
-if not throbbing:
-return True
+# throbbing and want loading => true
+# not throbbing and want complete => true
+return (status == "loading") == throbbing
 else:
 win = ctx['windows'][window]
-if win.throbbing is False:
-return True
+return win.throbbing == (status == "loading")
 else:
 raise AssertionError("Unknown condition: {}".format(repr(cond)))
 
@@ -576,23 +535,6 @@ def run_test_step_action_remove_auth(ctx, step):
 step.get("username"), step.get("password"))
 
 
-def run_test_step_action_add_cert(ctx, step):
-print(get_indent(ctx) + "Action:" + step["action"])
-assert_browser(ctx)
-browser = ctx['browser']
-browser.add_cert(step.get("url"))
-
-
-def run_test_step_action_remove_cert(ctx, step):
-

netsurf-test: branch master updated. 36b9b2c020f3be48f7b062607d67ac1a85b46395

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf-test.git/shortlog/36b9b2c020f3be48f7b062607d67ac1a85b46395
...commit 
http://git.netsurf-browser.org/netsurf-test.git/commit/36b9b2c020f3be48f7b062607d67ac1a85b46395
...tree 
http://git.netsurf-browser.org/netsurf-test.git/tree/36b9b2c020f3be48f7b062607d67ac1a85b46395

The branch, master has been updated
   via  36b9b2c020f3be48f7b062607d67ac1a85b46395 (commit)
  from  12062226d90bc3109e66148efbc1ecb6f062be46 (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-test.git/commit/?id=36b9b2c020f3be48f7b062607d67ac1a85b46395
commit 36b9b2c020f3be48f7b062607d67ac1a85b46395
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

short-internet: Use new approach for https-badssl tests

Signed-off-by: Daniel Silverstone 

diff --git a/monkey-test/short-internet/https-badssl-expired.yaml 
b/monkey-test/short-internet/https-badssl-expired.yaml
index 75cac99..c686511 100644
--- a/monkey-test/short-internet/https-badssl-expired.yaml
+++ b/monkey-test/short-internet/https-badssl-expired.yaml
@@ -27,11 +27,14 @@ steps:
   window: win1
   checks:
   - text-not-contains: "expired. badssl.com"
-- action: add-cert
-  url: https://expired.badssl.com/
-- action: navigate
+- action: click
   window: win1
-  url: https://expired.badssl.com/
+  target:
+- text: Proceed
+- action: block
+  conditions:
+  - window: win1
+status: loading
 - action: block
   conditions:
   - window: win1
diff --git a/monkey-test/short-internet/https-badssl-selfsigned.yaml 
b/monkey-test/short-internet/https-badssl-selfsigned.yaml
index 51938fa..96bb47c 100644
--- a/monkey-test/short-internet/https-badssl-selfsigned.yaml
+++ b/monkey-test/short-internet/https-badssl-selfsigned.yaml
@@ -27,11 +27,14 @@ steps:
   window: win1
   checks:
   - text-not-contains: "self-signed. badssl.com"
-- action: add-cert
-  url: https://self-signed.badssl.com/
-- action: navigate
+- action: click
   window: win1
-  url: https://self-signed.badssl.com/
+  target:
+- text: Proceed
+- action: block
+  conditions:
+  - window: win1
+status: loading
 - action: block
   conditions:
   - window: win1
diff --git a/monkey-test/short-internet/https-badssl-untrustedroot.yaml 
b/monkey-test/short-internet/https-badssl-untrustedroot.yaml
index 6e23d34..9643d88 100644
--- a/monkey-test/short-internet/https-badssl-untrustedroot.yaml
+++ b/monkey-test/short-internet/https-badssl-untrustedroot.yaml
@@ -27,11 +27,14 @@ steps:
   window: win1
   checks:
   - text-not-contains: "untrusted-root. badssl.com"
-- action: add-cert
-  url: https://untrusted-root.badssl.com/
-- action: navigate
+- action: click
   window: win1
-  url: https://untrusted-root.badssl.com/
+  target:
+- text: Proceed
+- action: block
+  conditions:
+  - window: win1
+status: loading
 - action: block
   conditions:
   - window: win1
diff --git a/monkey-test/short-internet/https-badssl-wronghost.yaml 
b/monkey-test/short-internet/https-badssl-wronghost.yaml
index 6f60438..5d99ea8 100644
--- a/monkey-test/short-internet/https-badssl-wronghost.yaml
+++ b/monkey-test/short-internet/https-badssl-wronghost.yaml
@@ -27,11 +27,14 @@ steps:
   window: win1
   checks:
   - text-not-contains: "wrong.host. badssl.com"
-- action: add-cert
-  url: https://wrong.host.badssl.com/
-- action: navigate
+- action: click
   window: win1
-  url: https://wrong.host.badssl.com/
+  target:
+- text: Proceed
+- action: block
+  conditions:
+  - window: win1
+status: loading
 - action: block
   conditions:
   - window: win1


---

Summary of changes:
 monkey-test/short-internet/https-badssl-expired.yaml   |   11 +++
 monkey-test/short-internet/https-badssl-selfsigned.yaml|   11 +++
 monkey-test/short-internet/https-badssl-untrustedroot.yaml |   11 +++
 monkey-test/short-internet/https-badssl-wronghost.yaml |   11 +++
 4 files changed, 28 insertions(+), 16 deletions(-)

diff --git a/monkey-test/short-internet/https-badssl-expired.yaml 
b/monkey-test/short-internet/https-badssl-expired.yaml
index 75cac99..c686511 100644
--- a/monkey-test/short-internet/https-badssl-expired.yaml
+++ b/monkey-test/short-internet/https-badssl-expired.yaml
@@ -27,11 +27,14 @@ steps:
   window: win1
   checks:
   - text-not-contains: "expired. badssl.com"
-- action: add-cert
-  url: https://expired.badssl.com/
-- action: navigate
+- action: click
   window: win1
-  url: https://expired.badssl.com/
+  target:
+- text: Proceed
+- action: block
+  conditions:
+  - window: win1
+status: loading
 - action: block
   conditions:
   - window: win1
diff --git a/monkey-test/short-internet/https-badssl-selfsigned.ya

netsurf: branch master updated. release/3.9-670-g0797375

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/079737538075cea3aa967b164244bb9a26089274
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/079737538075cea3aa967b164244bb9a26089274
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/079737538075cea3aa967b164244bb9a26089274

The branch, master has been updated
   via  079737538075cea3aa967b164244bb9a26089274 (commit)
  from  ee054db071170fadf4108d7b282d2e4518987d8d (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=079737538075cea3aa967b164244bb9a26089274
commit 079737538075cea3aa967b164244bb9a26089274
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

frontends/atari: Add missing include of options.h

Signed-off-by: Daniel Silverstone 

diff --git a/frontends/atari/gui.c b/frontends/atari/gui.c
index a318f6c..1e2dfd1 100644
--- a/frontends/atari/gui.c
+++ b/frontends/atari/gui.c
@@ -65,6 +65,7 @@
 #include "atari/filetype.h"
 #include "atari/bitmap.h"
 #include "atari/font.h"
+#include "atari/options.h"
 #include "cflib.h"
 
 static bool atari_quit = false;


---

Summary of changes:
 frontends/atari/gui.c |1 +
 1 file changed, 1 insertion(+)

diff --git a/frontends/atari/gui.c b/frontends/atari/gui.c
index a318f6c..1e2dfd1 100644
--- a/frontends/atari/gui.c
+++ b/frontends/atari/gui.c
@@ -65,6 +65,7 @@
 #include "atari/filetype.h"
 #include "atari/bitmap.h"
 #include "atari/font.h"
+#include "atari/options.h"
 #include "cflib.h"
 
 static bool atari_quit = false;


-- 
NetSurf Browser
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf: branch master updated. release/3.9-671-gde56170

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/de56170cb99ad40ba72dc2bc864d095717521176
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/de56170cb99ad40ba72dc2bc864d095717521176
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/de56170cb99ad40ba72dc2bc864d095717521176

The branch, master has been updated
   via  de56170cb99ad40ba72dc2bc864d095717521176 (commit)
  from  079737538075cea3aa967b164244bb9a26089274 (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=de56170cb99ad40ba72dc2bc864d095717521176
commit de56170cb99ad40ba72dc2bc864d095717521176
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

frontends/atari: Include the *right* options header

Signed-off-by: Daniel Silverstone 

diff --git a/frontends/atari/gui.c b/frontends/atari/gui.c
index 1e2dfd1..3b324f5 100644
--- a/frontends/atari/gui.c
+++ b/frontends/atari/gui.c
@@ -29,6 +29,7 @@
 #include "utils/log.h"
 #include "utils/messages.h"
 #include "utils/corestrings.h"
+#include "utils/nsoption.h"
 #include "netsurf/browser_window.h"
 #include "netsurf/layout.h"
 #include "netsurf/window.h"
@@ -65,7 +66,6 @@
 #include "atari/filetype.h"
 #include "atari/bitmap.h"
 #include "atari/font.h"
-#include "atari/options.h"
 #include "cflib.h"
 
 static bool atari_quit = false;


---

Summary of changes:
 frontends/atari/gui.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frontends/atari/gui.c b/frontends/atari/gui.c
index 1e2dfd1..3b324f5 100644
--- a/frontends/atari/gui.c
+++ b/frontends/atari/gui.c
@@ -29,6 +29,7 @@
 #include "utils/log.h"
 #include "utils/messages.h"
 #include "utils/corestrings.h"
+#include "utils/nsoption.h"
 #include "netsurf/browser_window.h"
 #include "netsurf/layout.h"
 #include "netsurf/window.h"
@@ -65,7 +66,6 @@
 #include "atari/filetype.h"
 #include "atari/bitmap.h"
 #include "atari/font.h"
-#include "atari/options.h"
 #include "cflib.h"
 
 static bool atari_quit = false;


-- 
NetSurf Browser
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


buildsystem: branch master updated. release/1.8-6-g18e8a7d

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/buildsystem.git/shortlog/18e8a7d4f5259615be5f64139c5d32bef6cfdfdf
...commit 
http://git.netsurf-browser.org/buildsystem.git/commit/18e8a7d4f5259615be5f64139c5d32bef6cfdfdf
...tree 
http://git.netsurf-browser.org/buildsystem.git/tree/18e8a7d4f5259615be5f64139c5d32bef6cfdfdf

The branch, master has been updated
   via  18e8a7d4f5259615be5f64139c5d32bef6cfdfdf (commit)
  from  3246c9f04267b117b4f464d9eef39b7ef7a70a7f (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/buildsystem.git/commit/?id=18e8a7d4f5259615be5f64139c5d32bef6cfdfdf
commit 18e8a7d4f5259615be5f64139c5d32bef6cfdfdf
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

makefiles: Detect NS_ENV_CC and use that if set

Signed-off-by: Daniel Silverstone 

diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools
index c0e96d5..d998953 100644
--- a/makefiles/Makefile.tools
+++ b/makefiles/Makefile.tools
@@ -121,12 +121,17 @@ ifeq ($(BUILD),$(HOST))
 else
   # Cross compiling
 
-  # Make first-stab at identity of CC
-  CC__ := $(CC)
-  # Improve our guess at the identity of CC
-  # (only if CC was not specified by the user)
-  ifeq ($(origin CC),default)
-CC__ := $(HOST)-gcc
+  ifneq ($(NS_ENV_CC),)
+# If we have a CC specified by env.sh, start with that
+CC__ := $(NS_ENV_CC)
+  else
+# Make first-stab at identity of CC
+CC__ := $(CC)
+# Improve our guess at the identity of CC
+# (only if CC was not specified by the user)
+ifeq ($(origin CC),default)
+  CC__ := $(HOST)-gcc
+endif
   endif
 
   # Search the path for the compiler


---

Summary of changes:
 makefiles/Makefile.tools |   17 +++--
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools
index c0e96d5..d998953 100644
--- a/makefiles/Makefile.tools
+++ b/makefiles/Makefile.tools
@@ -121,12 +121,17 @@ ifeq ($(BUILD),$(HOST))
 else
   # Cross compiling
 
-  # Make first-stab at identity of CC
-  CC__ := $(CC)
-  # Improve our guess at the identity of CC
-  # (only if CC was not specified by the user)
-  ifeq ($(origin CC),default)
-CC__ := $(HOST)-gcc
+  ifneq ($(NS_ENV_CC),)
+# If we have a CC specified by env.sh, start with that
+CC__ := $(NS_ENV_CC)
+  else
+# Make first-stab at identity of CC
+CC__ := $(CC)
+# Improve our guess at the identity of CC
+# (only if CC was not specified by the user)
+ifeq ($(origin CC),default)
+  CC__ := $(HOST)-gcc
+endif
   endif
 
   # Search the path for the compiler


-- 
NetSurf Project build system
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf: branch master updated. release/3.9-672-g8bef50a

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/8bef50aae2aaf4bb51900f638d9c4abb1e0b2304
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/8bef50aae2aaf4bb51900f638d9c4abb1e0b2304
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/8bef50aae2aaf4bb51900f638d9c4abb1e0b2304

The branch, master has been updated
   via  8bef50aae2aaf4bb51900f638d9c4abb1e0b2304 (commit)
  from  de56170cb99ad40ba72dc2bc864d095717521176 (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=8bef50aae2aaf4bb51900f638d9c4abb1e0b2304
commit 8bef50aae2aaf4bb51900f638d9c4abb1e0b2304
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

env.sh: Reorder to prefer cross env, and export that to build system

Signed-off-by: Daniel Silverstone 

diff --git a/docs/env.sh b/docs/env.sh
index 3b0f249..6908220 100644
--- a/docs/env.sh
+++ b/docs/env.sh
@@ -198,7 +198,7 @@ if [ "x${HOST}" = "x" ]; then
 HOST=${TARGET_ABI}
 fi
 else
-HOST_CC_LIST="${HOST}-cc ${HOST}-gcc 
/opt/netsurf/${HOST}/cross/bin/${HOST}-cc 
/opt/netsurf/${HOST}/cross/bin/${HOST}-gcc"
+HOST_CC_LIST="/opt/netsurf/${HOST}/cross/bin/${HOST}-cc 
/opt/netsurf/${HOST}/cross/bin/${HOST}-gcc ${HOST}-cc ${HOST}-gcc"
 for HOST_CC_V in $(echo ${HOST_CC_LIST});do
 HOST_CC=$(${WHICH_CMD} ${HOST_CC_V})
 if [ "x${HOST_CC}" != "x" ];then
@@ -213,9 +213,13 @@ else
 HOST_CC_MACHINE=$(${HOST_CC} -dumpmachine 2>/dev/null)
 
 if [ "${HOST_CC_MACHINE}" != "${HOST}" ];then
-echo "Compiler dumpmachine differes from HOST setting"
+echo "Compiler dumpmachine differs from HOST setting"
 return 2
 fi
+
+NS_ENV_CC="${HOST_CC}"
+export NS_ENV_CC
+
 unset HOST_CC_LIST HOST_CC_V HOST_CC HOST_CC_MACHINE
 fi
 


---

Summary of changes:
 docs/env.sh |8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/docs/env.sh b/docs/env.sh
index 3b0f249..6908220 100644
--- a/docs/env.sh
+++ b/docs/env.sh
@@ -198,7 +198,7 @@ if [ "x${HOST}" = "x" ]; then
 HOST=${TARGET_ABI}
 fi
 else
-HOST_CC_LIST="${HOST}-cc ${HOST}-gcc 
/opt/netsurf/${HOST}/cross/bin/${HOST}-cc 
/opt/netsurf/${HOST}/cross/bin/${HOST}-gcc"
+HOST_CC_LIST="/opt/netsurf/${HOST}/cross/bin/${HOST}-cc 
/opt/netsurf/${HOST}/cross/bin/${HOST}-gcc ${HOST}-cc ${HOST}-gcc"
 for HOST_CC_V in $(echo ${HOST_CC_LIST});do
 HOST_CC=$(${WHICH_CMD} ${HOST_CC_V})
 if [ "x${HOST_CC}" != "x" ];then
@@ -213,9 +213,13 @@ else
 HOST_CC_MACHINE=$(${HOST_CC} -dumpmachine 2>/dev/null)
 
 if [ "${HOST_CC_MACHINE}" != "${HOST}" ];then
-echo "Compiler dumpmachine differes from HOST setting"
+echo "Compiler dumpmachine differs from HOST setting"
 return 2
 fi
+
+NS_ENV_CC="${HOST_CC}"
+export NS_ENV_CC
+
 unset HOST_CC_LIST HOST_CC_V HOST_CC HOST_CC_MACHINE
 fi
 


-- 
NetSurf Browser
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf: branch master updated. release/3.9-673-gc2f7331

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/c2f73310d011a7e6b02f6dbedf96826c21a1b88f
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/c2f73310d011a7e6b02f6dbedf96826c21a1b88f
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/c2f73310d011a7e6b02f6dbedf96826c21a1b88f

The branch, master has been updated
   via  c2f73310d011a7e6b02f6dbedf96826c21a1b88f (commit)
  from  8bef50aae2aaf4bb51900f638d9c4abb1e0b2304 (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=c2f73310d011a7e6b02f6dbedf96826c21a1b88f
commit c2f73310d011a7e6b02f6dbedf96826c21a1b88f
Author: Michael Drake 
Commit: Michael Drake 

Squash warning: "_GNU_SOURCE" redefined.

The utils/config.h header handles this.

diff --git a/content/handlers/html/css.c b/content/handlers/html/css.c
index d7c9b3c..2434b17 100644
--- a/content/handlers/html/css.c
+++ b/content/handlers/html/css.c
@@ -23,8 +23,6 @@
 
 #include "utils/config.h"
 
-#define _GNU_SOURCE /* strcasestr needs this for string.h */
-
 #include 
 #include 
 #include 
diff --git a/desktop/treeview.c b/desktop/treeview.c
index e8aed77..48a0316 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -24,7 +24,6 @@
 
 #include "utils/config.h"
 
-#define _GNU_SOURCE /* strcasestr needs this for string.h */
 #include 
 
 #include "utils/utils.h"


---

Summary of changes:
 content/handlers/html/css.c |2 --
 desktop/treeview.c  |1 -
 2 files changed, 3 deletions(-)

diff --git a/content/handlers/html/css.c b/content/handlers/html/css.c
index d7c9b3c..2434b17 100644
--- a/content/handlers/html/css.c
+++ b/content/handlers/html/css.c
@@ -23,8 +23,6 @@
 
 #include "utils/config.h"
 
-#define _GNU_SOURCE /* strcasestr needs this for string.h */
-
 #include 
 #include 
 #include 
diff --git a/desktop/treeview.c b/desktop/treeview.c
index e8aed77..48a0316 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -24,7 +24,6 @@
 
 #include "utils/config.h"
 
-#define _GNU_SOURCE /* strcasestr needs this for string.h */
 #include 
 
 #include "utils/utils.h"


-- 
NetSurf Browser
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf: branch master updated. release/3.9-674-gb28d3c2

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/b28d3c267510d2e80e4730f71ff1fa5f61795499
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/b28d3c267510d2e80e4730f71ff1fa5f61795499
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/b28d3c267510d2e80e4730f71ff1fa5f61795499

The branch, master has been updated
   via  b28d3c267510d2e80e4730f71ff1fa5f61795499 (commit)
  from  c2f73310d011a7e6b02f6dbedf96826c21a1b88f (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=b28d3c267510d2e80e4730f71ff1fa5f61795499
commit b28d3c267510d2e80e4730f71ff1fa5f61795499
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

query/ssl: Include link to view certificate details

Signed-off-by: Daniel Silverstone 

diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index d7c1f7e..532223f 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -2199,6 +2199,7 @@ static bool fetch_about_query_privacy_handler(struct 
fetch_about_context *ctx)
const char *title;
struct nsurl *siteurl = NULL;
char *description = NULL;
+   const char *chainurl = "";
const struct fetch_multipart_data *curmd; /* mutipart data iterator */
 
/* extract parameters from multipart post data */
@@ -2211,6 +2212,8 @@ static bool fetch_about_query_privacy_handler(struct 
fetch_about_context *ctx)
}
} else if (strcmp(curmd->name, "reason") == 0) {
reason = curmd->value;
+   } else if (strcmp(curmd->name, "chainurl") == 0) {
+   chainurl = curmd->value;
}
curmd = curmd->next;
}
@@ -2258,7 +2261,12 @@ static bool fetch_about_query_privacy_handler(struct 
fetch_about_context *ctx)
goto fetch_about_query_ssl_handler_aborted;
}
}
-   res = ssenddataf(ctx, "%s", reason);
+   res = ssenddataf(ctx,
+"%s"
+"%s",
+reason,
+chainurl,
+messages_get("ViewCertificates"));
if (res != NSERROR_OK) {
goto fetch_about_query_ssl_handler_aborted;
}
diff --git a/desktop/browser_window.c b/desktop/browser_window.c
index 60f8d89..2dcd079 100644
--- a/desktop/browser_window.c
+++ b/desktop/browser_window.c
@@ -1125,6 +1125,7 @@ browser_window__handle_bad_certs(struct browser_window 
*bw,
/* Initially we don't know WHY the SSL cert was bad */
const char *reason = messages_get_sslcode(SSL_CERT_ERR_UNKNOWN);
size_t depth;
+   nsurl *chainurl = NULL;
 
memset(¶ms, 0, sizeof(params));
 
@@ -1157,6 +1158,20 @@ browser_window__handle_bad_certs(struct browser_window 
*bw,
goto out;
}
 
+   err = cert_chain_to_query(bw->loading_cert_chain, &chainurl);
+
+   if (err != NSERROR_OK) {
+   goto out;
+   }
+
+   err = fetch_multipart_data_new_kv(¶ms.post_multipart,
+ "chainurl",
+ nsurl_access(chainurl));
+
+   if (err != NSERROR_OK) {
+   goto out;
+   }
+
/* Now we issue the fetch */
bw->internal_nav = true;
err = browser_window__navigate_internal(bw, ¶ms);
@@ -1166,6 +1181,8 @@ browser_window__handle_bad_certs(struct browser_window 
*bw,
 
  out:
browser_window__free_fetch_parameters(¶ms);
+   if (chainurl != NULL)
+   nsurl_unref(chainurl);
return err;
 }
 
diff --git a/resources/FatMessages b/resources/FatMessages
index 671ba28..cbbead2 100644
--- a/resources/FatMessages
+++ b/resources/FatMessages
@@ -1078,6 +1078,11 @@ it.all.PrivacyTitle:Errore della privacy
 nl.all.PrivacyTitle:Privacyfout
 en.all.PrivacyDescription:A privacy error occurred while communicating with %s 
this may be a site configuration error or an attempt to steal private 
information (passwords, messages or credit cards)
 it.all.PrivacyDescription:Si è verificato un errore della privacy durante la 
comunicazione con %s fai attenzione, questo potrebbe essere un errore di 
configurazione del sito oppure un tentativo di rubare informazioni private 
(password, messaggi o numeri di carte di credito)
+en.all.ViewCertificates:View certificate details
+de.all.ViewCertificates:Zertifikatdetails anzeigen
+fr.all.ViewCertificates:Afficher les détails du certificat
+it.all.ViewCertificates:Visualizza i dettagli del certificato
+nl.all.ViewCertificates:Bekijk certificaatdetails
 en.all.Proceed:Proceed
 de.all.Proceed:Vorgehen
 fr.all.Proceed:Procéder


-

netsurf: branch master updated. release/3.9-675-gfcbc710

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/fcbc710ce5b3af8f9c19ad960f41efddda352cec
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/fcbc710ce5b3af8f9c19ad960f41efddda352cec
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/fcbc710ce5b3af8f9c19ad960f41efddda352cec

The branch, master has been updated
   via  fcbc710ce5b3af8f9c19ad960f41efddda352cec (commit)
  from  b28d3c267510d2e80e4730f71ff1fa5f61795499 (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=fcbc710ce5b3af8f9c19ad960f41efddda352cec
commit fcbc710ce5b3af8f9c19ad960f41efddda352cec
Author: Michael Drake 
Commit: Michael Drake 

Squash warnings: '%s' directive argument is NULL.

diff --git a/frontends/framebuffer/gui.c b/frontends/framebuffer/gui.c
index 8c8fb61..d7f2272 100644
--- a/frontends/framebuffer/gui.c
+++ b/frontends/framebuffer/gui.c
@@ -1169,7 +1169,7 @@ fb_url_enter(void *pw, char *text)
 
error = nsurl_create(text, &url);
if (error != NSERROR_OK) {
-   fb_warn_user(messages_get_errorcode(error), 0);
+   fb_warn_user("Errorcode:", messages_get_errorcode(error));
} else {
browser_window_navigate(bw, url, NULL, BW_NAVIGATE_HISTORY,
NULL, NULL, NULL);
@@ -2266,7 +2266,7 @@ main(int argc, char** argv)
nsurl_unref(url);
}
if (ret != NSERROR_OK) {
-   fb_warn_user(messages_get_errorcode(ret), 0);
+   fb_warn_user("Errorcode:", messages_get_errorcode(ret));
} else {
framebuffer_run();
 


---

Summary of changes:
 frontends/framebuffer/gui.c |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/frontends/framebuffer/gui.c b/frontends/framebuffer/gui.c
index 8c8fb61..d7f2272 100644
--- a/frontends/framebuffer/gui.c
+++ b/frontends/framebuffer/gui.c
@@ -1169,7 +1169,7 @@ fb_url_enter(void *pw, char *text)
 
error = nsurl_create(text, &url);
if (error != NSERROR_OK) {
-   fb_warn_user(messages_get_errorcode(error), 0);
+   fb_warn_user("Errorcode:", messages_get_errorcode(error));
} else {
browser_window_navigate(bw, url, NULL, BW_NAVIGATE_HISTORY,
NULL, NULL, NULL);
@@ -2266,7 +2266,7 @@ main(int argc, char** argv)
nsurl_unref(url);
}
if (ret != NSERROR_OK) {
-   fb_warn_user(messages_get_errorcode(ret), 0);
+   fb_warn_user("Errorcode:", messages_get_errorcode(ret));
} else {
framebuffer_run();
 


-- 
NetSurf Browser
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf: branch master updated. release/3.9-676-g1a836c9

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/1a836c9bc43b60384437bb6e9408b745691b326f
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/1a836c9bc43b60384437bb6e9408b745691b326f
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/1a836c9bc43b60384437bb6e9408b745691b326f

The branch, master has been updated
   via  1a836c9bc43b60384437bb6e9408b745691b326f (commit)
  from  fcbc710ce5b3af8f9c19ad960f41efddda352cec (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=1a836c9bc43b60384437bb6e9408b745691b326f
commit 1a836c9bc43b60384437bb6e9408b745691b326f
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

fetchers/curl: Move report_certs function outside WITH_OPENSSL

Signed-off-by: Daniel Silverstone 

diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index f7b3b04..f9cafae 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -686,27 +686,6 @@ fetch_curl_store_certs_in_cache(struct curl_fetch_info *f)
 }
 
 /**
- * Report the certificate information in the fetch to the users
- */
-static void
-fetch_curl_report_certs_upstream(struct curl_fetch_info *f)
-{
-   fetch_msg msg;
-   struct cert_chain *chain;
-
-   chain = hashmap_lookup(curl_fetch_ssl_hashmap, f->url);
-
-   if (chain != NULL) {
-   msg.type = FETCH_CERTS;
-   msg.data.chain = chain;
-
-   fetch_send_callback(&msg, f->fetch_handle);
-   }
-
-   f->sent_ssl_chain = true;
-}
-
-/**
  * OpenSSL Certificate verification callback
  *
  * Called for each certificate in a chain being verified. OpenSSL
@@ -866,6 +845,28 @@ fetch_curl_sslctxfun(CURL *curl_handle, void *_sslctx, 
void *parm)
 
 
 /**
+ * Report the certificate information in the fetch to the users
+ */
+static void
+fetch_curl_report_certs_upstream(struct curl_fetch_info *f)
+{
+   fetch_msg msg;
+   struct cert_chain *chain;
+
+   chain = hashmap_lookup(curl_fetch_ssl_hashmap, f->url);
+
+   if (chain != NULL) {
+   msg.type = FETCH_CERTS;
+   msg.data.chain = chain;
+
+   fetch_send_callback(&msg, f->fetch_handle);
+   }
+
+   f->sent_ssl_chain = true;
+}
+
+
+/**
  * Set options specific for a fetch.
  *
  * \param f The fetch to set options on.


---

Summary of changes:
 content/fetchers/curl.c |   43 ++-
 1 file changed, 22 insertions(+), 21 deletions(-)

diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index f7b3b04..f9cafae 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -686,27 +686,6 @@ fetch_curl_store_certs_in_cache(struct curl_fetch_info *f)
 }
 
 /**
- * Report the certificate information in the fetch to the users
- */
-static void
-fetch_curl_report_certs_upstream(struct curl_fetch_info *f)
-{
-   fetch_msg msg;
-   struct cert_chain *chain;
-
-   chain = hashmap_lookup(curl_fetch_ssl_hashmap, f->url);
-
-   if (chain != NULL) {
-   msg.type = FETCH_CERTS;
-   msg.data.chain = chain;
-
-   fetch_send_callback(&msg, f->fetch_handle);
-   }
-
-   f->sent_ssl_chain = true;
-}
-
-/**
  * OpenSSL Certificate verification callback
  *
  * Called for each certificate in a chain being verified. OpenSSL
@@ -866,6 +845,28 @@ fetch_curl_sslctxfun(CURL *curl_handle, void *_sslctx, 
void *parm)
 
 
 /**
+ * Report the certificate information in the fetch to the users
+ */
+static void
+fetch_curl_report_certs_upstream(struct curl_fetch_info *f)
+{
+   fetch_msg msg;
+   struct cert_chain *chain;
+
+   chain = hashmap_lookup(curl_fetch_ssl_hashmap, f->url);
+
+   if (chain != NULL) {
+   msg.type = FETCH_CERTS;
+   msg.data.chain = chain;
+
+   fetch_send_callback(&msg, f->fetch_handle);
+   }
+
+   f->sent_ssl_chain = true;
+}
+
+
+/**
  * Set options specific for a fetch.
  *
  * \param f The fetch to set options on.


-- 
NetSurf Browser
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf: branch master updated. release/3.9-679-ga35f35f

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/a35f35fec0fb7f441755107e3712fe9781134b41
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/a35f35fec0fb7f441755107e3712fe9781134b41
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/a35f35fec0fb7f441755107e3712fe9781134b41

The branch, master has been updated
   via  a35f35fec0fb7f441755107e3712fe9781134b41 (commit)
   via  278ddb34b39252751788113e4971f2eda1e8d79b (commit)
   via  18c10ea706584e2432f120c4ea7c187f5c957c5f (commit)
  from  1a836c9bc43b60384437bb6e9408b745691b326f (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=a35f35fec0fb7f441755107e3712fe9781134b41
commit a35f35fec0fb7f441755107e3712fe9781134b41
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

frontends/gtk: Defocus search before selecting all in relevant core windows

Signed-off-by: Daniel Silverstone 

diff --git a/frontends/gtk/cookies.c b/frontends/gtk/cookies.c
index 1f7833c..d787e35 100644
--- a/frontends/gtk/cookies.c
+++ b/frontends/gtk/cookies.c
@@ -98,6 +98,8 @@ MENUHANDLER(delete_selected)
 
 MENUHANDLER(delete_all)
 {
+   cookie_manager_keypress(NS_KEY_ESCAPE);
+   cookie_manager_keypress(NS_KEY_ESCAPE);
cookie_manager_keypress(NS_KEY_SELECT_ALL);
cookie_manager_keypress(NS_KEY_DELETE_LEFT);
return TRUE;
@@ -105,6 +107,8 @@ MENUHANDLER(delete_all)
 
 MENUHANDLER(select_all)
 {
+   cookie_manager_keypress(NS_KEY_ESCAPE);
+   cookie_manager_keypress(NS_KEY_ESCAPE);
cookie_manager_keypress(NS_KEY_SELECT_ALL);
return TRUE;
 }
diff --git a/frontends/gtk/global_history.c b/frontends/gtk/global_history.c
index f204168..33032e5 100644
--- a/frontends/gtk/global_history.c
+++ b/frontends/gtk/global_history.c
@@ -107,6 +107,8 @@ MENUHANDLER(delete_selected)
 
 MENUHANDLER(delete_all)
 {
+   global_history_keypress(NS_KEY_ESCAPE);
+   global_history_keypress(NS_KEY_ESCAPE);
global_history_keypress(NS_KEY_SELECT_ALL);
global_history_keypress(NS_KEY_DELETE_LEFT);
return TRUE;
@@ -114,12 +116,16 @@ MENUHANDLER(delete_all)
 
 MENUHANDLER(select_all)
 {
+   global_history_keypress(NS_KEY_ESCAPE);
+   global_history_keypress(NS_KEY_ESCAPE);
global_history_keypress(NS_KEY_SELECT_ALL);
return TRUE;
 }
 
 MENUHANDLER(clear_selection)
 {
+   global_history_keypress(NS_KEY_ESCAPE);
+   global_history_keypress(NS_KEY_ESCAPE);
global_history_keypress(NS_KEY_CLEAR_SELECTION);
return TRUE;
 }
diff --git a/frontends/gtk/hotlist.c b/frontends/gtk/hotlist.c
index 843e477..b047dc6 100644
--- a/frontends/gtk/hotlist.c
+++ b/frontends/gtk/hotlist.c
@@ -170,6 +170,8 @@ MENUHANDLER(delete_selected)
 
 MENUHANDLER(select_all)
 {
+   hotlist_keypress(NS_KEY_ESCAPE);
+   hotlist_keypress(NS_KEY_ESCAPE);
hotlist_keypress(NS_KEY_SELECT_ALL);
return TRUE;
 }


commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=278ddb34b39252751788113e4971f2eda1e8d79b
commit 278ddb34b39252751788113e4971f2eda1e8d79b
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

treeview: Do not cancel selection when mouseovering search box

Signed-off-by: Daniel Silverstone 

diff --git a/desktop/treeview.c b/desktop/treeview.c
index 1d632bb..6ef922a 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -4674,9 +4674,7 @@ treeview_mouse_action(treeview *tree, browser_mouse_state 
mouse, int x, int y)
textarea_mouse_action(tree->edit.textarea, mouse,
  x - tree->edit.x, y - tree->edit.y);
return;
-   } else if (tree->drag.type == TV_DRAG_SEARCH ||
-   (y < search_height &&
-tree->drag.type == TV_DRAG_NONE)) {
+   } else if (tree->drag.type == TV_DRAG_SEARCH) {
if (tree->search.active == false) {
tree->search.active = true;
if (treeview_clear_selection(tree, &r)) {
@@ -4688,6 +4686,16 @@ treeview_mouse_action(treeview *tree, 
browser_mouse_state mouse, int x, int y)
y);
return;
} else if (mouse & (BROWSER_MOUSE_PRESS_1 | BROWSER_MOUSE_PRESS_2) &&
+  y < search_height && tree->search.active == false) {
+   tree->search.active = true;
+   if (treeview_clear_selection(tree, &r)) {
+   treeview__cw_invalidate_area(tree, &r);
+   }
+   textarea_mouse_action(tree->search.textarea, mouse,
+   x - tree_g.window_padding - tree_g.icon_size,
+   y);
+  

netsurf-wiki: branch master updated. 767ca39161c5334493a88340f22ba88735594a20

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf-wiki.git/shortlog/767ca39161c5334493a88340f22ba88735594a20
...commit 
http://git.netsurf-browser.org/netsurf-wiki.git/commit/767ca39161c5334493a88340f22ba88735594a20
...tree 
http://git.netsurf-browser.org/netsurf-wiki.git/tree/767ca39161c5334493a88340f22ba88735594a20

The branch, master has been updated
   via  767ca39161c5334493a88340f22ba88735594a20 (commit)
  from  ff08339b39676f1cef91ff7d0e1e730cd513f70b (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-wiki.git/commit/?id=767ca39161c5334493a88340f22ba88735594a20
commit 767ca39161c5334493a88340f22ba88735594a20
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

dev-may-2020: Things Daniel has done

Signed-off-by: Daniel Silverstone 

diff --git a/developer-weekend/may-2020.mdwn b/developer-weekend/may-2020.mdwn
index 7bca447..606337b 100644
--- a/developer-weekend/may-2020.mdwn
+++ b/developer-weekend/may-2020.mdwn
@@ -38,14 +38,14 @@ Pathway to 3.10
 ===
 
 * Complete RISC OS frontend support for pageinfo core window
-* Add url to about:query/ssl to launch cert viewer (the link needs _blank)
-* excise sslcert_viewer entirely
-  * Monkey doesn't need it, excise from farmer and driver
-  * Remove cert_verify from the `gui_misc_table`
+* Add url to about:query/ssl to launch cert viewer (the link needs _blank) 
(Daniel) **DONE**
+* excise sslcert_viewer entirely (Daniel) **DONE**
+  * Monkey doesn't need it, excise from farmer and driver **DONE**
+  * Remove cert_verify from the `gui_misc_table` **DONE**
   * Email to developer list to say this has been done and that frontends
 will need to add padlock and page_info support
-* [[!bug 2752]] Building without openssl: acknowledged and assigned to Daniel.
-* [[!bug 2754]] GTK history delete menu options: acknowledged and assigned to 
Daniel.
+* [[!bug 2752]] Building without openssl: acknowledged and assigned to Daniel. 
**DONE**
+* [[!bug 2754]] GTK history delete menu options: acknowledged and assigned to 
Daniel. **DONE**
 * [[!bug 2753]] RISC OS URL entry bug needs fixed.
 
 


---

Summary of changes:
 developer-weekend/may-2020.mdwn |   12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/developer-weekend/may-2020.mdwn b/developer-weekend/may-2020.mdwn
index 7bca447..606337b 100644
--- a/developer-weekend/may-2020.mdwn
+++ b/developer-weekend/may-2020.mdwn
@@ -38,14 +38,14 @@ Pathway to 3.10
 ===
 
 * Complete RISC OS frontend support for pageinfo core window
-* Add url to about:query/ssl to launch cert viewer (the link needs _blank)
-* excise sslcert_viewer entirely
-  * Monkey doesn't need it, excise from farmer and driver
-  * Remove cert_verify from the `gui_misc_table`
+* Add url to about:query/ssl to launch cert viewer (the link needs _blank) 
(Daniel) **DONE**
+* excise sslcert_viewer entirely (Daniel) **DONE**
+  * Monkey doesn't need it, excise from farmer and driver **DONE**
+  * Remove cert_verify from the `gui_misc_table` **DONE**
   * Email to developer list to say this has been done and that frontends
 will need to add padlock and page_info support
-* [[!bug 2752]] Building without openssl: acknowledged and assigned to Daniel.
-* [[!bug 2754]] GTK history delete menu options: acknowledged and assigned to 
Daniel.
+* [[!bug 2752]] Building without openssl: acknowledged and assigned to Daniel. 
**DONE**
+* [[!bug 2754]] GTK history delete menu options: acknowledged and assigned to 
Daniel. **DONE**
 * [[!bug 2753]] RISC OS URL entry bug needs fixed.
 
 


-- 
NetSurf Developer Wiki Backing Store
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf-wiki: branch master updated. bbba52156506e2242c7e0cd3e420bf7070d3a2de

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf-wiki.git/shortlog/bbba52156506e2242c7e0cd3e420bf7070d3a2de
...commit 
http://git.netsurf-browser.org/netsurf-wiki.git/commit/bbba52156506e2242c7e0cd3e420bf7070d3a2de
...tree 
http://git.netsurf-browser.org/netsurf-wiki.git/tree/bbba52156506e2242c7e0cd3e420bf7070d3a2de

The branch, master has been updated
   via  bbba52156506e2242c7e0cd3e420bf7070d3a2de (commit)
  from  767ca39161c5334493a88340f22ba88735594a20 (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-wiki.git/commit/?id=bbba52156506e2242c7e0cd3e420bf7070d3a2de
commit bbba52156506e2242c7e0cd3e420bf7070d3a2de
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

dev-may-2020: Things Daniel has done

Signed-off-by: Daniel Silverstone 

diff --git a/developer-weekend/may-2020.mdwn b/developer-weekend/may-2020.mdwn
index 606337b..e5b84fe 100644
--- a/developer-weekend/may-2020.mdwn
+++ b/developer-weekend/may-2020.mdwn
@@ -43,7 +43,7 @@ Pathway to 3.10
   * Monkey doesn't need it, excise from farmer and driver **DONE**
   * Remove cert_verify from the `gui_misc_table` **DONE**
   * Email to developer list to say this has been done and that frontends
-will need to add padlock and page_info support
+will need to add padlock and page_info support **DONE**
 * [[!bug 2752]] Building without openssl: acknowledged and assigned to Daniel. 
**DONE**
 * [[!bug 2754]] GTK history delete menu options: acknowledged and assigned to 
Daniel. **DONE**
 * [[!bug 2753]] RISC OS URL entry bug needs fixed.


---

Summary of changes:
 developer-weekend/may-2020.mdwn |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/developer-weekend/may-2020.mdwn b/developer-weekend/may-2020.mdwn
index 606337b..e5b84fe 100644
--- a/developer-weekend/may-2020.mdwn
+++ b/developer-weekend/may-2020.mdwn
@@ -43,7 +43,7 @@ Pathway to 3.10
   * Monkey doesn't need it, excise from farmer and driver **DONE**
   * Remove cert_verify from the `gui_misc_table` **DONE**
   * Email to developer list to say this has been done and that frontends
-will need to add padlock and page_info support
+will need to add padlock and page_info support **DONE**
 * [[!bug 2752]] Building without openssl: acknowledged and assigned to Daniel. 
**DONE**
 * [[!bug 2754]] GTK history delete menu options: acknowledged and assigned to 
Daniel. **DONE**
 * [[!bug 2753]] RISC OS URL entry bug needs fixed.


-- 
NetSurf Developer Wiki Backing Store
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


libhubbub: branch master updated. release/0.3.6-3-g595df53

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/libhubbub.git/shortlog/595df53b981454939c903182248bd9d983f380b3
...commit 
http://git.netsurf-browser.org/libhubbub.git/commit/595df53b981454939c903182248bd9d983f380b3
...tree 
http://git.netsurf-browser.org/libhubbub.git/tree/595df53b981454939c903182248bd9d983f380b3

The branch, master has been updated
   via  595df53b981454939c903182248bd9d983f380b3 (commit)
   via  4d0a0f5290c8dcc31fef17aaed0788bb1309f9bd (commit)
  from  d7e13fb32073aac9aba97fa6021da064302fcd72 (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/libhubbub.git/commit/?id=595df53b981454939c903182248bd9d983f380b3
commit 595df53b981454939c903182248bd9d983f380b3
Author: Michael Drake 
Commit: Michael Drake 

Treebuilder: Add some new element names.

diff --git a/src/treebuilder/in_body.c b/src/treebuilder/in_body.c
index 5157e66..0e4184c 100644
--- a/src/treebuilder/in_body.c
+++ b/src/treebuilder/in_body.c
@@ -267,9 +267,10 @@ hubbub_error process_start_tag(hubbub_treebuilder 
*treebuilder,
type == DATAGRID || type == DETAILS ||
type == DIALOG || type == DIR ||
type == DIV || type == DL || type == FIELDSET ||
-   type == FIGURE || type == FOOTER ||
-   type == HEADER || type == MENU || type == NAV ||
-   type == OL || type == P || type == SECTION ||
+   type == FIGCAPTION || type == FIGURE ||
+   type == FOOTER || type == HEADER || type == MAIN ||
+   type == MENU || type == NAV || type == OL ||
+   type == P || type == SECTION || type == SUMMARY ||
type == UL) {
err = process_container_in_body(treebuilder, token);
} else if (type == H1 || type == H2 || type == H3 ||
@@ -430,12 +431,14 @@ hubbub_error process_end_tag(hubbub_treebuilder 
*treebuilder,
 * that wasn't ignored, reprocess this token */
err = process_0body_in_body(treebuilder);
} else if (type == ADDRESS || type == ARTICLE || type == ASIDE ||
-   type == BLOCKQUOTE || type == CENTER || type == DIR || 
-   type == DATAGRID || type == DIV || type == DL || 
-   type == FIELDSET || type == FOOTER || type == HEADER ||
-   type == LISTING || type == MENU || type == NAV ||
-   type == OL || type == PRE || type == SECTION ||
-   type == UL) {
+   type == BLOCKQUOTE || type == CENTER ||
+   type == DETAILS || type == DIALOG || type == DIR ||
+   type == DATAGRID || type == DIV || type == DL ||
+   type == FIELDSET || type == FIGCAPTION ||
+   type == FIGURE || type == FOOTER || type == HEADER ||
+   type == LISTING || type == MAIN|| type == MENU ||
+   type == NAV || type == OL || type == PRE ||
+   type == SECTION || type == SUMMARY || type == UL) {
err = process_0container_in_body(treebuilder, type);
} else if (type == FORM) {
err = process_0form_in_body(treebuilder);
diff --git a/src/treebuilder/internal.h b/src/treebuilder/internal.h
index 58c21d6..3c112c9 100644
--- a/src/treebuilder/internal.h
+++ b/src/treebuilder/internal.h
@@ -15,12 +15,12 @@ typedef enum
 /* Special */
ADDRESS, AREA, ARTICLE, ASIDE, BASE, BASEFONT, BGSOUND, BLOCKQUOTE,
BODY, BR, CENTER, COL, COLGROUP, COMMAND, DATAGRID, DD, DETAILS,
-   DIALOG, DIR, DIV, DL, DT, EMBED, FIELDSET, FIGURE, FOOTER, FORM, FRAME,
-   FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HEADER, HR, IFRAME, IMAGE, IMG,
-   INPUT, ISINDEX, LI, LINK, LISTING, MENU, META, NAV, NOEMBED, NOFRAMES, 
-   NOSCRIPT, OL, OPTGROUP, OPTION, P, PARAM, PLAINTEXT, PRE, SCRIPT, 
-   SECTION, SELECT, SPACER, STYLE, TBODY, TEXTAREA, TFOOT, THEAD, TITLE, 
-   TR, UL, WBR,
+   DIALOG, DIR, DIV, DL, DT, EMBED, FIELDSET, FIGCAPTION, FIGURE, FOOTER,
+   FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HEADER, HR, IFRAME,
+   IMAGE, IMG, INPUT, ISINDEX, LI, LINK, LISTING, MAIN, MENU, META, NAV,
+   NOEMBED, NOFRAMES, NOSCRIPT, OL, OPTGROUP, OPTION, P, PARAM, PLAINTEXT,
+   PRE, SCRIPT, SECTION, SELECT, SPACER, STYLE, SUMMARY, TBODY, TEXTAREA,
+   TFOOT, THEAD, TITLE, TR, UL, WBR,
 /* Scoping */
APPLET, BUTTON, CAPTION, HTML, MARQUEE, OBJECT, TABLE, TD, TH,
 /* Formatting */
diff --git a/src/treebuilder/treebuilder.c b/src/treebuilder/treebuilder.c
index 0c171e3..b84ca11 100644
--- a/src/treebuild

netsurf-wiki: branch master updated. 3ac6b97bcf496380ff2bfed221c29a5bfe3a6b07

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf-wiki.git/shortlog/3ac6b97bcf496380ff2bfed221c29a5bfe3a6b07
...commit 
http://git.netsurf-browser.org/netsurf-wiki.git/commit/3ac6b97bcf496380ff2bfed221c29a5bfe3a6b07
...tree 
http://git.netsurf-browser.org/netsurf-wiki.git/tree/3ac6b97bcf496380ff2bfed221c29a5bfe3a6b07

The branch, master has been updated
   via  3ac6b97bcf496380ff2bfed221c29a5bfe3a6b07 (commit)
  from  bbba52156506e2242c7e0cd3e420bf7070d3a2de (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-wiki.git/commit/?id=3ac6b97bcf496380ff2bfed221c29a5bfe3a6b07
commit 3ac6b97bcf496380ff2bfed221c29a5bfe3a6b07
Author: Michael Drake 
Commit: Michael Drake 

Update things done.

diff --git a/developer-weekend/may-2020.mdwn b/developer-weekend/may-2020.mdwn
index e5b84fe..11931b2 100644
--- a/developer-weekend/may-2020.mdwn
+++ b/developer-weekend/may-2020.mdwn
@@ -93,7 +93,8 @@ Mostly individual activity here
 Michael
 ---
 
-* 
+* Rebuild on Ubuntu 20.04 and fixed some new compiler warnings.
+* Fixed [[!bug 2748]]: Updated Hubbub to know about some more elements.
 
 Daniel
 --


---

Summary of changes:
 developer-weekend/may-2020.mdwn |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/developer-weekend/may-2020.mdwn b/developer-weekend/may-2020.mdwn
index e5b84fe..11931b2 100644
--- a/developer-weekend/may-2020.mdwn
+++ b/developer-weekend/may-2020.mdwn
@@ -93,7 +93,8 @@ Mostly individual activity here
 Michael
 ---
 
-* 
+* Rebuild on Ubuntu 20.04 and fixed some new compiler warnings.
+* Fixed [[!bug 2748]]: Updated Hubbub to know about some more elements.
 
 Daniel
 --


-- 
NetSurf Developer Wiki Backing Store
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf: branch tlsa/dpi deleted. release/3.8-198-gd1bf9ca

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/

The branch, tlsa/dpi has been deleted
   was  d1bf9cad3d2f789e8375a8659e6633eadaf70d8b

---
d1bf9cad3d2f789e8375a8659e6633eadaf70d8b Convert css_len2pt and css_len2px for 
CSS pixels.
---


-- 
NetSurf Browser
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf: branch tlsa/page-info deleted. release/3.9-532-gc7860df

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/

The branch, tlsa/page-info has been deleted
   was  c7860df46f3731044c15c4f7db0a91eadc2aca53

---
c7860df46f3731044c15c4f7db0a91eadc2aca53 GTK: Initial page-info display.
---


-- 
NetSurf Browser
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf: branch tlsa/ro-cw-scroll deleted. release/3.9-66-g2000219

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/

The branch, tlsa/ro-cw-scroll has been deleted
   was  20002193a715586b62240a603d975a2d523699af

---
20002193a715586b62240a603d975a2d523699af RISC OS: Another attemt to get scroll 
visible working.
---


-- 
NetSurf Browser
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf: branch tlsa/cleanup-scale deleted. release/3.9-20-g5545782

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/

The branch, tlsa/cleanup-scale has been deleted
   was  5545782a6c23b0df532567499671ceb5c035ebc0

---
5545782a6c23b0df532567499671ceb5c035ebc0 GTK: Update for unscaled bw invalidate 
rectangle.
---


-- 
NetSurf Browser
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf: branch tlsa/selection-search-refactor deleted. release/3.0-90-g7a7043f

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/

The branch, tlsa/selection-search-refactor has been deleted
   was  7a7043f90650c3fd4f3fc2778619743aafc8d335

---
7a7043f90650c3fd4f3fc2778619743aafc8d335 Merge branch 'master' of 
git://git.netsurf-browser.org/netsurf into tlsa/selection-search-refactor

---


-- 
NetSurf Browser
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf: branch master updated. release/3.9-684-g334b498

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/334b498d5ced611bd7e45a1c6aa951559faac616
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/334b498d5ced611bd7e45a1c6aa951559faac616
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/334b498d5ced611bd7e45a1c6aa951559faac616

The branch, master has been updated
   via  334b498d5ced611bd7e45a1c6aa951559faac616 (commit)
   via  937894d6547dd8cb3a7c4c81cba5149e38bcf8bd (commit)
   via  b39f418bca9d0421eca127a11a0fb65bd2c37459 (commit)
   via  a5572cde76b7a95d670fad3b308e0c1d5c7f1f18 (commit)
   via  4d927ff40937bbd867bf09bcdff3bdb3107c777f (commit)
  from  a35f35fec0fb7f441755107e3712fe9781134b41 (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=334b498d5ced611bd7e45a1c6aa951559faac616
commit 334b498d5ced611bd7e45a1c6aa951559faac616
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

html: Handle canvas in redraw

Signed-off-by: Daniel Silverstone 

diff --git a/content/handlers/html/redraw.c b/content/handlers/html/redraw.c
index aa99782..7c96c90 100644
--- a/content/handlers/html/redraw.c
+++ b/content/handlers/html/redraw.c
@@ -40,6 +40,7 @@
 #include "utils/messages.h"
 #include "utils/utils.h"
 #include "utils/nsoption.h"
+#include "utils/corestrings.h"
 #include "netsurf/content.h"
 #include "netsurf/browser_window.h"
 #include "netsurf/plotters.h"
@@ -1242,6 +1243,9 @@ bool html_redraw_box(const html_content *html, struct box 
*box,
css_computed_clip_rect css_rect;
enum css_overflow_e overflow_x = CSS_OVERFLOW_VISIBLE;
enum css_overflow_e overflow_y = CSS_OVERFLOW_VISIBLE;
+   dom_exception exc;
+   dom_html_element_type tag_type;
+
 
if (html_redraw_printing && (box->flags & PRINTED))
return true;
@@ -1743,6 +1747,15 @@ bool html_redraw_box(const html_content *html, struct 
box *box,
return false;
}
 
+   if (box->node != NULL) {
+   exc = dom_html_element_get_tag_type(box->node, &tag_type);
+   if (exc != DOM_NO_ERR) {
+   tag_type = DOM_HTML_ELEMENT_TYPE__UNKNOWN;
+   }
+   } else {
+   tag_type = DOM_HTML_ELEMENT_TYPE__UNKNOWN;
+   }
+
if (box->object && width != 0 && height != 0) {
struct content_redraw_data obj_data;
 
@@ -1796,7 +1809,22 @@ bool html_redraw_box(const html_content *html, struct 
box *box,
obj, sizeof(obj) - 1) != NSERROR_OK)
return false;
}
-
+   } else if (tag_type == DOM_HTML_ELEMENT_TYPE_CANVAS &&
+  box->node != NULL &&
+  box->flags & REPLACE_DIM) {
+   /* Canvas to draw */
+   struct bitmap *bitmap = NULL;
+   exc = dom_node_get_user_data(box->node,
+
corestring_dom___ns_key_canvas_node_data,
+&bitmap);
+   if (exc != DOM_NO_ERR) {
+   bitmap = NULL;
+   }
+   if (bitmap != NULL &&
+   ctx->plot->bitmap(ctx, bitmap, x + padding_left, y + 
padding_top,
+ width, height, current_background_color,
+ BITMAPF_NONE) != NSERROR_OK)
+   return false;
} else if (box->iframe) {
/* Offset is passed to browser window redraw unscaled */
browser_window_redraw(box->iframe,


commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=937894d6547dd8cb3a7c4c81cba5149e38bcf8bd
commit 937894d6547dd8cb3a7c4c81cba5149e38bcf8bd
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

html: set up canvas box properly

Signed-off-by: Daniel Silverstone 

diff --git a/content/handlers/html/box_special.c 
b/content/handlers/html/box_special.c
index 23cfeec..2332316 100644
--- a/content/handlers/html/box_special.c
+++ b/content/handlers/html/box_special.c
@@ -824,6 +824,13 @@ box_canvas(dom_node *n,
}
*convert_children = false;
 
+   if (box->style &&
+   ns_computed_display(box->style, box_is_root(n)) == CSS_DISPLAY_NONE)
+   return true;
+
+   /* This is replaced content */
+   box->flags |= IS_REPLACED | REPLACE_DIM;
+
return true;
 }
 


commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=b39f418bca9d0421eca127a11a0fb65bd2c37459
commit b39f418bca9d0421eca127a11a0fb65bd2c37459
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

html: Add canvas node handling in dom_event

Signed-of

netsurf: branch master updated. release/3.9-685-g4d89108

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/4d89108072ffc2e79e9112eaed1c73216354d93e
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/4d89108072ffc2e79e9112eaed1c73216354d93e
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/4d89108072ffc2e79e9112eaed1c73216354d93e

The branch, master has been updated
   via  4d89108072ffc2e79e9112eaed1c73216354d93e (commit)
  from  334b498d5ced611bd7e45a1c6aa951559faac616 (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=4d89108072ffc2e79e9112eaed1c73216354d93e
commit 4d89108072ffc2e79e9112eaed1c73216354d93e
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

html: Don't both building a bitmap if we're not rendering it

Signed-off-by: Daniel Silverstone 

diff --git a/content/handlers/html/dom_event.c 
b/content/handlers/html/dom_event.c
index 5470f29..b874d71 100644
--- a/content/handlers/html/dom_event.c
+++ b/content/handlers/html/dom_event.c
@@ -184,6 +184,13 @@ static nserror html_process_inserted_canvas(html_content 
*htmlc, dom_node *node)
unsigned long width = 300, height = 150;
struct bitmap *bitmap, *oldbitmap = NULL;
 
+   if (!htmlc->enable_scripting) {
+   /* No point processing this element, we're not going to
+* render it
+*/
+   return NSERROR_OK;
+   }
+
exc = dom_element_get_attribute(node,
corestring_dom_width,
&width_s);


---

Summary of changes:
 content/handlers/html/dom_event.c |7 +++
 1 file changed, 7 insertions(+)

diff --git a/content/handlers/html/dom_event.c 
b/content/handlers/html/dom_event.c
index 5470f29..b874d71 100644
--- a/content/handlers/html/dom_event.c
+++ b/content/handlers/html/dom_event.c
@@ -184,6 +184,13 @@ static nserror html_process_inserted_canvas(html_content 
*htmlc, dom_node *node)
unsigned long width = 300, height = 150;
struct bitmap *bitmap, *oldbitmap = NULL;
 
+   if (!htmlc->enable_scripting) {
+   /* No point processing this element, we're not going to
+* render it
+*/
+   return NSERROR_OK;
+   }
+
exc = dom_element_get_attribute(node,
corestring_dom_width,
&width_s);


-- 
NetSurf Browser
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


nsgenbind: branch master updated. release/0.7-1-g819943b

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/nsgenbind.git/shortlog/819943b7eaa3de48d80a20008250b9e2ea911aaa
...commit 
http://git.netsurf-browser.org/nsgenbind.git/commit/819943b7eaa3de48d80a20008250b9e2ea911aaa
...tree 
http://git.netsurf-browser.org/nsgenbind.git/tree/819943b7eaa3de48d80a20008250b9e2ea911aaa

The branch, master has been updated
   via  819943b7eaa3de48d80a20008250b9e2ea911aaa (commit)
  from  81198cd635beb60913d26878ce51c48e9d73c624 (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/nsgenbind.git/commit/?id=819943b7eaa3de48d80a20008250b9e2ea911aaa
commit 819943b7eaa3de48d80a20008250b9e2ea911aaa
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

duktape: Guess at and support more than pointer init arguments

Signed-off-by: Daniel Silverstone 

diff --git a/src/duk-libdom-interface.c b/src/duk-libdom-interface.c
index f6be419..e10b734 100644
--- a/src/duk-libdom-interface.c
+++ b/src/duk-libdom-interface.c
@@ -417,12 +417,28 @@ output_interface_constructor(struct opctx *outc, struct 
ir_entry *interfacee)
 outputf(outc,
 "\t%s_%s___init(ctx, priv",
 DLPFX, interfacee->class_name);
+
 for (init_argc = 1;
  init_argc <= interfacee->class_init_argc;
  init_argc++) {
-outputf(outc,
-", duk_get_pointer(ctx, %d)",
-init_argc);
+   switch (interfacee->class_init_argt[init_argc-1]) {
+   case IR_INIT_ARG_BOOL:
+   outputf(outc,
+   ", duk_get_bool(ctx, %d)",
+   init_argc);
+   break;
+   case IR_INIT_ARG_UNSIGNED:
+   case IR_INIT_ARG_INT:
+   outputf(outc,
+   ", duk_get_int(ctx, %d)",
+   init_argc);
+   break;
+   case IR_INIT_ARG_POINTER:
+   outputf(outc,
+   ", duk_get_pointer(ctx, %d)",
+   init_argc);
+   break;
+   }
 }
 outputf(outc,
 ");\n");
@@ -557,6 +573,46 @@ output_interface_inherit_init(struct opctx *outc,
 return 0;
 }
 
+static enum ir_init_argtype
+guess_argtype_from(struct genbind_node *param_node)
+{
+const char *type_cdata = NULL;
+struct genbind_node *typename_node;
+   bool unsigned_ = false;
+   bool int_ = false;
+   bool bool_ = false;
+
+typename_node = 
genbind_node_find_type(genbind_node_getnode(param_node),
+   NULL,
+   GENBIND_NODE_TYPE_NAME);
+while (typename_node != NULL) {
+type_cdata = genbind_node_gettext(typename_node);
+   if (strcmp(type_cdata, "unsigned") == 0) {
+   unsigned_ = true;
+   } else if (strcmp(type_cdata, "int") == 0) {
+   int_ = true;
+   } else if (strcmp(type_cdata, "bool") == 0) {
+   bool_ = true;
+   }
+typename_node = genbind_node_find_type(
+genbind_node_getnode(param_node),
+typename_node,
+GENBIND_NODE_TYPE_NAME);
+   }
+
+   if (type_cdata[0] == '*') {
+   return IR_INIT_ARG_POINTER;
+   } else if (unsigned_) {
+   return IR_INIT_ARG_UNSIGNED;
+   } else if (int_) {
+   return IR_INIT_ARG_INT;
+   } else if (bool_) {
+   return IR_INIT_ARG_BOOL;
+   }
+
+   /* If we have no better idea do this */
+   return IR_INIT_ARG_POINTER;
+}
 
 static int
 output_interface_init_declaration(struct opctx *outc,
@@ -575,6 +631,7 @@ output_interface_init_declaration(struct opctx *outc,
 
 /* count the number of arguments on the initializer */
 interfacee->class_init_argc = 0;
+   interfacee->class_init_argt = NULL;
 
 /* output the paramters on the method (if any) */
 param_node = genbind_node_find_type(
@@ -582,6 +639,10 @@ output_interface_init_declaration(struct opctx *outc,
 NULL, GENBIND_NODE_TYPE_PARAMETER);
 while (param_node != NULL) {
 interfacee->class_init_argc++;
+   interfacee->class_init_argt = 
realloc(interfacee->class_init_argt,
+ 
interfacee->class_init_argc * sizeof(enum ir_init_argtype));
+   interfacee->class_init_argt[interfacee->class_init_argc - 1] =
+  

netsurf: branch master updated. release/3.9-691-g244c49d

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/244c49df26ba943dc7cef60413126fbaf52a4428
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/244c49df26ba943dc7cef60413126fbaf52a4428
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/244c49df26ba943dc7cef60413126fbaf52a4428

The branch, master has been updated
   via  244c49df26ba943dc7cef60413126fbaf52a4428 (commit)
  from  d090f016ad753d41077e616db2c17bf1bf1408ec (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=244c49df26ba943dc7cef60413126fbaf52a4428
commit 244c49df26ba943dc7cef60413126fbaf52a4428
Author: Chris Young 
Commit: Chris Young 

Amiga: Add page info window
Currently untested but builds OK

diff --git a/frontends/amiga/Makefile b/frontends/amiga/Makefile
index 17af11e..99745c9 100644
--- a/frontends/amiga/Makefile
+++ b/frontends/amiga/Makefile
@@ -53,7 +53,7 @@ S_FRONTEND := gui.c history.c hotlist.c schedule.c file.c 
\
stringview/stringview.c stringview/urlhistory.c rtg.c   \
agclass/amigaguide_class.c os3support.c font_diskfont.c \
selectmenu.c hash/xxhash.c font_cache.c font_bullet.c   \
-   nsoption.c corewindow.c gui_menu.c
+   nsoption.c corewindow.c gui_menu.c pageinfo.c
 
 # This is the final source build list
 # Note this is deliberately *not* expanded here as common and image
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c
index bb7478c..1dde687 100644
--- a/frontends/amiga/gui.c
+++ b/frontends/amiga/gui.c
@@ -1,5 +1,5 @@
 /*
- * Copyright 2008-2019 Chris Young 
+ * Copyright 2008-2020 Chris Young 
  *
  * This file is part of NetSurf, http://www.netsurf-browser.org/
  *
@@ -152,6 +152,7 @@
 #include "amiga/menu.h"
 #include "amiga/misc.h"
 #include "amiga/nsoption.h"
+#include "amiga/pageinfo.h"
 #include "amiga/plotters.h"
 #include "amiga/plugin_hack.h"
 #include "amiga/print.h"
@@ -2998,6 +2999,12 @@ static BOOL ami_gui_event(void *w)
ami_gui_history(gwin, false);
break;
 
+   case GID_PAGEINFO:
+   
if(ami_pageinfo_open(gwin->gw->bw) != NSERROR_OK) {
+   NSLOG(netsurf, INFO, 
"Unable to open page info window");
+   }
+   break;
+
case GID_FAVE:
GetAttr(STRINGA_TextVal,
(Object 
*)gwin->objects[GID_URL],
@@ -5019,7 +5026,7 @@ gui_window_create(struct browser_window *bw,
LAYOUT_AddChild, 
g->shared->objects[GID_PAGEINFO] = ButtonObj,
GA_ID, GID_PAGEINFO,
GA_RelVerify, TRUE,
-   GA_ReadOnly, TRUE,
+   GA_ReadOnly, FALSE,
BUTTON_RenderImage, 
g->shared->objects[GID_PAGEINFO_INTERNAL_BM],
ButtonEnd,
CHILD_WeightedWidth, 0,
diff --git a/frontends/amiga/pageinfo.c b/frontends/amiga/pageinfo.c
new file mode 100644
index 000..9a2b049
--- /dev/null
+++ b/frontends/amiga/pageinfo.c
@@ -0,0 +1,282 @@
+/*
+ * Copyright 2020 Chris Young 
+ *
+ * This file is part of NetSurf, http://www.netsurf-browser.org/
+ *
+ * NetSurf is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * NetSurf is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see .
+ */
+
+/**
+ * \file
+ * Amiga implementation of page info using core windows.
+ */
+
+#include 
+#include 
+
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+#include 
+
+#include "utils/log.h"
+#include "netsurf/keypress.h"
+#include "netsurf/plotters.h"
+#include "desktop/page-info.h"
+#include "utils/messages.h"
+#include "utils/nsoption.h"
+
+#include "amiga/corewindow.h"
+#include "ami

netsurf: branch master updated. release/3.9-693-g1223cf0

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/1223cf078648d9a7f38913cf002398e9aff5ddfe
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/1223cf078648d9a7f38913cf002398e9aff5ddfe
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/1223cf078648d9a7f38913cf002398e9aff5ddfe

The branch, master has been updated
   via  1223cf078648d9a7f38913cf002398e9aff5ddfe (commit)
   via  daed553a06716328366f5ea1a2ba09ba4872de1d (commit)
  from  244c49df26ba943dc7cef60413126fbaf52a4428 (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=1223cf078648d9a7f38913cf002398e9aff5ddfe
commit 1223cf078648d9a7f38913cf002398e9aff5ddfe
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

test/js: Include mandelbrot example

Signed-off-by: Daniel Silverstone 

diff --git a/test/js/index.html b/test/js/index.html
index 2abe954..f922872 100644
--- a/test/js/index.html
+++ b/test/js/index.html
@@ -104,6 +104,7 @@
 console.log and 
document.write
 Example from wikipedia
 Check instanceof behaviour
+Canvas/ImageData Mandelbrot ploter
 
 
 
diff --git a/test/js/mandelbrot.html b/test/js/mandelbrot.html
new file mode 100644
index 000..38f77ef
--- /dev/null
+++ b/test/js/mandelbrot.html
@@ -0,0 +1,31 @@
+
+
+JS Mandelbrot
+https://nerget.com/mandelbrot.js";>
+
+var drawn = false;
+var dimension = 2;
+var cx = -dimension / 2 + 0.5;
+var cy = -dimension / 2;
+
+function log(msg) {
+document.getElementById("log").innerHTML += msg + "
"; +} + +function draw() { +var forceSlowPath = document.getElementById('forceSlowPath').checked; +drawMandelbrot(document.getElementById('canvas').getContext('2d'), 200, 200, + cx + dimension / 2, cy + dimension / 2, dimension, 500, forceSlowPath); +drawn = true; +} + + + + + + +Use slow path. +Start + + + commitdiff http://git.netsurf-browser.org/netsurf.git/commit/?id=daed553a06716328366f5ea1a2ba09ba4872de1d commit daed553a06716328366f5ea1a2ba09ba4872de1d Author: Daniel Silverstone Commit: Daniel Silverstone javascript: Support Canvas to a basic level Signed-off-by: Daniel Silverstone diff --git a/content/handlers/javascript/duktape/CanvasRenderingContext2D.bnd b/content/handlers/javascript/duktape/CanvasRenderingContext2D.bnd new file mode 100644 index 000..5acf750 --- /dev/null +++ b/content/handlers/javascript/duktape/CanvasRenderingContext2D.bnd @@ -0,0 +1,232 @@ +/* HTML canvas element rendering context binding using duktape and libdom + * + * Copyright 2020 Daniel Silverstone + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * Released under the terms of the MIT License, + * http://www.opensource.org/licenses/mit-license + */ + +class CanvasRenderingContext2D { + private struct dom_html_element *canvas; + private struct bitmap *bitmap; + private int width; + private int height; + private size_t stride; + prologue %{ +/* prologue */ +#include "desktop/gui_internal.h" +#include "desktop/gui_table.h" +#include "netsurf/bitmap.h" +#include "utils/corestrings.h" +/* It's a smidge naughty of us to read + * this particular header, but we're needing + * to redraw the node we represent + */ +#include "content/handlers/html/private.h" + +static void redraw_node(dom_node *node) +{ + struct box *box = NULL; + html_content *htmlc = NULL; + dom_exception exc; + dom_document *doc; + + exc = dom_node_get_user_data(node, +corestring_dom___ns_key_box_node_data, +&box); + if (exc != DOM_NO_ERR || box == NULL) { + return; + } + + exc = dom_node_get_owner_document(node, &doc); + if (exc != DOM_NO_ERR || doc == NULL) { + return; + } + + exc = dom_node_get_user_data(doc, +corestring_dom___ns_key_html_content_data, +&htmlc); + if (exc != DOM_NO_ERR || htmlc == NULL) { + dom_node_unref(doc); + return; + } + + html__redraw_a_box(htmlc, box); + + dom_node_unref(doc); +} + +/* prologue ends */ +%}; +}; + +init CanvasRenderingContext2D(struct dom_html_element *canvas) +%{ + struct bitmap *bitmap; + dom_exception exc; + + assert(canvas != NULL); + + priv->canvas = canvas; + dom_node_ref(canvas); + + exc = dom_node_get_user_data(canvas, +

netsurf: branch master updated. release/3.9-694-ga55a899

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/a55a899e7450371556bd107178ea47d2deb1fe9f
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/a55a899e7450371556bd107178ea47d2deb1fe9f
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/a55a899e7450371556bd107178ea47d2deb1fe9f

The branch, master has been updated
   via  a55a899e7450371556bd107178ea47d2deb1fe9f (commit)
  from  1223cf078648d9a7f38913cf002398e9aff5ddfe (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=a55a899e7450371556bd107178ea47d2deb1fe9f
commit a55a899e7450371556bd107178ea47d2deb1fe9f
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

FatMessages: Undo encoding change from Chris

Signed-off-by: Daniel Silverstone 

diff --git a/resources/FatMessages b/resources/FatMessages
index a6e21b8..4b0b840 100644
--- a/resources/FatMessages
+++ b/resources/FatMessages
@@ -1888,7 +1888,7 @@ it.beos.ViewSrcAccel:U
 #
 en.ro.Draw:Draw  ?^F3
 fr.ro.Draw:Dessiner  ?^F3
-it.ro.Draw:Draw  ?^F3
+it.ro.Draw:Draw  ?^F3
 nl.ro.Draw:Draw-bestand  ?^F3
 
 en.all.PDF:PDF
@@ -1991,21 +1991,21 @@ fr.all.Back:Retour
 it.all.Back:Indietro
 nl.all.Back:Vorige pagina
 en.beos.BackAccel:?
-it.beos.BackAccel:?
+it.beos.BackAccel:?
 en.all.Forward:Forward one page
 de.all.Forward:Eine Seite vor
 fr.all.Forward:Avancer
 it.all.Forward:Avanti
 nl.all.Forward:Volgende pagina
 en.beos.ForwardAccel:?
-it.beos.ForwardAccel:?
+it.beos.ForwardAccel:?
 en.all.UpLevel:Up one level
 de.all.UpLevel:Eine Ebene hoch
 fr.all.UpLevel:Remonter d'un niveau
 it.all.UpLevel:Livello superiore
 nl.all.UpLevel:Niveau omhoog
 en.beos.UpLevelAccel:?
-it.beos.UpLevelAccel:?
+it.beos.UpLevelAccel:?
 en.ro.Reload:Reload this page  ^F5
 de.ro.Reload:Seite erneut laden  ^F5
 fr.ro.Reload:Recharger cette page  ^F5
@@ -2749,17 +2749,17 @@ nl.all.ExternalApp:Open in ander programma
 en.all.Download:%s of %s  ?  %s/s  ?  %s remaining
 de.all.Download:%s von %s ? %s/s ? noch %s
 fr.all.Download:%s de %s  ?  %s/s  ?  %s restants
-it.all.Download:%s di %s  ?  %s/s  ?  %s al termine
+it.all.Download:%s di %s  ?  %s/s  ?  %s al termine
 nl.all.Download:%s van %s  ?  %s/s  ?  nog %s
 en.all.DownloadU:%s of unknown  ?  %s/s  ?  %s total
 de.all.DownloadU:%s von unbekannt ? %s/s ? bisher %s
 fr.all.DownloadU:%s sur inconnu  ?  %s/s  ?  %s total
-it.all.DownloadU:%s sconosciuto  ?  %s/s  ?  %s totale
+it.all.DownloadU:%s sconosciuto  ?  %s/s  ?  %s totale
 nl.all.DownloadU:%s van onbekend  ?  %s/s  ?  %s totaal
 en.all.Downloaded:%s complete  ?  average %s/s  ?  %s total
 de.all.Downloaded:%s komplett ? etwa %s/s ? gesamt %s
 fr.all.Downloaded:%s effectu?s  ?  moyenne %s/s  ?  %s total
-it.all.Downloaded:%s completato  ?  average %s/s  ?  %s totale
+it.all.Downloaded:%s completato  ?  average %s/s  ?  %s totale
 nl.all.Downloaded:%s compleet ? gemiddeld %s/s ? %s totaal
 en.all.Unwritten:Writing data to file failed.
 de.all.Unwritten:Schreiben der Datei ist fehlgeschlagen.
@@ -5829,7 +5829,7 @@ nl.ro.HelpLanguageConfig:Diverse taalinstellingen kunnen 
in dit venster gewijzig
 en.ro.HelpLanguageConfig3:\Tcurrently selected interface language.|MThe 
interface language is the language used for NetSurf's messages and dialogue 
boxes.
 de.ro.HelpLanguageConfig3:Das ist die aktuell eingestellte Sprache f?r die 
Bedienoberfl?che.|MDiese Sprache wird genutzt, um NetSurf's Meldungen, Texte 
der Dialogboxen, Men?s darzustellen.
 fr.ro.HelpLanguageConfig3:\Tla langue d'interface s?lectionn?e 
actuellement.|MLa langue d'interface est la langue utilis?e pour les messages 
et les bo?tes de dialogue de Netsurf.
-it.ro.HelpLanguageConfig3:\Tla lingua dell'interfaccia correntemente 
selezionata.|MLa lingua dell'interfaccia ? la lingua utilizzata per i messaggi 
e le finestre di dialogo di NetSurf.
+it.ro.HelpLanguageConfig3:\Tla lingua dell'interfaccia correntemente 
selezionata.|MLa lingua dell'interfaccia ? la lingua utilizzata per i messaggi 
e le finestre di dialogo di NetSurf.
 nl.ro.HelpLanguageConfig3:Dit is momenteel de geselecteerde 
gebruikersinterfacetaal.|MDe interfacetaal is de taal voor de melding- en 
dialoogvensters.
 en.ro.HelpLanguageConfig4:\Sselect an interface language.
 de.ro.HelpLanguageConfig4:Klicken mit AUSWAHL zum Ausw?hlen einer 
Oberfl?chensprache.
@@ -5870,7 +5870,7 @@ nl.ro.HelpSecurityConfig:De privacy- en 
veiligheidsinstellingen kunnen in dit ve
 en.ro.HelpSecurityConfig2:This indicates whether NetSurf will send site 
referral information to web servers.|MWhen this is enabled NetSurf will tell 
the web server of a new page the address of the site you came from, after 
following a link.
 de.ro.HelpSecurityConfig2:NetSurf sendet Seitenreferenzinformationen an 
Webserver.|MIst diese Opt

netsurf: branch master updated. release/3.9-696-g804faac

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/804faacf826856e1d939c20ce30be7b766c492db
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/804faacf826856e1d939c20ce30be7b766c492db
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/804faacf826856e1d939c20ce30be7b766c492db

The branch, master has been updated
   via  804faacf826856e1d939c20ce30be7b766c492db (commit)
   via  aec946b4ffd19a959002af4b779d24894f7b1f57 (commit)
  from  a55a899e7450371556bd107178ea47d2deb1fe9f (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=804faacf826856e1d939c20ce30be7b766c492db
commit 804faacf826856e1d939c20ce30be7b766c492db
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

html: Handle canvas width/height stated explicitly in px

Signed-off-by: Daniel Silverstone 

diff --git a/content/handlers/html/dom_event.c 
b/content/handlers/html/dom_event.c
index b874d71..533c9d5 100644
--- a/content/handlers/html/dom_event.c
+++ b/content/handlers/html/dom_event.c
@@ -200,7 +200,7 @@ static nserror html_process_inserted_canvas(html_content 
*htmlc, dom_node *node)
char * ended;
unsigned long width_n = strtoul(ptr, &ended, 10);
 
-   if (ended == endptr) {
+   if (ended == endptr || strcasecmp(ended, "px") == 0) {
/* parsed it all */
width = width_n;
}
@@ -217,7 +217,7 @@ static nserror html_process_inserted_canvas(html_content 
*htmlc, dom_node *node)
char * ended;
unsigned long height_n = strtoul(ptr, &ended, 10);
 
-   if (ended == endptr) {
+   if (ended == endptr || strcasecmp(ended, "px") == 0) {
/* parsed it all */
height = height_n;
}


commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=aec946b4ffd19a959002af4b779d24894f7b1f57
commit aec946b4ffd19a959002af4b779d24894f7b1f57
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

CanvasRenderingContext2D: More verbose input validation error message

Signed-off-by: Daniel Silverstone 

diff --git a/content/handlers/javascript/duktape/CanvasRenderingContext2D.bnd 
b/content/handlers/javascript/duktape/CanvasRenderingContext2D.bnd
index 5acf750..6b6039a 100644
--- a/content/handlers/javascript/duktape/CanvasRenderingContext2D.bnd
+++ b/content/handlers/javascript/duktape/CanvasRenderingContext2D.bnd
@@ -212,7 +212,8 @@ method CanvasRenderingContext2D::putImageData()
clipx < 0 || clipy < 0 || /* Input in range */
(clipx + clipw) > idpriv->width || /* Input in range */
(clipy + cliph) > idpriv->height) { /* Input in range */
-   return duk_error(ctx, DUK_ERR_RANGE_ERROR, "invalid inputs");
+   return duk_error(ctx, DUK_ERR_RANGE_ERROR, "invalid inputs: 
(%d,%d) (%d,%d) (%d,%d) (Me: %d,%d) (Img: %d,%d)",
+x,y,clipx,clipy,clipw,cliph, priv->width, 
priv->height, idpriv->width, idpriv->height);
}
 
bitmap_base = guit->bitmap->get_buffer(priv->bitmap);


---

Summary of changes:
 content/handlers/html/dom_event.c|4 ++--
 content/handlers/javascript/duktape/CanvasRenderingContext2D.bnd |3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/content/handlers/html/dom_event.c 
b/content/handlers/html/dom_event.c
index b874d71..533c9d5 100644
--- a/content/handlers/html/dom_event.c
+++ b/content/handlers/html/dom_event.c
@@ -200,7 +200,7 @@ static nserror html_process_inserted_canvas(html_content 
*htmlc, dom_node *node)
char * ended;
unsigned long width_n = strtoul(ptr, &ended, 10);
 
-   if (ended == endptr) {
+   if (ended == endptr || strcasecmp(ended, "px") == 0) {
/* parsed it all */
width = width_n;
}
@@ -217,7 +217,7 @@ static nserror html_process_inserted_canvas(html_content 
*htmlc, dom_node *node)
char * ended;
unsigned long height_n = strtoul(ptr, &ended, 10);
 
-   if (ended == endptr) {
+   if (ended == endptr || strcasecmp(ended, "px") == 0) {
/* parsed it all */
height = height_n;
}
diff --git a/content/handlers/javascript/duktape/CanvasRenderingContext2D.bnd 
b/content/handlers/javascript/duktape/CanvasRenderingContext2D.bnd
index 5acf750..6b6039a 100644
--- a/content/handlers/javascript/duktape/CanvasRenderingContext2D.bnd
++

netsurf: branch master updated. release/3.9-697-g9c0fa9c

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/9c0fa9c9396a28adab4fd5130550e1ba5a7e472e
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/9c0fa9c9396a28adab4fd5130550e1ba5a7e472e
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/9c0fa9c9396a28adab4fd5130550e1ba5a7e472e

The branch, master has been updated
   via  9c0fa9c9396a28adab4fd5130550e1ba5a7e472e (commit)
  from  804faacf826856e1d939c20ce30be7b766c492db (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=9c0fa9c9396a28adab4fd5130550e1ba5a7e472e
commit 9c0fa9c9396a28adab4fd5130550e1ba5a7e472e
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

gtk: Do not attempt to use now-freed scaffolding when iterating them to quit

Signed-off-by: Daniel Silverstone 

diff --git a/frontends/gtk/scaffolding.c b/frontends/gtk/scaffolding.c
index c35eef9..f08d5d0 100644
--- a/frontends/gtk/scaffolding.c
+++ b/frontends/gtk/scaffolding.c
@@ -1285,8 +1285,9 @@ nserror nsgtk_scaffolding_destroy_all(void)
 
/* iterate all scaffolding windows and destroy them */
while (gs != NULL) {
+   struct nsgtk_scaffolding *next = gs->next;
gtk_widget_destroy(GTK_WIDGET(gs->window));
-   gs = gs->next;
+   gs = next;
}
return NSERROR_OK;
 }


---

Summary of changes:
 frontends/gtk/scaffolding.c |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/frontends/gtk/scaffolding.c b/frontends/gtk/scaffolding.c
index c35eef9..f08d5d0 100644
--- a/frontends/gtk/scaffolding.c
+++ b/frontends/gtk/scaffolding.c
@@ -1285,8 +1285,9 @@ nserror nsgtk_scaffolding_destroy_all(void)
 
/* iterate all scaffolding windows and destroy them */
while (gs != NULL) {
+   struct nsgtk_scaffolding *next = gs->next;
gtk_widget_destroy(GTK_WIDGET(gs->window));
-   gs = gs->next;
+   gs = next;
}
return NSERROR_OK;
 }


-- 
NetSurf Browser
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf: branch master updated. release/3.9-698-g67b2d39

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/67b2d3931d325bb65887daa92c030c1466d30d8f
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/67b2d3931d325bb65887daa92c030c1466d30d8f
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/67b2d3931d325bb65887daa92c030c1466d30d8f

The branch, master has been updated
   via  67b2d3931d325bb65887daa92c030c1466d30d8f (commit)
  from  9c0fa9c9396a28adab4fd5130550e1ba5a7e472e (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=67b2d3931d325bb65887daa92c030c1466d30d8f
commit 67b2d3931d325bb65887daa92c030c1466d30d8f
Author: Vincent Sanders 
Commit: Vincent Sanders 

make risc os url entry use the omi box and hence cope with bad urls 
gracefully

diff --git a/frontends/riscos/window.c b/frontends/riscos/window.c
index d3bd529..5a9a721 100644
--- a/frontends/riscos/window.c
+++ b/frontends/riscos/window.c
@@ -64,6 +64,7 @@
 #include "netsurf/keypress.h"
 #include "desktop/browser_history.h"
 #include "desktop/cookie_manager.h"
+#include "desktop/searchweb.h"
 
 #include "riscos/bitmap.h"
 #include "riscos/buffer.h"
@@ -990,17 +991,18 @@ ro_gui_window_toolbar_click(void *data,
  * \param g gui_window to update
  * \param url1 url to be launched
  */
-static void ro_gui_window_launch_url(struct gui_window *g, const char *url1)
+static void ro_gui_window_launch_url(struct gui_window *g, const char *url_s)
 {
nserror error;
nsurl *url;
 
-   if (url1 == NULL)
+   if (url_s == NULL) {
return;
+   }
 
ro_gui_url_complete_close();
 
-   error = nsurl_create(url1, &url);
+   error = search_web_omni(url_s, SEARCH_WEB_OMNI_NONE, &url);
if (error != NSERROR_OK) {
ro_warn_user(messages_get_errorcode(error), 0);
} else {
@@ -1424,8 +1426,7 @@ ro_gui_window_handle_local_keypress(struct gui_window *g,
if (is_toolbar) {
const char *toolbar_url;
toolbar_url = ro_toolbar_get_url(g->toolbar);
-   if (toolbar_url != NULL)
-   ro_gui_window_launch_url(g, toolbar_url);
+   ro_gui_window_launch_url(g, toolbar_url);
}
return true;
 


---

Summary of changes:
 frontends/riscos/window.c |   11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/frontends/riscos/window.c b/frontends/riscos/window.c
index d3bd529..5a9a721 100644
--- a/frontends/riscos/window.c
+++ b/frontends/riscos/window.c
@@ -64,6 +64,7 @@
 #include "netsurf/keypress.h"
 #include "desktop/browser_history.h"
 #include "desktop/cookie_manager.h"
+#include "desktop/searchweb.h"
 
 #include "riscos/bitmap.h"
 #include "riscos/buffer.h"
@@ -990,17 +991,18 @@ ro_gui_window_toolbar_click(void *data,
  * \param g gui_window to update
  * \param url1 url to be launched
  */
-static void ro_gui_window_launch_url(struct gui_window *g, const char *url1)
+static void ro_gui_window_launch_url(struct gui_window *g, const char *url_s)
 {
nserror error;
nsurl *url;
 
-   if (url1 == NULL)
+   if (url_s == NULL) {
return;
+   }
 
ro_gui_url_complete_close();
 
-   error = nsurl_create(url1, &url);
+   error = search_web_omni(url_s, SEARCH_WEB_OMNI_NONE, &url);
if (error != NSERROR_OK) {
ro_warn_user(messages_get_errorcode(error), 0);
} else {
@@ -1424,8 +1426,7 @@ ro_gui_window_handle_local_keypress(struct gui_window *g,
if (is_toolbar) {
const char *toolbar_url;
toolbar_url = ro_toolbar_get_url(g->toolbar);
-   if (toolbar_url != NULL)
-   ro_gui_window_launch_url(g, toolbar_url);
+   ro_gui_window_launch_url(g, toolbar_url);
}
return true;
 


-- 
NetSurf Browser
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf-wiki: branch master updated. e7dee4b65c4814fac5d6a0a0ccf7358360e1991b

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf-wiki.git/shortlog/e7dee4b65c4814fac5d6a0a0ccf7358360e1991b
...commit 
http://git.netsurf-browser.org/netsurf-wiki.git/commit/e7dee4b65c4814fac5d6a0a0ccf7358360e1991b
...tree 
http://git.netsurf-browser.org/netsurf-wiki.git/tree/e7dee4b65c4814fac5d6a0a0ccf7358360e1991b

The branch, master has been updated
   via  e7dee4b65c4814fac5d6a0a0ccf7358360e1991b (commit)
  from  3ac6b97bcf496380ff2bfed221c29a5bfe3a6b07 (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-wiki.git/commit/?id=e7dee4b65c4814fac5d6a0a0ccf7358360e1991b
commit e7dee4b65c4814fac5d6a0a0ccf7358360e1991b
Author: Daniel Silverstone 
Commit: Daniel Silverstone 

Devday: pathway complete

Signed-off-by: Daniel Silverstone 

diff --git a/developer-weekend/may-2020.mdwn b/developer-weekend/may-2020.mdwn
index 11931b2..fd7dda1 100644
--- a/developer-weekend/may-2020.mdwn
+++ b/developer-weekend/may-2020.mdwn
@@ -37,7 +37,7 @@ Outstanding work (from Feb)
 Pathway to 3.10
 ===
 
-* Complete RISC OS frontend support for pageinfo core window
+* Complete RISC OS frontend support for pageinfo core window **DONE**
 * Add url to about:query/ssl to launch cert viewer (the link needs _blank) 
(Daniel) **DONE**
 * excise sslcert_viewer entirely (Daniel) **DONE**
   * Monkey doesn't need it, excise from farmer and driver **DONE**
@@ -46,7 +46,7 @@ Pathway to 3.10
 will need to add padlock and page_info support **DONE**
 * [[!bug 2752]] Building without openssl: acknowledged and assigned to Daniel. 
**DONE**
 * [[!bug 2754]] GTK history delete menu options: acknowledged and assigned to 
Daniel. **DONE**
-* [[!bug 2753]] RISC OS URL entry bug needs fixed.
+* [[!bug 2753]] RISC OS URL entry bug needs fixed. **DONE**
 
 
 Bug Triage


---

Summary of changes:
 developer-weekend/may-2020.mdwn |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/developer-weekend/may-2020.mdwn b/developer-weekend/may-2020.mdwn
index 11931b2..fd7dda1 100644
--- a/developer-weekend/may-2020.mdwn
+++ b/developer-weekend/may-2020.mdwn
@@ -37,7 +37,7 @@ Outstanding work (from Feb)
 Pathway to 3.10
 ===
 
-* Complete RISC OS frontend support for pageinfo core window
+* Complete RISC OS frontend support for pageinfo core window **DONE**
 * Add url to about:query/ssl to launch cert viewer (the link needs _blank) 
(Daniel) **DONE**
 * excise sslcert_viewer entirely (Daniel) **DONE**
   * Monkey doesn't need it, excise from farmer and driver **DONE**
@@ -46,7 +46,7 @@ Pathway to 3.10
 will need to add padlock and page_info support **DONE**
 * [[!bug 2752]] Building without openssl: acknowledged and assigned to Daniel. 
**DONE**
 * [[!bug 2754]] GTK history delete menu options: acknowledged and assigned to 
Daniel. **DONE**
-* [[!bug 2753]] RISC OS URL entry bug needs fixed.
+* [[!bug 2753]] RISC OS URL entry bug needs fixed. **DONE**
 
 
 Bug Triage


-- 
NetSurf Developer Wiki Backing Store
___
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org


netsurf: branch master updated. release/3.9-704-g3f84dba

2020-05-22 Thread Commit Mailer
Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/3f84dba7797c33e70b87d0f6c7b8f058ffc45593
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/3f84dba7797c33e70b87d0f6c7b8f058ffc45593
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/3f84dba7797c33e70b87d0f6c7b8f058ffc45593

The branch, master has been updated
   via  3f84dba7797c33e70b87d0f6c7b8f058ffc45593 (commit)
   via  dc5cae7306068596e7ec0cb5d01820e93d351be4 (commit)
   via  3efeb41d1d063f99c2b3a21f9bf0c90f2d3f37d3 (commit)
   via  aa86da5f027301540bd4a41cdfa512fa1d2b69e8 (commit)
   via  505217a8e7be13f720b023d9b8691137779c4fb2 (commit)
   via  413c3803c50b29854fff1003e585ee7dfea3fa36 (commit)
  from  67b2d3931d325bb65887daa92c030c1466d30d8f (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=3f84dba7797c33e70b87d0f6c7b8f058ffc45593
commit 3f84dba7797c33e70b87d0f6c7b8f058ffc45593
Author: Chris Young 
Commit: Chris Young 

Amiga: fix an issue where the page info icon was not updating correctly

diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c
index 698c2c7..e4dca8c 100644
--- a/frontends/amiga/gui.c
+++ b/frontends/amiga/gui.c
@@ -3253,6 +3253,56 @@ static void ami_gui_appicon_remove(struct gui_window_2 
*gwin)
}
 }
 
+static nserror gui_page_info_change(struct gui_window *gw)
+{
+   int bm_idx;
+   browser_window_page_info_state pistate;
+   struct gui_window_2 *gwin = ami_gui_get_gui_window_2(gw);
+   struct browser_window *bw = ami_gui_get_browser_window(gw);
+
+   /* if this isn't the visible tab, don't do anything */
+   if((gwin == NULL) || (gwin->gw != gw)) return NSERROR_OK;
+
+   pistate = browser_window_get_page_info_state(bw);
+
+   switch(pistate) {
+   case PAGE_STATE_INTERNAL:
+   bm_idx = GID_PAGEINFO_INTERNAL_BM;
+   break;
+
+   case PAGE_STATE_LOCAL:
+   bm_idx = GID_PAGEINFO_LOCAL_BM;
+   break;
+
+   case PAGE_STATE_INSECURE:
+   bm_idx = GID_PAGEINFO_INSECURE_BM;
+   break;
+
+   case PAGE_STATE_SECURE_OVERRIDE:
+   bm_idx = GID_PAGEINFO_WARNING_BM;
+   break;
+
+   case PAGE_STATE_SECURE_ISSUES:
+   bm_idx = GID_PAGEINFO_WARNING_BM;
+   break;
+
+   case PAGE_STATE_SECURE:
+   bm_idx = GID_PAGEINFO_SECURE_BM;
+   break;
+
+   default:
+   bm_idx = GID_PAGEINFO_INTERNAL_BM;
+   break;
+   }
+
+   RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_PAGEINFO], 
gwin->win, NULL,
+   BUTTON_RenderImage, gwin->objects[bm_idx],
+   GA_HintInfo, gwin->helphints[bm_idx],
+   TAG_DONE);
+
+   return NSERROR_OK;
+}
+
 static void ami_handle_appmsg(void)
 {
struct AppMessage *appmsg;
@@ -3605,6 +3655,7 @@ static void ami_switch_tab(struct gui_window_2 *gwin, 
bool redraw)
ami_throbber_redraw_schedule(0, gwin->gw);
 
gui_window_set_icon(gwin->gw, gwin->gw->favicon);
+   gui_page_info_change(gwin->gw);
}
 
ami_gui_free_space_box(bbox);
@@ -6088,53 +6139,6 @@ static void gui_window_new_content(struct gui_window *g)
ami_gui_scroller_update(g->shared);
 }
 
-static nserror gui_page_info_change(struct gui_window *gw)
-{
-   int bm_idx;
-   browser_window_page_info_state pistate;
-   struct gui_window_2 *gwin = ami_gui_get_gui_window_2(gw);
-   struct browser_window *bw = ami_gui_get_browser_window(gw);
-
-   pistate = browser_window_get_page_info_state(bw);
-
-   switch(pistate) {
-   case PAGE_STATE_INTERNAL:
-   bm_idx = GID_PAGEINFO_INTERNAL_BM;
-   break;
-
-   case PAGE_STATE_LOCAL:
-   bm_idx = GID_PAGEINFO_LOCAL_BM;
-   break;
-
-   case PAGE_STATE_INSECURE:
-   bm_idx = GID_PAGEINFO_INSECURE_BM;
-   break;
-
-   case PAGE_STATE_SECURE_OVERRIDE:
-   bm_idx = GID_PAGEINFO_WARNING_BM;
-   break;
-
-   case PAGE_STATE_SECURE_ISSUES:
-   bm_idx = GID_PAGEINFO_WARNING_BM;
-   break;
-
-   case PAGE_STATE_SECURE:
-   bm_idx = GID_PAGEINFO_SECURE_BM;
-   break;
-
-   default:
-   bm_idx = GID_PAGEINFO_INTERNAL_BM;
-   break;
-   }
-
-   RefreshSetGadgetAttrs((struct Ga