From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:558:fe21:29:69:252:207:44; helo=resqmta-ch2-12v.sys.comcast.net; envelope-from=eklhad@comcast.net; receiver= Received: from resqmta-ch2-12v.sys.comcast.net (resqmta-ch2-12v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:44]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 9FD6C787E9 for ; Mon, 29 Jan 2018 14:42:45 -0800 (PST) Received: from resomta-ch2-16v.sys.comcast.net ([69.252.207.112]) by resqmta-ch2-12v.sys.comcast.net with ESMTP id gI8beEYI9VJDNgI8megByA; Mon, 29 Jan 2018 22:43:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1517265784; bh=jXNzkujmj/nPNteqEzRuY6dXp5YDYLY/7l4orHclxIk=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=pvocqnDWmzBwrzfUUR873fnkCBh8i1JK9WYY0wQ+r7jPf8dAAF682+bLoLk4S4AU/ fGvzTf+zfVBDNHcZKfw9K8E/LxVcnXsRR50LxjhRtOwR/ODHeXl8pueiyV/kI399G0 vxEKyrHyr0X5c2ky6SsnoogAUloX53g9IrZtOQfb3Gzartd3taun/ca9TmCrknd1UD USp5yGHmKtlA7DZnQVWMb5bBdbzcNi6r6kNTfMDvs0FOlnjy3LLmsLRrItihYfFzbh MFN38O31jSKyVbtQFWMuxCK6aHrkW/FKtbORtB53BQz9cNSLmqZuc84CSPQPfOUVGx 53Z8hcnOxYqiA== Received: from unknown ([IPv6:2601:408:c300:8f09:21e:4fff:fec2:a0f1]) by resomta-ch2-16v.sys.comcast.net with SMTP id gI6cei35UzSQYgI7YevDAI; Mon, 29 Jan 2018 22:42:31 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.7.1 Date: Mon, 29 Jan 2018 17:40:49 -0500 Message-ID: <20180029174049.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=nextpart-eb-287611 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfGFgMDd8WUGUS5lJg1R8DEmqq55XWWXImT0fowdzCUE/oNhhsgoFcnWkkYgga1NKs2cinu8Znmf213heM9JED2rz5qCxzwN69MaUNlnbp1+UhbmKU4rJ gGYjRdkFyHhD/yZIiNjimmaV2f2Aty3bZ5DjkG1SB446P5spnY5V+qy/ Subject: [Edbrowse-dev] Dynamic Scripts X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.25 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2018 22:42:45 -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-287611 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable When javascript created a script using createElement, and then set its = source, that script never ran. I only ran scripts that were html. Oops. This push fixes that, but as so often happens, it breaks (or uncovers) = other things, I hope not too many other things. It's only 60 lines of code, but complicated; took me all day to do. There are two themes here. 1. If js sets a.href =3D "/foobar", then (I believe) it is suppose to = resolve that against the base. So perhaps becoming http://www.xyz.com/foobar This happens in html, but not in pure js. And there are 7 such members to deal with, so I wanted to fold = resolveURL into the setter on the prototypes. Thus the complexity, but I think it's working. 2. I saw that nasa creates a script from the creatElement primitive, = then sets src =3D blah. Such scripts never run. Only from html would such a script run. Created scripts from js now run. Sadly, nasa still comes up empty, so that wasn't the answer. As I say, it's 2 steps forward 1 step back. With this change, amazon hangs forever. Run with db3 and get these messages, relevant to the latest push. js replaces script (null) with = https://images-na.ssl-images-amazon.com/images/I/61ea4y7yPdL.js?AUIClien= ts/AmazonUIjQuery js replaces script (null) with = https://images-na.ssl-images-amazon.com/images/G/01/AUIClients/GenericOb= servableJS-c1a60b0cbfbf5d9a43a472c753b5426b6b9787a4._V2_.js#AUIClients/G= enericObservableJS.secure.min js replaces script (null) with = https://images-na.ssl-images-amazon.com/images/G/01/AUIClients/AmazonGat= ewayAuiAssets-cc30820c57e29edece019d96b11d8dcce96e13d0._V2_.js#AUIClient= s/AmazonGatewayAuiAssets.secure.min js replaces script (null) with = https://images-na.ssl-images-amazon.com/images/G/01/ape/sf/desktop/DAsf-= 1.18._V492556619_.js?csm_attribution=3DAPE-SafeFrame js replaces script (null) with = https://images-na.ssl-images-amazon.com/images/G/01/ads/advertising/ads.= _TTH_.js?cachebust=3D54895310 js replaces script (null) with = https://images-na.ssl-images-amazon.com/images/G/01/ape/sf/desktop/DAsf-= 1.18._V492556619_.js?csm_attribution=3DAPE-SafeFrame js replaces script (null) with = https://images-na.ssl-images-amazon.com/images/G/01/ape/sf/desktop/DAsf-= 1.18._V492556619_.js?csm_attribution=3DAPE-SafeFrame js replaces script (null) with = https://images-na.ssl-images-amazon.com/images/G/01/AUIClients/AmazonGat= ewayHerotatorJS-0358eb038780a29b14afb6fc4a2f5730b39e5a34._V2_.js#AUIClie= nts/AmazonGatewayHerotatorJS.secure.min js replaces script (null) with = https://images-na.ssl-images-amazon.com/images/I/11IYhapguOL._RC|61FI-2L= eF0L.js,21dmoxZTACL.js,012FVc3131L.js,31fv8bqHLoL.js,31ReKJl2X6L.js,51nK= 0kUyg2L.js,11+vNCgC1cL.js,01xMsWWFUQL.js,11KkQiUpBPL.js,113pP0Sfh0L.js,2= 1auxuI+dRL.js,01PoLXBDXWL.js,612Ozn6EcSL.js,01ezj5Rkz1L.js,11SW3HEKjtL.j= s,01rpauTep4L.js,01rRRcQgoDL.js_.js?AUIClients/AmazonUI js replaces script (null) with = https://images-na.ssl-images-amazon.com/images/I/01lNX6axy7L._RC|71CEni6= HLCL.js,61C0EAxYIZL.js,01JS2B6NLKL.js,41jIrsqv7ML.js,01Tw08m1EFL.js,01wB= jiz9OvL.js,21vYtu6vTJL.js,31AWdXGrHUL.js,51RgqN98m2L.js,31qKd4DgPkL.js_.= js?AUIClients/NavDesktopMetaAsset#desktop js replaces script (null) with = https://images-na.ssl-images-amazon.com/images/I/11QXqf0G81L.js?AUIClien= ts/RetailWebsiteOverlayAUIAssets wow, that's 11 created scripts that were suppose to run, and didn't, = but do now, but, one of them hangs forever. We need to figure out why before we cut a version. Meantime, I'm betting, based on the domain, that they all deal with = images, and we don't care. This seems to bring amazon.com back again. nojs =3D images-na.ssl-images-amazon.com Feel free to comment, or point out problems, or fix things that I might = not have done right. Karl Dahlke --nextpart-eb-287611--