From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from qmta03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [IPv6:2001:558:fe14:43:76:96:62:32]) by hurricane.the-brannons.com (Postfix) with ESMTP id 242E977AAE for ; Wed, 12 Feb 2014 02:22:34 -0800 (PST) Received: from omta09.westchester.pa.mail.comcast.net ([76.96.62.20]) by qmta03.westchester.pa.mail.comcast.net with comcast id RNHY1n00E0SCNGk53NMsRJ; Wed, 12 Feb 2014 10:21:52 +0000 Received: from eklhad ([107.5.36.150]) by omta09.westchester.pa.mail.comcast.net with comcast id RNMs1n0043EMmQj3VNMshY; Wed, 12 Feb 2014 10:21:52 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke User-Agent: edbrowse/3.5.1 Date: Wed, 12 Feb 2014 05:21:51 -0500 Message-ID: <20140112052151.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1392200512; bh=BrtEHxZtp8NPHzxpt5b2wdA4ik/vP94+aPjqMtiazfI=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=N2SaXU6Bw85fl9pcR2zEHVJd/epgpIIalt72AvL2p8E8l1qdRdQGOz7lFj3/769dt 6a2yPeiFJuXf3drtnoHFpH7kYl908ihSNS5FIw+YmSJSbRr9QsdJKT7mWAqdMMg5Nh H5Q4/9wAfr0XBHL1iArWMOxVKsl5akSwGzzvXl3RfFt02iHkZ564QtEFVAvg80XxJ9 H3ZMJ20voqwXOY8ffL2SUE4FARUafouyne/D9Djl90Va4csqnS9OkH+B8C9pqGZUxf xkhZIV8m69fkFuGyv/x9gzC4s9wC0PGuSgK7iAHBRFNxj4yNSxfzBpJi+xaUYDJeVq 6BGhExmVT66dQ== Subject: [Edbrowse-dev] switch compartment X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Karl Dahlke List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Feb 2014 10:22:34 -0000 My latest push adds SWITCH_COMPARTMENT to js.h, as suggested by Adam, and uses that macro in the establish... and set... functions in jsloc.cpp. These are gateway functions from html into the javascript world. I also unrooted a couple more parameters that were rooted earlier when html did not understand these objects. This should not change any behavior, it is just a step along the way. Other functions need to use this macro, and still other functions don't really need to set compartment because they are internal. Then we can write some error legs that close down javascript for this session upon error, but still let edbrowse continue. Karl Dahlke