edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Karl Dahlke <eklhad@comcast.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] JS2 and interrupt
Date: Thu, 10 Aug 2017 07:48:29 -0400	[thread overview]
Message-ID: <20170710074829.eklhad@comcast.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 1229 bytes --]

I changed the default behavior to 1 process; if you still want 2 processes then export JS2=on. (Though this option may go away some day.)
I felt a little better about doing this because ^c is pretty good at interrupting real world javascript now.
(Adam's well founded concern about js locking up all of edbrowse.)
It won't stop  while(true); but it will stop js that calls our native functions, innerHTML, createElement, appendChild, etc,
and also stops http fetch, which could be stuck for any number of reasons, like the internet is down.
Curl has its own timeouts for fetching data, but they're long, and js could fetch one script after another after another, sometimes as many as 20, so if the curl timeout is 30 seconds you're looking at ten minutes.
Best if we interrupt the procedure at a higher level.
The page still browses, and you can still interact with the html, and even javascript.
Unlike the previous model, js is still there, it hasn't gone away.
It's a controlled interrupt.
But all sorts of functions may not be there, because js didn't finish.
Don't interrupt a browse and then use the page for something vital like ecommerce.
Anyways give it a try on any site that's really slow.

Karl Dahlke

                 reply	other threads:[~2017-08-10 11:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20170710074829.eklhad@comcast.net \
    --to=eklhad@comcast.net \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    /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).