Closed Bug 106122 Opened 24 years ago Closed 24 years ago

xpti needs to use new, expanded, path keys on nsIDirectoryServiceProvider

Categories

(Core :: XPConnect, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: jud, Assigned: jband_mozilla)

References

Details

(Keywords: topembed)

Attachments

(2 files, 1 obsolete file)

Currently xpti uses a hardcoded path(s) to scan for xpt files. It should use nsIDirectoryServiceProvider to get path info.
Depends on: 105440
Keywords: topembed
Well, xpti does use that service - and does not use any hardcoded paths. What it does need to do is start using the new keys that will be available when bug 105440 is fixed.
updating summary from: "xpti needs to use nsIDirectoryServiceProvider to determine scanning directories"
Summary: xpti needs to use nsIDirectoryServiceProvider to determine scanning directories → xpti needs to use new, expanded, path keys on nsIDirectoryServiceProvider
105440 is gone, nominating for edt0.9.4
Keywords: edt0.9.4
Use NS_APP_PLUGINS_DIR_LIST instead of NS_OS_PLUGINS_DIR_LIST. The "OS" list is defined by the OS and contains plugins used by all apps, i.e, Flash, Acrobat, QuickTime. The "APP" list is defined by the application (mozilla or an embedding app). Other than that, looks good.
d'oh. I fixed the key in my tree.
Attachment #56374 - Flags: review+
conrad, what's the best way to test this? is there a provider that provides a list for this key in one of the test harnesses?
Attached patch better patchSplinter Review
This fixes the problems with the previous patch - It uses Get instead of GetFiles (which does not do what was expected). - It uses the right key (NS_APP_PLUGINS_DIR_LIST). - It fixes a prblem where the menifest reader did not the change when a directory is added to the search path that was not there in the previous run.
Attachment #56374 - Attachment is obsolete: true
Comment on attachment 57282 [details] [diff] [review] better patch This one is good. r=ccarlen
Attachment #57282 - Flags: review+
Target Milestone: --- → mozilla0.9.7
Comment on attachment 57282 [details] [diff] [review] better patch sr=jst
Attachment #57282 - Flags: superreview+
fix in trunk. Will prepare a patch for 0.9.4 branch.
So, this caused the blocker bug 109893. sfraser is going to checkin a oneliner to comment out the addition of the the plugins dir to the search path. I'm going to look at why that was a problem on Mac. On Mac they actually have a jar file in the plugins directory. I'm told that openning that file fails - perhaps due to a permissions problem. At minimum we need to understand that and also probably make it not fatal to fail in attempting to open a jar file when we are searching for interface infos.
Depends on: 109893
Same fix but for the 0.9.4 branch. Also includes the fix from bug 109893 - the regression caused by the original patch here (since fixed in the trunk).
Comment on attachment 58089 [details] [diff] [review] version of fix for the 0.9.4 branch r=ccarlen
Attachment #58089 - Flags: review+
Comment on attachment 58089 [details] [diff] [review] version of fix for the 0.9.4 branch sr=jst
Attachment #58089 - Flags: superreview+
edt: This one is ready for 0.9.4. I'm waiting for your approval.
please checkin to the 0.9.4 branch when you have a chance. once landed, add "fixed0.9.4" to the keyword field as well. Thanks!
Keywords: edt0.9.4edt0.9.4+
fix checked in the 0.9.4 branch
Status: NEW → RESOLVED
Closed: 24 years ago
Keywords: fixed0.9.4
Resolution: --- → FIXED
Marking Verified -
Status: RESOLVED → VERIFIED
verified on 094 (i.e. patch verified on MOZILLA_0_9_4_BRANCH tag in CVS repository)
Keywords: verified0.9.4
Keywords: fixed0.9.4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: