Roll Your Own Browser 230
davidwboswell writes "Oreillynet is running an article about how to create your own
browser with Mozilla. This is a follow-up to a previous
article that surveyed many of the alternate Mozilla browsers currently available including Chimera, Galeon, Phoenix and Aphrodite."
Security (Score:5, Insightful)
This is going to help the likes of the people who added all those "extras" to kazza.
Re:Security (Score:1)
hmmm, if only we had some kind of guide [slashdot.org] that would help us to write secure web applications... but where?
Re:Security (Score:3, Insightful)
Re:Security (Score:1, Flamebait)
What in the name of all hell are you TALKING about?
Read the freaking article.
And worse comes to worst, you look at the freaking source yourself.
Jesus!
Re:Security (Score:2)
And worse comes to worst, you look at the freaking source yourself.
Do you think Grandma can also fix bugs in the source when she finds them? There are non-programmers out there. They need to have some level of trust, and "Bob's WebBrowser and Tackle Shop" is going to be the perfect excuse for paladin.
This is why Paladin is going to sell. Cant trust those nasty OpenSource programmers, afraid of viruses? Trust our "Microsoft Signed(TM)" programs. Gives you those nice warm fuzzies about buying things on the Internet. Feel secure about your "Trusted" OS.
Hell, Grandma and Joe Six pack will be first in line to buy a Secure and easy to use OS with all the M$ support included.
You arnt against Security are you? Damn terrorist.
-
A version of Links that does gfx - http://atrey.karlin.mff.cuni.cz/~clock/twibright/
Joe Six Pack (Score:2)
Re:Security (Score:2)
All the M$ support included *STILL* can't get rid of Code Red.
Re:Security (Score:2)
That goes for any EXE. If you download an run a game it could patch your browser to do exactly that.
Ironicly, since the browser is such an obvious place for a threat like that, in many cases it will be a safer than your typical download.
-
Hooray (Score:2)
Re:Hooray (Score:2, Interesting)
What sounds more threatening to an online store owner...thousands of pissed-off AOL and Earthlink customers who can't navigate the site due to non-compliant coding, or thousands of geeks using some relatively unknown web browser?
my 0.2€ (Score:3, Interesting)
e.g right now we are discussing how we perfectly embedd galeon 2 into gnome 2.4 but the problem is that we still get XUL widgets shown which is really annoying. the best way to have gecko embedable is to have it split up e.g. gecko as own library that you can get as source, unpack, configure && make && make install. but this is more a dream that will probably never come true. it would be cool to have a native gecko library where we can say --enable-gtk2 and it gets native gtk widgets shown whenever it renders page. but the whole mozilla cruft we are dealing with right now makes it in no way embedable. it's like tieing an egg to a hen.
Re:my 0.2€ (Score:2)
Re:ah yes, altering the aspects ... (Score:2)
Re:my 0.2€ (Score:1)
What!?! What have I done?
Hmm...
You're right.. they should do something about that thingee..there in that other thingee..
galeon != xul (Score:2, Insightful)
Re:galeon != xul (Score:1, Informative)
Re:galeon != xul (Score:3, Informative)
I don't know what parallel dimension you downloaded galeon from, but when I get a cookie prompt, it comes to me in a GTK dialog.
Additionally, the widgets used by gecko for rendering forms are native, and Mozilla can be configured to use a number of different toolkits for them.
One XUL dialog that is still in galeon, however, is the 'accept SSL certificate' dialog, so yes, galeon doesn't have a replacement for everything.
Re:my 0.2€ (Score:3, Interesting)
Re:my 0.2€ (Score:3, Insightful)
Re:my 0.2€ (Score:3, Funny)
Re:my 0.2€ (Score:3, Insightful)
Not just that, but consistantly is very important in design and usability.
When grandma just gets the hang of all the widgets on OS-Whatever, then fires up Mozilla, only to be greated by a set of widgets she has never seen before, how do you think she's going to react? She probably won't understand it, and close it.
Re:my 0.2€ (Score:2, Insightful)
Re:my 0.2€ (Score:2)
It's MS. Since when has MS been the hallmark of anything good?
On the other had, look at Mac OS, The only dramatic change came about in OS X, which is an entirly new OS.
And if you've ever used OS X, you see that there is a big focus on consistancy in GUI between apps.
Re:my 0.2€ (Score:2)
Hmmmm. The kitchen looks like the bedroom looks like the bathroom??? Or is it kitchens look like kitchens, bedrooms look like bedrooms, and bathrooms look like bathrooms? Seems like aesthetics demands that form and function not be too far separated from each other.
The question is which consistancy is more important, the application across systems or the applications that are on a system.
Re:my 0.2€ (Score:3, Insightful)
*sigh* when will programers ever learn...
Re:my 0.2€ (Score:2)
Re:my 0.2€ (Score:3, Interesting)
A better solution would be to hook the XUL form widgets up to the existing theme engine support in Mozilla. Then if GTK supplies a rendering engine (does it? I don't know) then it can render in the GTK style but not break the CSS standards support.
Re:my 0.2€ (Score:2)
> widgets up to the existing theme engine support
> in Mozilla.
That is, in fact, exactly what we are doing. Sometime reasonably soon we should have all XUL and HTML widgets rendered using the platform theme.
On WinXP we already use the WinXP theme to render XUL widgets. There are some problems with GTK themes that are holding things up for GTK.
http://bugzilla.mozilla.org/show_bug.cgi?id
is the bug for turning on GTK theme support in XUL.
Re:my 0.2€ (Score:2)
Re:my 0.2€ (Score:5, Funny)
Tomorrow on DIY: How to make a working automobile, starting with nothing but a brand new Nissan Maxima.
Friday on DIY: How to make a Pizza with nothing but a phone and $15.
Re:my 0.2€ (Score:2)
Re:my 0.2€ (Score:2)
However, I also see the promise that XUL has for application developers. It's a dream for distributed applications, especially for corporate intranet stuff.
So, my question is: even if you remove XUL from the browser UI, as with Galeon, will the Gecko rendering engine still render XUL that I might want to load via HTTP?
If so, I see this as a Good Thing: we can have a hundred different browsers, but each will correctly render complex GUI widgets, which are a mess to handle with DHTML/Javascript, and each of which can be queried and updated at will. Sounds like a perfect answer to
Anyone with a little more knowledge who can clarify things here?
Thanks.
Re:my 0.2€ (Score:2)
Re:my 0.2€ (Score:3, Interesting)
Mozilla performs just fine on my PII 600 (Win2K), my AMD 550 (Win98) and my Celeron 500 (Slackware). Phoenix (lite Mozilla) performs even better, beats IE hands down.
And I think the skinnable thing is a perfect way to have a little fun, and relieve the gray boredom of computing. My wife (not a computer geek) loves Mozilla. Everyone I know who is not a computer whiz still thinks Mozilla is great when I show them.
What kills me is this elitist "no fun" attitude I see programmers so often take: as if the interface always needs to be so dumbed down that it's just made for Granny, and there can _never_ be even the slightest deviation from the standardized desktop. Well, if it's only good for Granny, then it's no good to anyone else. People are complex. No one I know is "Granny". My mother is probably the most technophobic person I know, and even she can handle the concept that a button might look a little different. I personally think different things _should_ look different (a little line I stole from Larry Wall).
And anyway, if you want a browser for Granny, XUL is the perfect way to roll an ultra-simple layout, with big typeface, etc... Granny is hardly the one who is going to care if a widget takes an extra half second to pop up.
How to name your browser (Score:2, Funny)
Anti-FSF FUD (Score:2)
The Linux kernel is called Linux. It doesn't matter that it was edited in emacs and compiled with gcc. It's Linux.
GNU/Linux refers to distributions. If you package Linux and GNU, in such a way that there is no option not to install the GNU part, it's a GNU/Linux distribution. There may be GNU/Linux/X distributions (maybe Lindows is a GNU/Linux/X/Wine distribution), but I am not aware of any Linux distributions that allow you the option of not installing GNU.
Actually, there is a Linux OS that's not GNU/Linux (Score:2, Interesting)
From the FAQ for "Revol", a distribution of Linux suitable for use on a Psion Revo (a.k.a. Diamond Mako) electronic organiser:
Shouldnt this be called GNU/Linux?
Actually, no. The argument for GNU/Linux is that most linux systems are a modified version of the GNU system which has been around for longer than linux has. However, Revol uses embedded versions of the standard parts of the operating system normally provided by GNU tools (uclibc instead of glibc, busybox instead of the GNU fileutils etc). So Revol is a non-GNU linux system.
Re:Actually, there is a Linux OS that's not GNU/Li (Score:2)
Re:Anti-FSF FUD (Score:2)
The name of the OS is what's being debated. When I say the Linux kernel I think it's pretty clear which kernel I'm talking about.
You refer to Linux as an operating system (distribution)
I referred to a hypothetical Linux distribution that always installed the Linux kernel but gave you the option of whether or not you installed GNU. I don't believe one exists.
RMS would like us to say the GNU kernel is called Linux.
My impression is that RMS would like people to refer to GNU/Linux or GNU/HURD as appropriate when referring to the OS, and Linux or HURD when referring to the kernel. I also think he is making too big a deal out of it.
dreaming of centralized cookies and bookmarks (Score:5, Interesting)
On OS X and Linux (and occasionaly FreeBSD) I've used: Mac Explorer, Chimera, OmniWeb, Mozilla, Konquerer, Lynx, and now playing with Phoenix..
If only they could share bookmarks, cookie preferences, and site passwords. Across machines! Securely! Is anybody working on this? Is LDAP the answer?
Re:dreaming of centralized cookies and bookmarks (Score:4, Interesting)
It would seem that the easiest way to implement something like this would be to have a small (probably USB-based) device like one of those USB keyring "drives" that you use to store this kind of basic information. Then have a standard in which different systems (KDE, Gnome, Windows, browsers, email clients, etc.) will check for the device and try to load preferences from it.
Since you could encrypt the information on the device and require a password to access it, it would be fairly secure, plus you don't have to trust someone else's distributed network.
Re:dreaming of centralized cookies and bookmarks (Score:2)
The resolution was syncml.org [syncml.org], a protocol and spec for universal syncing of data. I bet bookmarks are in there if you look hard enough.
Re:dreaming of centralized cookies and bookmarks (Score:4, Interesting)
Re:dreaming of centralized cookies and bookmarks (Score:3, Informative)
Proxy server? (Score:2, Interesting)
Of course, there's the problem of different users on a machine. Is it possible to run a proxy that only a single user has access to?
Bookmarks could easily be managed through a small web app. There's a few things like this, check freshmeat [freshmeat.net].
Re:dreaming of centralized cookies and bookmarks (Score:2)
might want to try that, or even share the bookmark files/folders/directories of each machine across a network.
BTW, I found this N7.0 feature by accident, not trying to sound like some browser expert kuz I ain't.
Re:dreaming of centralized cookies and bookmarks (Score:5, Funny)
Now all we need to find is a company that wants to write software to control all online transactions, profide centralized login and store our private information.
Re:dreaming of centralized cookies and bookmarks (Score:2)
Re:dreaming of centralized cookies and bookmarks (Score:2)
Re:dreaming of centralized cookies and bookmarks (Score:3, Informative)
Aphrodite (Score:2)
Re:Aphrodite (Score:2)
Thales aka John Dobbins
Re:Aphrodite (Score:2)
Rejected submission. You bastards. (Score:1, Funny)
Re:Rejected submission. You bastards. (Score:1)
Phoenix rocks (Score:1, Offtopic)
All in all, Phoenix is a great little browser especially for a 0.1 release. However if you do use it, it may crash at heavy sites such as Shockwave based sites. Very impressive for a 0.1 release. I'm loving it.
Besides, the spinner and name just kick serious ass.
Come back again...for a better Round (Score:2, Insightful)
Maybe in a few weeks /. should come back to this and then ask what people think.
or am I totally off-base?
mozilla.exe as explorer.exe (Score:4, Interesting)
Re:mozilla.exe as explorer.exe (Score:4, Informative)
Check out Desktopian [desktopian.org] for more info.
Re:mozilla.exe as explorer.exe (Score:2)
Is excessive plurality really useful? (Score:5, Insightful)
It's a thin line to avoid the balloon and bloat of Mozilla while providing functionality that many desire. Many projects are doing this, but each needs more developers to seal the leaks and fix the cracks.
Re:Is excessive plurality really useful? (Score:3, Informative)
It also opens the possibility for more competition, open source style. Look at the Mac for example. On Mac OS X, Chimera is taking off like a rocket among Mac users on OS X because it is fast and beautiful looking since it uses native Aqua, unlike IE 5.2 for the Mac. I for one have switched off of IE 5.2 and onto Chimera for 99% of my browsing, only suffering IE on sites that Chimera can't handle properly yet, which isn't many.
In short, choice is good, more choice is better. Who cares what browsers people use, as long as they conform to standards and work the way they like?
Scissors, Paper, Stone (Score:2)
Will you fight O'Reilly? (Score:2)
Yeah, well I'd like to see you go on the O'Reilly Factor and make that case against Bill O'Reilly yourself! He'll eat you alive! It's one thing to rant here on slashdot but when you're face to face with one of the most hard-hitting no-hold-barred talk show hosts on TV today, you'll find yourself at a loss for words!
Oh wait...
GMD
Re:Is excessive plurality really useful? (Score:2)
Be warned: I know nothing.
Anyway, it seems that the Mozilla project is becoming pretty mature and adding/subtracting features is difficult and time consuming. Mostly because The Project is heavy on administration. I think Moz benefits greatly by encouraging many smaller high-risk ideas to be tried out away from the main project. When that idea is more refined, it should have a greater chance of sneaking back into the mothership.
No doubt the lobbying and politics within the much larger Moz project would hamper more radical, but possibly better evolutionary changes.
That it is a brower and not Linux is quite important. Few want to try out a new OS for couple tweaks, but a 10 MB browser doesn't strike me as very hard.
Re:Is excessive plurality really useful? (Score:2)
No wait, let me think about it <pause for a beat> YES!
You want to have as many of these projects as you can, and then over the next few years most will be shaken out. Even now, Mozilla is feeling the pressure to work on performance. Why? Because Galeon, Konqeror, Phoenix and lynx (:) are all faster on UNIX and UNIX-like systems. This forces Mozilla to evaluate its place. Do they want to drop the browser as a reference effort and just focus on the "browser-building toolkit"? If not, they need to compete on the performance level or on some other level (e.g. bring the mailer and the browser closer together and make that interaction something worth the slow-down, which it is not right now).
Mozilla is a great browser, and if Galeon weren't an even better one, I'd use it. Everyone wins because of this competition, just as everyone wins because KDE and GNOME have both worked so had to be at least as featureful and usable as eachother.
Re:Is excessive plurality really useful? (Score:2)
You can't take all the UI innovation and just put it all in one Super Browser. That will suck -- UI is about what you leave out, not just what you include. No one really knows what The Goal is for all these -- there is no clear vision of what The Most Usable browser will look like. So we have lots of people experimenting with different ideas.
Re:Is excessive plurality really useful? (Score:2)
Example: on TheOpenCD [theopencd.org] (CD of GNU applications for windows) this was discussed: do we include Mozilla?
Obvious answer: yes of course. Mix of NPL, MPL, GPL, so we could distribute it.
Later answer: no. The mozilla team consider it a technology-demo for tecchies only, and do not want to support lusers trying to use it. Their answer: "please don't distribute it without putting your own branding on, or use a derivative [netscape, k-meleon, beonix...]"
So a slashdot article to show people how to create such derivatives, with links to a book? Great.
Re:Look to Windows for an Answer (Score:2)
The key is to cobble together a usefully different functional custom web browser with minimal effort. The fundamentals must be in place or you wind up with a big mess.
For the slow "market share" death that mature markets seem to develop, what about all the wierd basic 4-function calculators? The market's mature when you choose a browser based on the color of its icon.
why is that... (Score:5, Funny)
Re:why is that... (Score:4, Funny)
Re:why is that... (Score:2)
Mozilla Love (Score:1)
I certainly don't suggest installing a custom Mozilla browser from any porn sites!
Does anyone know if the spyware knuckleheads have exploited this feature yet, either?
Re:Mozilla Love (Score:2)
Kill mozilla like they killed netscape the first time.
Free online book (Score:5, Informative)
(Apologies if this has been mentioned before; I did a quick search and didn't see it.)
Re:Free online book (Score:2)
I submitted it as a story to Slashdot and it was rejected.
Re:Free online book (Score:2)
How is this different from IE? (Score:4, Informative)
Re:How is this different from IE? (Score:2)
Re:How is this different from IE? (Score:4, Insightful)
All you gotta do is drop the COM object into a VB project. You can literally have your "own" browser in about 30 seconds. How's this any different?
Try doing that in any non-Microsoft operating system. THAT'S what's different. You can get Gecko for nearly anything.
Re:How is this different from IE? (Score:2)
Non-MS OS's isn't a realistic concern for user products (as opposed to server products). Whether you develop for consumers or even internally for corporations, multiple OS's on the desktop is a moot point. Browsers aren't used on servers.
What do you call OS X? And last time I checked,there were a few million OS X user machines.
Re:How is this different from IE? (Score:2)
Re:How is this different from IE? (Score:5, Informative)
It also uses _exactly_ the same properties, methods and events, so you just change the name of the gecko control to the name of your IE control, and it works, I've done it.
Re:How is this different from IE? (Score:2)
Re:How is this different from IE? (Score:2)
Re:How is this different from IE? (Score:2)
But, other than all of those reasons you mean.
Let me tell you something... (Score:2)
Re:How is this different from IE? (Score:2)
Re:How is this different from IE? (Score:2)
and the webbrowser control has been there since vb4.0, so even if you wanted to do it in vb, you wouldn't have to shell for
though you'd never convice this crowd.
yay mozilla! you're one step closer to being IE!
Re:How is this different from IE? (Score:2)
The only comparable hole in Mozilla was patched before 1.0 and was done quickly once discovered, unlike Microsoft's "We'll fix it when we get to it" attitude.
Actually, handled by anyone else, IE might not be bad. It's MS that sucks. Relying on their software hurts. I suspect that by now, IE's code is as spaghetti-ish as Netscape's was before they killed it and wrote Mozilla, but because of MS's internal politics it'll never get re-written, it'll just have more and more cruft glued onto it resulting in more interesting bugs.
If they ever get Palladium working they'll have to face that the biggest threat to user security (which isn't their main focus, security *from* users is...) is IE and they'll probably start only rendering web pages signed by trusted coders or something to avoid fixing it. Chuckle.
Still doesn't fix the "frontpage problem" (Score:3, Informative)
We need a mozilla-esque frontpage replacement. GNU/Dreamweaver anyone?
Re:Still doesn't fix the "frontpage problem" (Score:2)
Maybe the mozilla team could get off their high horses and work with the rest of the world.
Is something a standard because W3 or the Mozilla guys say so? Or because 90% of browsers on peoples machines say so? Like it or not, you have to face facts sometimes.
Making mozilla compatible with real life websites is its best hope for the future.
Re:Still doesn't fix the "frontpage problem" (Score:2)
In a word, Yes.
If Mozilla were to code for every quirk that is IE specific, they would be recreating IE, and who wants to do that? You also even if you wanted to can't do this on a crossplatform level, because IE isn't a truely crossplatform browser.
"Making mozilla compatible with real life websites is its best hope for the future"
Somehow I think Mozilla is doing just fine. Warping an Internet browser to fit Microsoft's vision of the web is what IE is for, you'll excuse Mozilla if they don't want to contribute to a Microsoft only web.
It sounds to me like you should just stick to using IE, you'll be a lot happier.
Re:Still doesn't fix the "frontpage problem" (Score:2)
Many people make a big deal that these standards are called "recommendations," but this is semantic quibbling. It's like saying that you don't believe in the theory of relativity because it's only a "theory."
What's Microsoft up to? Roll your own IE. (Score:2)
Platform builder comes with an application called "IESample" which is basically a frame you can tweek to roll your own version of IE. With a few hours of work, I found it pretty easy to modify the beast to match some custom requirements we had to change the page being viewed when an outside stimulus was activated. You can take a look here [microsoft.com] to see the IE interfaces exposed.
Again, this is entirely in the CE world. I can not speak to embedded XP or the desktop.
PS - Several months ago, I was in a week long CE training class. I was amazed that on the day I learned about rolling a version of IE, I clicked on the TV and saw it in the news. An MS exec was testifying in front of congress (the senate?) about how IE was not modular in any way shape or form. Then one of the committee members brought up CE. A shame the news didn't report the exec's reaction...
Re:What's Microsoft up to? Roll your own IE. (Score:2)
When I'm stuck using IE only sites, I use an IE enhancer, Crazy Browser [crazybrowser.com], provides tabs, and other security features that I turn off (cookie/popups/etc), but its free and fills the missing functions.
Just use LWP::UserAgent (Score:2)
To the rescue! (Score:2)
lizard featured on the cover of the oreilly book (Score:2)
the lizard featured on the cover of the oreilly book advertised off to the side of this article is a frill-necked lizard
native to that land of weird and wonderful animals, terra australis
and this lizard is one little terror australis - have a look at some of the pictures on this page [mira.net]
Follow the Abi example (Score:2)
AbiWord uses wrappers to compile its XP libraries into native widgets, for platforms as diverse as Win32, GTK/GNOME, QNX, and BeOS. Mozilla, instead, uses those same libraries, but uses XUL widgets; they look the same on any platform, but completely inconsistent with the platform they're on.
Moz should follow Abi's example. Eschew in-browser themes, and just use a wrapper to convert at compile-time to native widgets.