browser kindof functionality

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
alokdube
Enthusiast
Enthusiast
Posts: 148
Joined: Fri Nov 02, 2007 10:55 am
Location: India
Contact:

browser kindof functionality

Post by alokdube »

Here is something I was wondering
1. open a window
2. type in a location
3. if of the form pbtp:// it is a purebasic source code and call pbcompiler and execute the following text
4. if it is http:// then its browser based (we can use the browser code already around here)
if not then execute the pb source
else if u can make pb a plugin like a java plugin...
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post by Rescator »

Besides stating the obvious that this could be a huge security issue (unknown and unseen source compiled to a exe and executed),
it's also impractical as everyone would need PureBasic (not a bad idea in and of itself as Fred would be richer than bill gates) but for end users impractical.

And for the few devs that might need/find this useful in certain environments, you can actually add this to your browser easily (at least Firefox) as most browsers let you add custom url and mime handlers.
alokdube
Enthusiast
Enthusiast
Posts: 148
Joined: Fri Nov 02, 2007 10:55 am
Location: India
Contact:

Post by alokdube »

what is the security risk? I mean an exe is an exe however, it has the same implications as using a browser in any other way. one still has to trust the server in any way.
Matt
Enthusiast
Enthusiast
Posts: 447
Joined: Sat May 21, 2005 1:08 am
Location: USA

Post by Matt »

Yeah a website you go to has full access to your computer system :lol:
alokdube
Enthusiast
Enthusiast
Posts: 148
Joined: Fri Nov 02, 2007 10:55 am
Location: India
Contact:

Post by alokdube »

well not really , but via java applets it can mess around
Post Reply