edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Adam Thompson <arthompson1990@gmail.com>
To: Karl Dahlke <eklhad@comcast.net>
Cc: Edbrowse-dev@lists.the-brannons.com
Subject: Re: [Edbrowse-dev] createJavacontext
Date: Tue, 11 Feb 2014 18:54:10 +0000	[thread overview]
Message-ID: <20140211185410.GS11542@toaster.adamthompson.me.uk> (raw)
In-Reply-To: <20140111121223.eklhad@comcast.net>

On Tue, Feb 11, 2014 at 12:12:23PM -0500, Karl Dahlke wrote:
> If the js runtime or context or global window cannot be created,
> it prints a message to that effect, leaves jss null, and returns.
> This is the first non-exit error leg in our js world.
> Without the context, javascript is disabled,
> but edbrowse continues to run.
> You can test this easily.
> Edit Chris memory hogging array program and another html file.
> Browse the first and get the memory full error.
> Switch to buffer 2 and browse the second,
> but there isn't enough memory to set up the window,
> so the context is not created, jss is null,
> and any javascript features in that second file,
> like onclick push buttons, won't work.

Yep, works well. I tried this with the array html program and jsrt.
Edbrowse didn't exit and javascript stopped as expected.

> This is I think the start of where we want to go.
> Other error legs will print a message,
> distroy context, set jss to null, and return.

Yep, sounds good. In the future it'd be nice if there was some way of
recovering a working js set up in some of these cases (e.g.
when js has run out of memory), but I can't think of a robust way at the moment,
and this is certainly a vast improvement.

Cheers,
Adam.

      reply	other threads:[~2014-02-11 18:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-11 17:12 Karl Dahlke
2014-02-11 18:54 ` Adam Thompson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140211185410.GS11542@toaster.adamthompson.me.uk \
    --to=arthompson1990@gmail.com \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    --cc=eklhad@comcast.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).