edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Kevin Carhart <kevin@carhart.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] telling JS about allowXHR
Date: Thu, 31 Dec 2015 18:10:07 -0800 (PST)	[thread overview]
Message-ID: <alpine.LRH.2.03.1512311740070.10278@carhart.net> (raw)
In-Reply-To: <20151131095446.eklhad@comcast.net>




I was wondering how to get the allowXHR flag into javascript, and 
what is the proper moment to do it.

Could I set it on the JS window, at the top of jsRunScriptResult?
set_property_bool(cw->winobj, "allowXHR", allowXHR);

This way JS will always have the updated preference.  Javascript
can be responsible for having a try-catch or similar, so that XHR
does not run, but everything else can continue.


thanks
Kevin




  reply	other threads:[~2016-01-01  2:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-30  2:46 [Edbrowse-dev] socket.c and socket.h Karl Dahlke
     [not found] ` <CA+Pgot+=bbdLr6GUo7++a9LRUGCG9uAHqicMcx97zq8DH-Rvrg@mail.gmail.com>
2015-12-31 14:54   ` Karl Dahlke
2016-01-01  2:10     ` Kevin Carhart [this message]
2016-01-01  2:43       ` [Edbrowse-dev] telling JS about allowXHR Karl Dahlke
2016-01-01  4:18         ` Kevin Carhart

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=alpine.LRH.2.03.1512311740070.10278@carhart.net \
    --to=kevin@carhart.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).