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 D558E77DE3 for ; Sun, 20 Apr 2014 21:48:55 -0700 (PDT) Received: from omta12.westchester.pa.mail.comcast.net ([76.96.62.44]) by qmta14.westchester.pa.mail.comcast.net with comcast id sUnr1n0020xGWP85EUodYq; Mon, 21 Apr 2014 04:48:37 +0000 Received: from eklhad ([68.84.191.77]) by omta12.westchester.pa.mail.comcast.net with comcast id sUod1n0041gep303YUodQU; Mon, 21 Apr 2014 04:48:37 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke User-Agent: edbrowse/3.5.1 Date: Mon, 21 Apr 2014 00:48:22 +0000 Message-ID: <20140321004822.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=q20140121; t=1398055717; bh=bBmYlmYfbJppbiURL2PY04FBk1zUy2XK7R2GM3tLYFU=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=P+K36HqXMLeDAzvD2mk8bej0hz05ZxuSPpvilWum89YmDD78ZUBCFaKCbm8+mI4c4 serVvxpDvAkc1kVfwOJc+5LShoq+aBLPMEIebLn6DbJLXiqDd7zoNua1TpbpywpVfD Sr9Yi4LB/I1zuT4lUHYn59Clhj8Et8HyuNCPW3Of4MnCn0SiPRmXZqQ3QZy2/aJKj6 lf6xYdcgdYB9eMM1cYZu8CXZxZWiZtaPigAQnGxLuPUswc/jGsHUrZ+UR3ZCEPchtL OaL1OVXQaCY8PaE+8z+wZ0og93LbA5J0LEbRw2sjcrxJQPjdmsPPDibdRPScDT0Bx5 WeFyhFTG1vhEQ== Subject: [Edbrowse-dev] Amazon can of worms 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: Mon, 21 Apr 2014 04:48:56 -0000 Ok remember when I said amazon.com had its javascript in its home page, in modest pieces? No such luck. I found this snip of code that tries to execute but doesn't, because I don't have it implemented. var scriptElem = document.createElement('script'); scriptElem.src = "http://z-ecx.images-amazon.com/images/G/01/s9-campaigns/s9-multipack-min._V366882549_.js"; document.getElementsByTagName('head')[0].appendChild(scriptElem); I am fairly certain this pulls in and executes javascript code dynamically. But when? When the src attribute is assigned? When the script object is placed in the head section? Or when that piece of javascript returns? I really hope it's the latter. Otherwise all sorts of code has to be reentrant. I could stack up, actually fifo up, any such js urls and execute them after the invoking js returns. Not too hard to do, but it means I am missing entire swaths of js code in amazon.com, probably in the dog vomit category, which probably spends 90% of its time doing visual effects, and can I really afford to spend the next 4 months trying to figure it out? It does confirm something though: as I keep going I keep finding little objects and methods that I just don't have implemented, and they don't usually entail the big rewrite, they are more like enhancements, but there are so many of them! Karl Dahlke