Closed Bug 85867 Opened 23 years ago Closed 23 years ago

langenus.xpi does not install properly when smartupdating

Categories

(SeaMonkey :: Installer, defect)

x86
Windows NT
defect
Not set
blocker

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ssu0262, Assigned: slogan)

Details

(Whiteboard: have patch, critical for 0.9.2, have r=,sr=,a=)

Attachments

(4 files)

When smartupdating from 6.0x -> 6.1b1, langenus.xpi will not correctly detect 
which OS it is running from.  This is because during this smartupdate scenario, 
the browser is version 6.0.  This version of the browser does not support 
'Install.platform', only 6.1b1 does.  This will cause the wrong file to be 
registered.

This is filed in bugzilla because langenus.xpi from mozilla also has the same 
problem, not necessarily with N6.0x, but with earlier versions of mozilla.

patches for both mozilla and ns on all platforms coming up.
QA Contact: gbush → jimmylee
Whiteboard: have patch;need r=,sr=,a=
Nice hack!  Sorry to generate more work but can we make this a function call in
share.t used something along the lines:
platformNode = getPlatform();

where getPlatform() is defined as:
function getPlatform()
{
  if('platform' in Install)
  {
    platformStr = new String(Install.platform);
    if (!platformStr.search(/^Macintosh/))
      platformNode = 'mac';
    else if (!platformStr.search(/^Win/))
      platformNode = 'win';
    else
      platformNode = 'unix';
  }
  else
  {
    var fOSMac  = getFolder("Mac System");
    var fOSWin  = getFolder("Win System");
    var fOSUnix = getFolder("Unix Local");
    logComment("fOSMac: "  + fOSMac);
    logComment("fOSWin: "  + fOSWin);
    //  logComment("fOSUnix: " + fOSUnix); <-- XXX remove this; it is not used!
    if(fOSMac != null)
      platformNode = 'mac';
    else if(fOSWin != null)
      platformNode = 'win';
    else
      platformNode = 'unix';
  }

  return platformNode;
}
Oh, err, also remove this line since itis not used:
var fOSUnix = getFolder("Unix Local");

Nice!  r=sgehani
rs = mscott
a=blizzard on behalf of drivers for 0.9.2
Whiteboard: have patch;need r=,sr=,a= → have patch, critical for 0.9.2, have r=,sr=,a=
fixed.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Stray old bug.  Verified on all platforms.  It's updated.  Marking Verified.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
Component: Installer: XPI Packages → Installer
QA Contact: jimmykenlee → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: