From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-ch2-09v.sys.comcast.net (resqmta-ch2-09v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:41]) by hurricane.the-brannons.com (Postfix) with ESMTPS id C551677BBB for ; Tue, 25 Jul 2017 23:57:31 -0700 (PDT) Received: from resomta-ch2-13v.sys.comcast.net ([69.252.207.109]) by resqmta-ch2-09v.sys.comcast.net with ESMTP id aGGNd0pqnsBuFaGGOdFOgN; Wed, 26 Jul 2017 06:57:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1501052264; bh=729xtsBDyesDWkp2uUefubsvZCOeIyej1xL4F05iGBg=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=i9rl3ZHoXKkRjQMvDYRdPy5+ad+bK7uVkdgHObjmPiyuTF8Y7bnBl4vpjrowiiwzh Fgb/U+uycbh5hAe439d1VoJ8CUOduU+0BCWejT1cG3Aol9kXFLaeRfFp/FWOGignkL LtxlB6qS5zEqAs5k+8dYZEAGEQFojd9cJb1YGbCcHrQJT01KJBwXYFQvOvyJPX2efb cw99oOcxwEY+Fsi7M6wuraVS4MlUd2MloelUkx+QJAwBYgaq0riHSE9jCch3uyemSY M0gf6up18sCpfe2sPzBmTMsIn2PkM8g1J4h04YM7Q+dkZcThTMyQ6QArE+Mu1+mBMB 9US31z6fXBP5w== Received: from unknown ([IPv6:2601:408:c301:784d:21e:4fff:fec2:a0f1]) by resomta-ch2-13v.sys.comcast.net with SMTP id aGGOdaavVgBaEaGGOd33AB; Wed, 26 Jul 2017 06:57:44 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.7.0x Date: Wed, 26 Jul 2017 02:57:44 -0400 Message-ID: <20170626025744.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=nextpart-eb-264025 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfI7DC+6DL3DYfCFfPfDgxgIhCBU3hEt4jFOqUi00IwhEuiSzqPet6Dm6aDLSIBxkFLFq4yDMDwfBvDm/SYiD9G6geCr8vWbb8gGo8ZqzC2By/C6ircOL qyRpFqSyvDYjjOUmvOwKPInzRhXwCSAyMSBiftz5ckaWd548lbyxN1kv Subject: [Edbrowse-dev] Interwindow Communication 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: Wed, 26 Jul 2017 06:57:32 -0000 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --nextpart-eb-264025 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable This is where javascript accesses the objects in the subordinate = windows, also known as frames. It sort of works, and I'm in shock. I'm amazed that 30 or 40 lines of code brings this to life. I had no clue how to do this in mozilla, no clue whatsoever, but I did = the obvious dozen lines of code in duktape, and it works. Remember that jsrt has a frame, so browse jsrt and expand the frame = with the exp command. That frame is now part of the screen you're already familiar with. If you enter jdb in the frame you'll have access to all the objects of = the frame, but that isn't really what we want to demonstrate. go back to line 1, or any line outside of the frame, and type jdb. frames[0] is the one and only frame, and under this is contentDocument, and under that is all the nodes of the frame. I even went in and set foo =3D 77 in a style object, so we have read = write access. Kevin, don't get excited and assume the next acid test will pass. It = won't. That's because I don't expand frames automatically at load time. They're not there until you type exp. If possible I'd like to keep it that way. edbrowse is slow enough as it is, and most of those frames are google = analytics or advertising or other such crap. Now there may be a really tricky way around this, for some day in the = future. Imagine each frame has a default contentDocument object that I create, = that has a getter. The first time any javascript tries to access it, the getter runs, and = expands the frame inside, and passes back the real contentDocument for that frame, and js marches = on none the wiser. Pretty sneaky eh? Then you only expand if you really have to. Even then, the expansion is under the covers, you don't actually see = the frame unless you type exp. Then it's expand and contract as usual, which are really hide and = unhide. Anyways, play around with it if you like, especially you Kevin, to see = if everything is linked in the way it's suppose to be. Karl Dahlke --nextpart-eb-264025--