binary XPCOM components

General discussion about web technology.
Post Reply
User avatar
therube
Ambassador
Posts: 7929
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

binary XPCOM components

Post by therube »

Since you've brought it up, Killing Binary XPCOM in Add-ons. Is JavaScript Fit?, & since I've been meaning to ask ...


Is my (neophyte) description somewhat accurate?
what is this "XPCOM component"?

From what I gather, some extensions use DLL's (essentially an EXE, but in this case linked with "Mozilla code"). DLL's, long known for "DLL Hell", seemingly also give Mozilla headaches. So Mozilla is looking to do away with them, providing JavaScript constructs as an alternative. Due to the "hell", Mozilla is looking to do away with XPCOM components (DLLs, so less hell). During this conversion period, Mozilla is specifically breaking DLLs with each new release. So if you want your extension (or more likely, plugin, like say from Eset's Email scanner), you (Eset) needs to update its DLL (or change from DLL to JavaScript) upon a new release. And Mozilla wants that so that Eset, in case they fail to update, they do not break Mozilla.
http://www.dslreports.com/forum/r260045 ... ~start=140


And then there is the flashgot.exe. And that differs (& it is different) from a binary XPCOM component, how? In that it is a totally stand-alone application, not reliant on anything "Mozilla" (libraries or whatever), hence you have no requirement to update it with (as is the case now) each new (FF) release.


Similarly I noted that Fireshot will no longer work without a "binary component" update.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20110706 Firefox/5.0 SeaMonkey/2.2
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: binary XPCOM components

Post by dhouwn »

Yep, this binary does not seem to link to anything Mozilla-related and also is not necessary for the core FlashGot functionality (how else could the extension work on non-Win32 platforms?), so it's no problem for Giorgio I believe.
But should Firefox run in low integrity mode in the future then I guess this might pose a challenge (would an elevation dialog have to pop-up?).
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: binary XPCOM components

Post by Giorgio Maone »

dhouwn wrote:is not necessary for the core FlashGot functionality (how else could the extension work on non-Win32 platforms?)
It is necessary to talk with most Windows download manager. On Linux, FlashGot uses dynamically created bash scripts instead, and on Mac OS X AppleScript, mostly.
dhouwn wrote: But should Firefox run in low integrity mode in the future then I guess this might pose a challenge (would an elevation dialog have to pop-up?).
If ever that bug gets "fixed", I strongly suspect the low integrity process will be the content one (either one for all content, as it is currently on Mobile, or one per tab, Chrome-style).
So the ability to launch external executables will be probably retained by the chrome process.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Post Reply