[Project_owners] Re: install.js and OSX

Philip Chee philip at aleytys.pc.my
Fri May 19 20:51:05 EDT 2006

On Fri, 19 May 2006 09:22:30 +0100, Neil wrote:

> Ah, it must have been the new leakmonitor.xpt file that triggered 
> autoreg; I didn't get a new component (on Windows I got both 
> leakmonitor.xpt and leakmon.dll).

I have the following in the install.js:

var components          = new Array( "components/leakmonitor.xpt" );
var platformStr = new String(Install.platform);
if (!platformStr.search(/^Win/)) {
  components.push( "platform/WINNT_x86-msvc/components/leakmon.dll" );
else if (!platformStr.search(/linux/i)) {
  components.push( "platform/Linux_x86-gcc3/components/libleakmon.so" );
else if (!platformStr.search(/.*Darwin/i)) {
"platform/Darwin_ppc-gcc3/components/libleakmon-ppc.dylib" );
"platform/Darwin_x86-gcc3/components/libleakmon-x86.dylib" );

What does Install.platform return on your linux box?

The attached platform.xpi just contains an install.js that says:

var platformStr = new String(Install.platform);

Philip Chee <philip at aleytys.pc.my>, <philip.chee at gmail.com>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
[ ]Its not a stolen tagline, it's just "previously viewed"
* TagZilla 0.059
-------------- next part --------------
A non-text attachment was scrubbed...
Name: platform.xpi
Type: application/x-xpinstall
Size: 220 bytes
Desc: not available
Url : http://mozdev.org/pipermail/project_owners/attachments/20060519/97f146a4/platform-0001.bin

More information about the Project_owners mailing list