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);