Gitweb links:

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

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

    Console.bnd: Support attempts to log when Window has gone
    
    Signed-off-by: Daniel Silverstone <[email protected]>

diff --git a/content/handlers/javascript/duktape/Console.bnd 
b/content/handlers/javascript/duktape/Console.bnd
index cf4bc4f..3de875a 100644
--- a/content/handlers/javascript/duktape/Console.bnd
+++ b/content/handlers/javascript/duktape/Console.bnd
@@ -51,7 +51,8 @@ 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 (browser_window_console_log(priv_win->win, BW_CS_SCRIPT_CONSOLE,
+       if (priv_win == NULL ||
+           browser_window_console_log(priv_win->win, BW_CS_SCRIPT_CONSOLE,
                                       msg, msglen,
                                       flags) != NSERROR_OK) {
                NSLOG(netsurf, DEBUG, "Unable to log: %s", 
duk_safe_to_string(ctx, 0));


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

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

diff --git a/content/handlers/javascript/duktape/Console.bnd 
b/content/handlers/javascript/duktape/Console.bnd
index cf4bc4f..3de875a 100644
--- a/content/handlers/javascript/duktape/Console.bnd
+++ b/content/handlers/javascript/duktape/Console.bnd
@@ -51,7 +51,8 @@ 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 (browser_window_console_log(priv_win->win, BW_CS_SCRIPT_CONSOLE,
+       if (priv_win == NULL ||
+           browser_window_console_log(priv_win->win, BW_CS_SCRIPT_CONSOLE,
                                       msg, msglen,
                                       flags) != NSERROR_OK) {
                NSLOG(netsurf, DEBUG, "Unable to log: %s", 
duk_safe_to_string(ctx, 0));


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to