From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (mailfrom) identity=mailfrom; client-ip=8.23.224.61; helo=out.smtp-auth.no-ip.com; envelope-from=kevin@carhart.net; receiver= Received: from out.smtp-auth.no-ip.com (smtp-auth.no-ip.com [8.23.224.61]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 5AE6D77C83 for ; Tue, 8 Aug 2017 15:30:29 -0700 (PDT) X-No-IP: carhart.net@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from carhart.net (unknown [99.52.200.227]) (Authenticated sender: carhart.net@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 4B6F3E5; Tue, 8 Aug 2017 15:31:13 -0700 (PDT) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id v78MVCYC005242; Tue, 8 Aug 2017 15:31:12 -0700 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id v78MVB65005238; Tue, 8 Aug 2017 15:31:12 -0700 Date: Tue, 8 Aug 2017 15:31:11 -0700 (PDT) From: Kevin Carhart To: Karl Dahlke cc: Edbrowse-dev@lists.the-brannons.com In-Reply-To: <20170708143429.eklhad@comcast.net> Message-ID: References: <20170708143429.eklhad@comcast.net> User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [Edbrowse-dev] Autoexpansion Works X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.24 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Aug 2017 22:30:29 -0000 This is incredibly groundbreaking! getTestDocument() works now!! I have not dug in. I'm still mostly away... this is very high on the list of extremely compelling procrastinations. Tons of those other tests run getTestDocument as their first step. And those tests I think are designed to embody things that are broadly important. This is great!! On Tue, 8 Aug 2017, Karl Dahlke wrote: > Well this surprises even me. > > Look through all the commits in the past 24 hours and you'll see that a lot has changed. > They were all leading up to the last commit though; a frame will expand if it must because somebody is trying to access its objects. > Otherwise we don't waste the resources. > This is the design I wanted! > > There's a test for this in jsrt. > Browse and look at line 4. > That is the frame which was there before. > You can expand it with the exp command, but don't. > It is still just a placeholder. > Set db2 or even db3 to watch what is happening. > Now look on line 5. > This is a little script that dips into the first node under the frame's body and prints its node type. > Click on this link and it tries to access those objects, sees that they aren't there, expands the frame, then resumes the script and prints div, since the first node in that frame is div. > If you replace the frame with the Munsters, then click this again, the first node is H2. > Unbrowse, and browse, and expand it yourself, then click first node and it pops right up. > The frame is already expanded. > > There's a disclaimer though, it only works in the 1 process model, with JS1=1. > In 2 processes you get an error message. > It would be horrendously difficult to do this in 2 processes, > as I mentioned in an earlier email. > > Kevin, it is possible that the next suite of acid tests will pass, > or at least they might pass with some modest tweaking on our part, in case I don't have all the objects in the right places. > At least the foundation is there. > > Karl Dahlke > -------- Kevin Carhart * 415 225 5306 * The Ten Ninety Nihilists