From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5059 invoked from network); 26 Aug 2022 01:29:00 -0000 Received: from hurricane.the-brannons.com (2602:ff06:725:1:20::25) by inbox.vuxu.org with ESMTPUTF8; 26 Aug 2022 01:29:00 -0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by hurricane.the-brannons.com (OpenSMTPD) with ESMTP id 27970ef0 for ; Thu, 25 Aug 2022 18:28:56 -0700 (PDT) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by hurricane.the-brannons.com (OpenSMTPD) with ESMTPS id 46da0a0a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Thu, 25 Aug 2022 18:28:51 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id D97745C0098 for ; Thu, 25 Aug 2022 21:28:49 -0400 (EDT) Received: from imap41 ([10.202.2.91]) by compute3.internal (MEProxy); Thu, 25 Aug 2022 21:28:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t= 1661477329; x=1661563729; bh=URmHMkMhgZBcAjaFU5MkfJwReyZNlKYtNlo LeTT9gjE=; b=NLnb2y8BPDuqGHYwFpslZHZ9EBRtmE4tBkaa17HokaQcq0jXU9c yE6wxXov9zMOxUK4J3aMlkqo7BZ3JOXfJhEh8GBXJRCVhaGHdsrBQxJh6CrNFACr rIyhfT6J/j+EKhN9RXbhl+7n1X2T/VVGYok3uMECP8QVeRirm2Tb6pKkR163HOGm ENIK5CMILg0IJWqciaEbUh35cp9f7no5PozHbiHg56/UHdijP7RB4umPvBInHf8y XLa2wrEBqAAlcEF6U/igF4KNn1DEUHmIvtYl4vF3ScgCFixdl1zQqcRI+n2c8GgE 3N9aIByBJldD811qgrt1WOeRNTDJA8DoVDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1661477329; x= 1661563729; bh=URmHMkMhgZBcAjaFU5MkfJwReyZNlKYtNloLeTT9gjE=; b=0 baxO0HdCAwrKmoGvM5Vdh6KzKPIaWw+Hc7fGPQasAcHR7L0+g8drRX40M1tk4Fm8 tmFStqiJ894aT4bWjKV+8jqDD6QuEULscBHwCExEjewPpN2VN4TCWjcppQrG/bDF WWOO70dIGcg/uq6X/595A8NdFk0ljrResaoD3k3ccqRfQYOGwq7fAQTV4aXFLocN Byh6Tm7DuVja3tyOjibjnCPdBqi4L7EeJk7vud+iXWrk4BPbkg+HBGRceumIE9Yv +Ei/qDLFNo0CTo8Y9XVrnZzn830aelaeFqBWRF6Df8ZMcmxtUwOjkXcugMHWxfql Kvi4+ZmtMuWadfKfHyQOA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdejgedggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsegrtderre erreejnecuhfhrohhmpedfmfgvvhhinhcuvegrrhhhrghrthdfuceokhgvvhhinhgptggr rhhhrghrthesfhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepudevueeihf dutdetudehgfdvudffuedugeejveevgeffgefhleeghfeviedvgedtnecuffhomhgrihhn pehjshdrnhhofidpghhithhhuhgsrdgtohhmpdifrghrthhinhhgrdhsvgenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehkvghvihhnpggtrghr hhgrrhhtsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ie78241f3:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6B1EE2340077; Thu, 25 Aug 2022 21:28:49 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-841-g7899e99a45-fm-20220811.002-g7899e99a X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List Mime-Version: 1.0 x-forwarded-message-id: Message-Id: Date: Thu, 25 Aug 2022 18:28:22 -0700 From: "Kevin Carhart" To: edbrowse-dev@edbrowse.org Subject: Fwd: Re: question about FormData and Blob Content-Type: multipart/alternative; boundary=6f0017a831774394b039ba2881360f87 --6f0017a831774394b039ba2881360f87 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable For the list.. we wrote to the author of FormData and he replied just to= me, so I am sending it on. ----- Original message ----- From: "Jimmy W=C3=A4rting" To: Kevin Carhart Subject: Re: question about FormData and Blob Date: Thursday, August 25, 2022 4:59 AM Hi kevin. Yea maybe they are incompatible with each other. I'm a bit surprised tha= t people still include Blob and FormData polyfills still to this day. Al= l browsers, even NodeJS and Deno include a built-in Blob and FromData cl= ass natively nowadays. I can play around with them and see if there is any issue when using the= m both together. but i'm a bit busy right now. I saw that edbrowse is ac= tually running quickjs. and isn't actually running in an actual browser = such as chrome, firefox or safari.=20 I'm a bit impressed by what has been built and re-implemented in edbrows= e to build a cli browser. It takes a lot to build a browser from the gro= und up and make everything spec compatible with new browser standard API= s poping in all the time now.=20 I wouldn't even dare to take on such a huge job. I would just have built= something with a headless browser and depend on the blink engine to do = all the job and then use puppeteer to integrate with the browser program= matically through the command line.=20 Den tors 25 aug. 2022 kl 11:44 skrev Kevin Carhart : > Hi Jimmy >=20 > I help develop a CLI browser project called edbrowse.. we implement th= e DOM and users can load websites in edbrowse. >=20 > And for a while now we have incorporated Eli's Blob.js. Now we would = like to do the same with your FormData.js. But we are not sure if the t= wo pieces of code will interoperate. Is there a conflict between how yo= urs and Eli's uses Blob? Specifically, from yours we would use... >=20 > https://github.com/jimmywarting/FormData/blob/master/FormData.js >=20 > From Eli's we would use >=20 > https://github.com/eligrey/Blob.js/blob/master/Blob.js >=20 > Place them one after the next in a new js file and load it in at initi= alization-time. >=20 > From Blob.js we already have Blob, File, FileReader and URL as it says= in the comment. > We want to integrate this with your FormData implementation. Is there= some way we can "get the best of both worlds"? It seems at the moment = that when I include both without performing any extra steps, FormData is= not recognized in the edbrowse console. >=20 > Whereas.. as a test of where we would like to get to, if I go to the f= irefox console and enter >=20 > FormData >=20 > It returns >=20 > function () >=20 > thanks for the help > Kevin >=20 --=20 MVH Jimmy W=C3=A4rting jimmy.warting.se --6f0017a831774394b039ba2881360f87 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
For the list.. = we wrote to the author of FormData and he replied just to me, so I am se= nding it on.



= ----- Original message -----
From: "Jimmy W=C3=A4rting" &l= t;jimmy@warting.se>
=
To: Kevin Carhart <= kevin_carhart@fastmail.fm>
Subject: Re: question ab= out FormData and Blob
Date: Thursday, August 25, 2022 4:59= AM

Hi kevin.

Yea maybe = they are incompatible with each other. I'm a bit surprised that peo= ple still include Blob and FormData polyfills still to this day. Al= l browsers, even NodeJS and Deno include a built-in Blob and FromData cl= ass natively nowadays.
I can play around with them an= d see if there is any issue when using them both together. but i'm a bit= busy right now. I saw that edbrowse is actually running quickjs. and is= n't actually running in an actual browser such as chrome, firefox or saf= ari. 
I'm a bit impressed by what has been built and = re-implemented in edbrowse to build a cli browser. It takes a lot t= o build a browser from the ground up and make everything spec compatible= with new browser standard APIs poping in all the time now. 
I wouldn't even dare to take on such a huge job= . I would just have built something with a headless browser and depend o= n the blink engine to do all the job and then use puppeteer to inte= grate with the browser programmatically through the command li= ne. 

Den tors 25 aug. 2022 kl 11:44 sk= rev Kevin Carhart <kevin= _carhart@fastmail.fm>:
Hi Jimmy

=
I help develop a CLI browser project called edbrowse.. we im= plement the DOM and users can load websites in edbrowse.
=
And for a while now we have incorporated Eli's Blob.js.&= nbsp; Now we would like to do the same with your FormData.js.  But = we are not sure if the two pieces of code will interoperate.  Is th= ere a conflict between how yours and Eli's uses Blob?  Specifically= , from yours we would use...


From Eli's we = would use


Place them one after the next in a new js file and lo= ad it in at initialization-time.

From Blo= b.js we already have Blob, File, FileReader and URL as it says in the co= mment.
We want to integrate this with your FormData imple= mentation.  Is there some way we can "get the best of both worlds"?=   It seems at the moment that when I include both without performin= g any extra steps, FormData is not recognized in the edbrowse console.

Whereas.. as a test of where we would like= to get to, if I go to the firefox console and enter

=
FormData

It returns
=

function ()

thanks = for the help
Kevin

=


--
MVH
Jimmy W=C3=A4rtin= g
jimmy.warti= ng.se

--6f0017a831774394b039ba2881360f87--