Gitweb links:

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

The branch, master has been updated
       via  2d58372ec2946ae47e2370341e3b8607c069c528 (commit)
      from  a4bda322a9a8e2d1fe7909771cf8fbd47904ced2 (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=2d58372ec2946ae47e2370341e3b8607c069c528
commit 2d58372ec2946ae47e2370341e3b8607c069c528
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>

    Console: Do not try and log through a closed down window
    
    Signed-off-by: Daniel Silverstone <[email protected]>

diff --git a/content/handlers/javascript/duktape/Console.bnd 
b/content/handlers/javascript/duktape/Console.bnd
index fcf6ee8..74601d6 100644
--- a/content/handlers/javascript/duktape/Console.bnd
+++ b/content/handlers/javascript/duktape/Console.bnd
@@ -51,7 +51,7 @@ write_log_entry(duk_context *ctx, unsigned int group, 
browser_window_console_fla
        duk_size_t msglen;
        const char *msg = duk_safe_to_lstring(ctx, 0, &msglen);
 
-       if (priv_win == NULL || priv_win->win == NULL ||
+       if (priv_win == NULL || priv_win->win == NULL || priv_win->closed_down 
== true ||
            browser_window_console_log(priv_win->win, BW_CS_SCRIPT_CONSOLE,
                                       msg, msglen,
                                       flags) != NSERROR_OK) {


-----------------------------------------------------------------------

Summary of changes:
 content/handlers/javascript/duktape/Console.bnd |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/content/handlers/javascript/duktape/Console.bnd 
b/content/handlers/javascript/duktape/Console.bnd
index fcf6ee8..74601d6 100644
--- a/content/handlers/javascript/duktape/Console.bnd
+++ b/content/handlers/javascript/duktape/Console.bnd
@@ -51,7 +51,7 @@ write_log_entry(duk_context *ctx, unsigned int group, 
browser_window_console_fla
        duk_size_t msglen;
        const char *msg = duk_safe_to_lstring(ctx, 0, &msglen);
 
-       if (priv_win == NULL || priv_win->win == NULL ||
+       if (priv_win == NULL || priv_win->win == NULL || priv_win->closed_down 
== true ||
            browser_window_console_log(priv_win->win, BW_CS_SCRIPT_CONSOLE,
                                       msg, msglen,
                                       flags) != NSERROR_OK) {


-- 
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to