From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from qmta14.westchester.pa.mail.comcast.net (qmta14.westchester.pa.mail.comcast.net [IPv6:2001:558:fe14:44:76:96:59:212]) by hurricane.the-brannons.com (Postfix) with ESMTP id 1D7F577CD3 for ; Wed, 19 Feb 2014 12:40:04 -0800 (PST) Received: from omta10.westchester.pa.mail.comcast.net ([76.96.62.28]) by qmta14.westchester.pa.mail.comcast.net with comcast id UL8C1n0050cZkys5ELfCwM; Wed, 19 Feb 2014 20:39:12 +0000 Received: from eklhad ([107.5.36.150]) by omta10.westchester.pa.mail.comcast.net with comcast id ULfB1n00n3EMmQj3WLfCgS; Wed, 19 Feb 2014 20:39:12 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke User-Agent: edbrowse/3.5.1 Date: Wed, 19 Feb 2014 15:39:12 -0500 Message-ID: <20140119153912.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=1392842352; bh=OqYy5RaNJnfwH1cZT3Nj6De4Qgk/9zgrw4/OuSpQM1E=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=JAru71fTH0FWS3HeA/h8vReWW8JpkDRohFW6bzjXJ01tylcqENUksm6QfOuQkxtjB 2zgkAQ8vu2ahdLUsj2ZI5b+rAGt/s37QvvfEOp8BFAwtIjiltzxGTiIwI/bfS0YGqb YVqDWkVW/DeLU5WJXFuaET05nJ18ZGWecKnsp1PHI+PiVygDAGfiopC6PEWVYRkdr0 /9yIdhrlYvzhLNtHzyzeNT3RberCXyXnb4Q7Jj/yWS9/D4d4kb310oDIYSW6VmjrPS xBrEXgYS8EH70xM2j5FHZP8AsDUKS9xxyx7Xl27cJFyJgz69boEuEu78BbCkIba15F C510A2U9P9p6g== Subject: [Edbrowse-dev] in 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, 19 Feb 2014 20:40:04 -0000 Maybe ... in javaSessionFail just print and set a flag, Then return because of the error condition. The calling function might then return because of the error, and so on, unwinding the stack all the way back to html. So there was an error but cw->jss is still there. in the SwitchCompartment macro, if js is dead then return, as we do today, but if it is still there and the abort flag is set then destroy context and set jss = null and return. Everything would unwind and free properly, and the js context would go away, perhaps on the next call. Maybe that would keep things from becoming a mess. Karl Dahlke