comp.lang.ada
 help / color / mirror / Atom feed
From: David Marceau <davidmarceau@sympatico.ca>
Subject: Re: Why write an Ada web browser ?, was: Re: GNAT Ada - DLL - MSVC
Date: Wed, 12 Jun 2002 18:24:24 -0400
Date: 2002-06-12T18:24:24-04:00	[thread overview]
Message-ID: <3D07CA18.EB2CAF55@sympatico.ca> (raw)
In-Reply-To: 3D07A181.4E478A0E@san.rr.com

> I think we're talking at cross purposes. Unless you're going to reimplement
> *every* plug-in in Ada, the plug-ins you don't reimplement will have the
> same security problems.
That is exactly the intent.  Change the architecture of the main
application the web browser,
and change the architecture of the subsystems the Flashplayer and
whatever else plugins matter to you.

This implied re-writing the web browser in ada.
This implied re-writing the flash player in ada. 

The way the system would work.
1)user invokes the web browser
2)user invokes some flash file by opening it.
3)the web browser detects the type for the file to open
4)the web browser then invokes into another process a
decoration-less/decorated window placed within/outside the web browser
window.
5)the flash plug-in loads the desired user file via the protocol between
the two processes.  
Note how the plug-in accesses its resources.  Via the protocol back to
the web browser.  
Note the web browser commands the file the plug-in is to use.  
Note the plug-in asks for URL'S from the web browser. it can't open them
itself.
Anything else the plug-in tries to do forget it.  
To draw, the plug-in asks the web browser api.  The window device
context never directly gets into the hands of a plug-in.
To get input/output from other devices(i.e. mouse), the plug-in would
ask the web browser api.  The device itself never gets into the hands of
the plug-in.
In other words the plug-in would request a
drawing/filewriting/filereading/mousereading service from the web
browser.
The web browser with its multiple tasks would then actually do the
drawing/filewriting/filereading/mousereading after doing some security
checks.
The web browser owns the mouse and whatever else devices.  The plug-in
owns nothing. Doesn't matter whether it's a flash player or a video
player ...

> 
> That is, sure, you can implement a Flash player or a ReadVideo player in Ada
> and perhaps fix some security bugs by doing so. But making your web browser
> secure and still having it invoke RealVideo's player isn't going to be any
> safer.
I beg to differ since I have from the beginning implied re-writing
everything browser and all plug-ins.
IMHO It would be safer more maintainable and more platform-independant
reusable.
Note how I didn't say faster.

One more thing someone implied re-writing a jvm in ada.
I will clarify this.  The intent is not to run java-byte-code in the
so-called ada-web-browser.
The intent is to purely run ada code in the ada-web-browser and
preferrably straight from source one builds himself.
Yes the plug-in mechanism should provide something for downloading all
the source for a new plug-in and recompile on the machine.
Yes this implies gnat-ada-web-browser-plug-in-compiler which is I'm
guessing something that would verify that the plug-in source code only
with's in 
calls from the ada-web-browser-plugin-api package and nothing else.
Operating System specific calls would not get compiled in.  How to do
this?  I don't know.  Maybe something like j2me(java language subset for
cell phones and palm pilots) code converter/preverifier? It may be like
a jvm but I don't think it is a jvm.  The intention is to run the
original and unique ada-run-time-environment which gets linked into the
plug-in.  Maybe the ada-rte could be considered an avm :)  Maybe
removing os-specific calls and adding the ada-web-browser-plugin-api to
the ada-rte would more like an ADA Virtual MACHINE if there would be
such a thing.
I am just dreaming.  
When embedding stuff in html using why not provide url's to cvs source
code server.
Most of the unix world is doing this outside of their web browser for
getting source all over the world anyways.
I'm dreaming.  I'm human.  As you can see I'm venting my frustration
with the status-quo so I apologize to anyone I have offended.
How did I get to wanting a better browser?
In windows internet explorer, I went to some web sites heavy with
javascript i.e. www.act.com (the contact manager s/w) and it crapped out
my windows os.
I needed to reboot.  
On my linux box running netscape, I do the same thing.  I go to
www.act.com.  It craps outs netscape, but not my linux box.  I just
xkill on netscape and just restart it up and everything's fine.  At
least in linux it's just annoying.  In windows however it was
intolerable.  
IMHO Seeing this kind of bug appear again and again after a couple of
years, I believe this stuff shouldn't happen and 
the jvm/javascript engines along with the current web browser
implementations are the source of these problems.  
That's how I got to dreaming of this Ada-Web-Browser and
Ada-Web-Browser-Plugin idea :)

Sant� bonheur,
David Marceau



  reply	other threads:[~2002-06-12 22:24 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-11 13:15 GNAT Ada - DLL - MSVC - debugging Alderson, Paul A.
2002-06-11 17:12 ` David Marceau
2002-06-12 13:39   ` Why write an Ada web browser ?, was: Re: GNAT Ada - DLL - MSVC Simon Clubley
2002-06-12 15:00     ` David Marceau
2002-06-12 15:55       ` Darren New
2002-06-12 18:54         ` David Marceau
2002-06-12 19:30           ` Darren New
2002-06-12 22:24             ` David Marceau [this message]
2002-06-12 22:55           ` BraveNewWhirl
2002-06-12 23:47             ` David Marceau
2002-06-13 21:45               ` BraveNewWhirl
2002-06-12 20:01         ` Randy Brukardt
2002-06-12 20:21           ` Darren New
2002-06-12 21:20           ` Larry Kilgallen
2002-06-13 14:51             ` OT: Adobe Acrobat Plugin Frank J. Lhota
2002-06-13 16:03               ` Larry Kilgallen
2002-06-13 16:24               ` Warren W. Gay VE3WWG
2002-06-13 18:42               ` Ted Dennison
2002-06-12 20:41       ` Why write an Ada web browser ?, was: Re: GNAT Ada - DLL - MSVC Simon Clubley
2002-06-19  9:48         ` Preben Randhol
2002-06-12 19:54     ` Jeffrey Carter
2002-06-12 20:44       ` Hyman Rosen
2002-06-13 15:50       ` Ted Dennison
2002-06-13 16:00         ` Ed Falis
2002-06-14  2:36           ` Ted Dennison
2002-06-19  9:48       ` Preben Randhol
2002-06-19 15:08         ` David Marceau
2002-06-11 18:34 ` GNAT Ada - DLL - MSVC - debugging Stephen Leake
2002-06-11 19:04   ` Pascal Obry
2002-06-12 17:28     ` Stephen Leake
2002-06-12  1:37 ` SteveD
     [not found] <E17Kc4l-00054h-00@kiuk0156.chembio.ntnu.no>
2002-06-20  5:12 ` Why write an Ada web browser ?, was: Re: GNAT Ada - DLL - MSVC Robert C. Leif
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox