Closed
Bug 25152
Opened 25 years ago
Closed 25 years ago
[regression] Autoreg doesn't descend into subdirs of components/
Categories
(SeaMonkey :: General, defect, P1)
SeaMonkey
General
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: dp, Assigned: dougt)
References
Details
(Whiteboard: [PDT+])
I checked this on both win and linux and it doesnt look like autoreg is
descending into subdirs of components/
Kins needs that because he is installing spellchecker into
components/spellchecker
The bug is in the method nsLocalFile::IsDirectory(). It's returning a value that
is not PR_TRUE or PR_FALSE:
*_retval = (PRBool)( mFileAttrData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY);
It can be fixed like this:
*_retval = (PRBool)( mFileAttrData.dwFileAttributes &
FILE_ATTRIBUTE_DIRECTORY != 0);
| Assignee | ||
Comment 2•25 years ago
|
||
Nice find. you can also remove the cast to (PRBool). Would you like me to
check this in, or would you like to? I bet all three platforms will have this
problem.
| Assignee | ||
Comment 3•25 years ago
|
||
unix does this:
*_retval = S_ISDIR(mCachedStat.st_mode);
| Assignee | ||
Comment 6•25 years ago
|
||
I beleive that this is now fixed. Are you still seeing this?
To reproduce:
1. Create a directory in the components directory:
2. Copy a component .so (.dll) in this new directory.
3. Blow away the component.reg file in bin.
4. Start mozilla.
5. Watch the debug window to for the component that you copied to load.
Status: NEW → ASSIGNED
| Assignee | ||
Comment 7•25 years ago
|
||
adding beta1 keyword and setting m14 checkpoint.
Keywords: beta1
Target Milestone: M14
I don't know if this is related or not bug ... Things work fine if I start the
application and there is no component.reg. The spellchecker runs fine.
If I restart the application, the spellchecker does not start up. I see the
following error in the shell:
Check Spelling starting...
**************************************************
nsNativeComponentLoader: GetFactory(Y:\ns\dist\WIN32_D.OBJ\bin\components\spellc
hecker.dll) Load FAILED with error: error 0
**************************************************
*** Exception error from Spell Checker
FYI: The spellchecker uses the generic factory template that all the other
modules use.
Severity: normal → blocker
OS: Linux → All
Priority: P3 → P1
Product: Browser → Architecture
Target Milestone: M14 → M1
Version: other → 5.0
| Assignee | ||
Comment 9•25 years ago
|
||
sounds like:
http://bugzilla.mozilla.org/show_bug.cgi?id=25277
Try blowing away your component.reg file until I check the fix in for 25277.
| Reporter | ||
Comment 10•25 years ago
|
||
No probably not. His path looks ok. I would suspect a undefined symbol in your
spell checker dll at this point.
| Assignee | ||
Comment 12•25 years ago
|
||
marking as fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 13•25 years ago
|
||
Dp,
It's not an undefined symbol. It looks like the registry is not keeping track of
the fact that the dll is in a subdirectory. I put a breakpoint in
nsNativeComponentLoader::GetFactory() and found that it is trying to load the
spellchecker.dll in the components directory ... not the components/spellchecker
directory.
| Assignee | ||
Comment 14•25 years ago
|
||
okay. I fixed the problem last night. We were not saving relative paths
correctly.
Comment 15•25 years ago
|
||
Marking Verified per dougt comments. Reopen if still a problem.
Status: RESOLVED → VERIFIED
Comment 16•25 years ago
|
||
moving from architecture product to Browser. Architecture product is going
away.
Component: XPCOM → Browser-General
Product: Architecture → Browser
Target Milestone: M14 → ---
Version: 5.0 → other
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•