David Einstein wrote: > I have made a .xpi of a spell checker for Mozilla available at > http://bugzilla.mozilla.org/attachment.cgi?id=62548. It just copies > two dlls with XPCOM components into the components directory, and two > dictionary files into a subdirectory of the components directory. > > Question 1) The cursor does not get reset after the install has > completed. I believe that this is a known bug. Is it harmless?
Sounds like a duplicate (happens anytime focus is stolen from a window for whatever reason). Harmless but annoying. > Question 2) The xpcom components do not get registered until Mozilla is > restarted. Is there a way to get XPInstall to register the components? Yes there is. *after* the performInstall() command returns SUCCESS (0) issue the refreshPlugins() command. This calls the equivalent of the browser navigator.plugins.refresh(true) which was extended a few milestones back to also register components so that "new-style" XPCOM plugins get registered too. > Question 3) On Windows 98 Mozilla crashes when the spellchecker is used > until Windows 98 is rebooted. Then everything seems to work wonderfully. If the return value from performInstall() is REBOOT_NEEDED (999) then a reboot is needed. That code is returned when you're replacing files that are in use, and not rebooting will give unpredictable results. On other platforms (including WinNT/WinXP) that return code merely requires restarting the browser itself rather than the OS, and we hope to fix Win9x to do likewise sometime in the next couple of milestones. -Dan Veditz
