diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-10-02 20:15:23 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-10-02 20:15:23 +0100 |
commit | 2d58372ec2946ae47e2370341e3b8607c069c528 (patch) | |
tree | 0c519e1a0962d3d0ec8e24471f000dd085d412fe /content/handlers | |
parent | a4bda322a9a8e2d1fe7909771cf8fbd47904ced2 (diff) | |
download | netsurf-2d58372ec2946ae47e2370341e3b8607c069c528.tar.gz netsurf-2d58372ec2946ae47e2370341e3b8607c069c528.tar.bz2 |
Console: Do not try and log through a closed down window
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers')
-rw-r--r-- | content/handlers/javascript/duktape/Console.bnd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/handlers/javascript/duktape/Console.bnd b/content/handlers/javascript/duktape/Console.bnd index fcf6ee83d..74601d6d4 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) { |