diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2015-08-13 11:59:43 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2015-08-13 11:59:43 +0100 |
commit | c7a32294940c54294b96c0d0d789e0cffb1c03b3 (patch) | |
tree | 5a91909dd04b1211f46906cbccd0b3413f041544 /desktop/browser.c | |
parent | 379d97123a8d02a055bd0a20fd308857bcae316c (diff) | |
download | netsurf-c7a32294940c54294b96c0d0d789e0cffb1c03b3.tar.gz netsurf-c7a32294940c54294b96c0d0d789e0cffb1c03b3.tar.bz2 |
Can't tell if failure to create a JS context is an error or not.
It won't create one when built jsoff.
Diffstat (limited to 'desktop/browser.c')
-rw-r--r-- | desktop/browser.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop/browser.c b/desktop/browser.c index 16dd2e278..18c7fa247 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -857,9 +857,8 @@ nserror browser_window_initialise_common(enum browser_window_create_flags flags, bw->jsctx = js_newcontext(nsoption_int(script_timeout), slow_script, NULL); - if (bw->jsctx == NULL) { - return NSERROR_NOMEM; - } + /* If bw->jsctx == NULL, it might be because we built with no JS. + * TODO: Error handling in the with JS case. */ if (flags & BW_CREATE_CLONE) { assert(existing != NULL); |