Closed Bug 237918 Opened 21 years ago Closed 21 years ago

Installer build throws javascript error on file->import and import dialog does not function

Categories

(Firefox :: Migration, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

VERIFIED FIXED

People

(Reporter: richwklein, Assigned: bugs)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040318 Firefox/0.8.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040318 Firefox/0.8.0+ Error: kIMig has no properties Source File: chrome://browser/content/migration/migration.js Line: 6 Previous to this error is a warning: Warning: reference to undefined property Components.interfaces.nsIBrowserProfileMigrator Source File: chrome://browser/content/migration/migration.js Line: 1 Line 1 is: const kIMig = Components.interfaces.nsIBrowserProfileMigrator; Using the component viewer extension, I do not find a component with the nsIBrowserProfileMigrator interface. Reproducible: Always Steps to Reproduce: 1. Download and install nightly build 2. If you delete your profile this error is the first thing you hit on startup. 3. If you use an old profile then start Firefox. 4. Goto File->Import. 5. You should now get this error. Actual Results: Import dialog in nonfunctional. Expected Results: Should have a functional import dialog.
*** Bug 238150 has been marked as a duplicate of this bug. ***
I can reproduce this, as you mention this bug only appears on the Win32 installer builds. The file migration.xpt is not installed into the components directory, whereas in the zip builds it appears. I'm surprised more people haven't spotted this, I'm guessing the zipped builds must be more popular than I thought! You can reproduce this on any platform by deleting the migration.xpt file from the components directory. Fix: Include migration.xpt in the installer builds.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking0.9?
*** Bug 238173 has been marked as a duplicate of this bug. ***
Severity: normal → major
If the bus is caused by a missing file migration.xpt in the installer build, shouldn't the Component be "installer" ?
Adding migration.xpt in packages-static should fix the problem, I'm not near a Windows build environment to test it, but if you do your own builds this should make it work for you. (Note: you may still run into bug 236607 where Fx crashes on some platforms when the migration code is called)
*** Bug 238573 has been marked as a duplicate of this bug. ***
I downloaded the official 20040331 installer nightly. I installed it and copied migration.xpt over from the zip version, and the problem went away. So, I can confirm that migration.xpt is the missing file.
Is this bug in review?
(In reply to comment #5) David Hallowell, can you ask for a review on your patch?
Comment on attachment 144605 [details] [diff] [review] This should fix the problem r=bryner
Attachment #144605 - Flags: review+
checked in (plus the same change for unix/packages-static)
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Verified
Status: RESOLVED → VERIFIED
Flags: blocking0.9?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: