Closed Bug 326238 Opened 19 years ago Closed 19 years ago

xulrunner fails if <installdir>/extensions is not available and cannot be written

Categories

(Toolkit :: Add-ons Manager, defect)

1.8.0 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: wolfiR, Assigned: robert.strong.bugs)

References

Details

(Keywords: fixed1.8.0.2, fixed1.8.1, regression, Whiteboard: [rft-dl])

Attachments

(2 files)

If the installation-directory is not writable by xulrunner it fails and exits w/o giving an obvious error message.

1. I think the build should create the extensions directory already
2. xulrunner shouldn't fail silently trying to create that directory
-> EM
Component: XULRunner → Extension/Theme Manager
Product: Toolkit → Firefox
QA Contact: xulrunner → extension.manager
Version: 1.8 Branch → 1.5 Branch
This was caused by bug 323956. Looks like it was using mozilla\xulrunner\app\profile\extensions to create the extensions directory in the app directory. I will most likely just change DirectoryInstallLocation so it won't throw when it is unable to create a missing directory so it will handle this properly whether or not the app provides an extensions directory.
Assignee: nobody → robert.bugzilla
Blocks: 323956
Keywords: regression
Attached patch patchSplinter Review
This needs additional testing but so far so good.
Attachment #211075 - Flags: review?(benjamin)
Attachment #211075 - Flags: review?(benjamin) → review?(mconnor)
Tested successfully with Firefox and with a couple of XULRunner apps.
Attachment #211075 - Flags: review?(mconnor) → review+
Attachment #211075 - Flags: branch-1.8.1+
Checked in on trunk and MOZILLA_1_8_BRANCH
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Comment on attachment 211075 [details] [diff] [review]
patch

Want this for xulrunner; according to robstrong and my own review this is very safe since it just adds a try/catch block.
Attachment #211075 - Flags: approval1.8.0.2?
Comment on attachment 211075 [details] [diff] [review]
patch

approved for 1.8.0 branch, a=dveditz for drivers
Attachment #211075 - Flags: approval1.8.0.2? → approval1.8.0.2+
Flags: blocking1.8.0.2+
Checked in to MOZILLA_1_8_0 for 1.8.0.2

Checking in mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in;
/cvsroot/mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in,v  <--  nsExtensionManager.js.in
new revision: 1.144.2.16.2.3; previous revision: 1.144.2.16.2.2
Keywords: fixed1.8.0.2
ready for testing in firefox 1.5.0.2.  I think tha the following testcase will cover this bug - please comment if more is needed:

After installing but before running firefox, set the install directory read-only and remove the extensions directory if it exists.  Then run Firefox
Whiteboard: [rft-dl]
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: