Slashdot Log In
Developing Firefox Extensions with GNU/Linux
Posted by
Zonk
on Sat Sep 10, 2005 03:33 PM
from the extend-the-browser-extend-the-fun dept.
from the extend-the-browser-extend-the-fun dept.
QT writes "Ars Technica has a lengthy but useful introduction to
developing Firefox extensions with GNU/Linux. This guide comes hot on the heels of the RC for Beta 1 of Firefox.
The article is a little more thorough than necessary, but I can't complain about anything that spurs Firefox development." From the article: "What can you do with a Firefox Extension? Firefox extensions can modify the Firefox user interface. This includes adding buttons to tool bars and menus; changing fonts, colors, and icons; capturing events in the client interface like page loads and clicks; and modifying web pages after the browser loads them and before the user sees them. All of this functionality comes with the aspect-oriented facility of overlays. Extensions also have as much access to the file system as the user running Firefox. Extensions can add protocol handlers, hooking actions to URLs like icq://, aim://, or stantz://. Extensions have UniversalXPConnect privileges, allowing them to harness any XPCOM component. Firefox comes with a rich library of XPCOM components that permit your extension to drive very low-level functionality like sockets from Javascript. You can also augment the XPCOM library with Firefox extensions by adding Javascript, linkable libraries, or XPIDL."
This discussion has been archived.
No new comments can be posted.
Developing Firefox Extensions with GNU/Linux
|
Log In/Create an Account
| Top
| 146 comments
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
this reminds me... (Score:2, Insightful)
Re:this reminds me... (Score:5, Insightful)
(http://slashdot.org/)
Re:this reminds me... (Score:4, Informative)
Re:this reminds me... (Score:5, Insightful)
Firefox extensions are quite different. They typically extend the functionality of the browser, independent of the web sites you might use. I say typically because there are counterexamples, for instance extensions designed to make working with Wikipedia easier. But this is the exception, not the norm. Firefox extensions aren't "meant" to be used by a lot of different web site, and people would find it quite strange if they were required to install an extension for viewing just one web site.
So maybe the technology is similar (I wouldn't know), the way they are typically used, and were designed and meant to be used are quite different.
Where's my bittorrent:// ? (Score:3, Insightful)
I would love to simply do a bittorrent from firefox. I think that'd spur alot more users and make it easier to... um... *LEGAL* download torrents... (like knoppix, fedora, etc.)
Bring on the torrents!!!
Re:Where's my bittorrent:// ? (Score:5, Informative)
"hot the heals"? (Score:1, Insightful)
And that statment "RC for Beta 1 of Firefox" without the "v 1.5" modifier implies that Firefox is something new that is about to be released. Does no one even try to edit these things?
You do realize that these mistakes distract readers' attention from the actual article content, right?
In other words... (Score:5, Insightful)
(http://www.underachievement.org/ | Last Journal: Sunday January 21 2007, @10:58PM)
Hmmm, sounds a lot like ActiveX. While the main intent for the two is a little different (browser tweaking vs. client-side scripting & server interaction), both require users to make informed decisions. People going on about how Firefox is so much safer because it doesn't support ActiveX might need to consider dropping that argument. As Firefox's market share grows, so will the number of websites that advertise Firefox plugins, and unaware users will be just as susceptible to malware and viruses as they were with IE.
Common misconceptions about XPCOM and ActiveX (Score:5, Informative)
(http://www.donhopkins.com/ | Last Journal: Monday February 23 2004, @09:48AM)
XPCOM extensions for Firefox are compiled binary machine language files, which have just as much access to your system as ActiveX controls do. Firefox XPCOM extensions are no more secure than ActiveX controls. Binary ActiveX and XPCOM controls are useful for situations where you need to do things that JavaScript doesn't support, like shaping the window of a pie menu [piemenus.com] (an open source ActiveX component, that you can download the source code if you like).
Internet Explorer has something similar to the way you can write Firefox extensions in JavaScript and UIL. But that's a totally different thing than binary ActiveX controls and behaviors, and it severly restricts what you can do.
You can script trustable ActiveX controls for Internet Explorer called "Dynamic HTML Behavior Components", using JavaScript (or any other ActiveX compatible scripting languages), XML and DHTML.
For example, user interface components like JavaScript Pie Menus for Internet Explorer [piemenus.com] or the Run On Sentence dynamic text animation style [piemenus.com] run with the same restrictions as JavaScript in the browser, so they can't access files or shape popup windows. (Also open source).
-Don
Re:anti-ActiveX (Score:4, Interesting)
(http://arc.nucapt.northwestern.edu/F/OSS)
As I said, though: webpages could tell IE (at least used to) where to download an ActiveX control. If the control was not already installed, IE would automatically download and install the control from the specified source. In firefox, the page must me whitelisted before extensions could be downloaded. Can someone tell me if IE has changed to the whitelist model yet? Last I heard, they were even maintaining a list of malicious ActiveX controls. This seemed inance to me, as there is most likely more malicious junk out there than truly useful controls.
Re:In other words... (Score:4, Informative)
(http://www.pseudotheos.com/)
I'm not sure that users would be very accepting of an environment in which they were asked each time an app requested a new file handle -- "would you like to allow Firefox to access
Suggestions? Existing (partial) solutions? (This is your opportunity to go on at length about your preferred, overly-safe-for-you operating system, and for others to trash it on grounds of any remaining work-arounds.)
Thinking of writing an extension ... (Score:1, Troll)
My thinking on the subject (Score:5, Insightful)
(http://www.uberm00.net/ | Last Journal: Monday January 19 2004, @09:27PM)
Only when you're EXTENDING FIREFOX.
If your website requires an extension (or, for that matter, ActiveX) to work, you're simply coding it incorrectly.
Possible exceptions includes Windows Update, but even then, Microsoft coded that as part of the OS in XP, so the web portal really isn't necessary.
Danger Will Robinson! (Score:5, Insightful)
(http://www.smotricz.com/ | Last Journal: Wednesday December 07 2005, @07:51PM)
I realize that there are some differences, such as the fact that the red carpet is only rolled out for extensions the user trusts, but... when you advertise Firefox to dummies, your trusting users will BE dummies!
Review of Pro Firefox? Other book suggestions (Score:2)
(http://arc.nucapt.northwestern.edu/F/OSS)
More Resources (Score:5, Informative)
(http://thepeckfamily.us/ | Last Journal: Wednesday November 14, @10:29AM)
http://www.xulplanet.com/ [xulplanet.com]
http://kb.mozillazine.org/Dev_:_Extensions [mozillazine.org]
http://roachfiend.com/archives/2004/12/08/how-to-
http://businesslogs.com/technology/firefox_extens
http://www.bengoodger.com/software/mb/extensions/
http://mozilla-firefox-extension-dev.blogspot.com
http://books.mozdev.org/index.html [mozdev.org]
http://www.mozilla.org/xpfe/gettingstarted.html [mozilla.org]
Of course another good way to learn about extensions is to download a few and look at the code. That has probably been the biggest help to me once the tutorials, etc. gave me the basic idea of what is going on.
Talk about appropriate... (Score:3, Funny)
long-needed protocol handler (Score:1)
A Firefox plugin for supponting such URLs would be a huge boost for freenet.
www.freenetproject.org [freenetproject.org]
another tutorial (Score:2)
(http://www.karastathis.org/ | Last Journal: Tuesday April 05 2005, @07:51PM)
Speaking as one who has coded... (Score:1)
(http://www.penguinpetes.com/ | Last Journal: Tuesday March 14 2006, @03:38AM)
But I like how Python comes up yet again. It's nice, for once in my life, to learn a language and *then* see it catch on in a big way, instead of finishing learning a language on the very last day before it dies. I'm predicting that Python is going to soon be as ubiquitous as BASIC was back in the Stone Age.
Re:XPIDL? (Score:1)
"XPCOM: OS Defence" being the most popular.
Re:Request for Firebird developers (Score:2, Informative)
(http://www.baumanfamily.com/john/)
HORRIBLE idea (Score:2)
(http://arc.nucapt.northwestern.edu/F/OSS)
Re: Firefox 1.5 (Score:2)
Re: Firefox 1.5 (Score:1)
Re:Hot on the Heals (Score:2)
Discussing the security vulnerabilities is entirely appropriate, but bringing them up on every Firefox article when it is completely off-topic is flamebait.
Re:But what if... (Score:2, Funny)
(http://www.i2p.net/ | Last Journal: Saturday January 15 2005, @03:35AM)