Closed Bug 300970 Opened 19 years ago Closed 19 years ago

access checks for install locations are performed repeatedly per location during a session

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.8final

People

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

Details

Attachments

(1 file, 2 obsolete files)

canAccess tests write access for each install location by creating a test
directory and then deleting it. Since an install location usually contains
multiple items this causes the same location to be tested for write access
repeatedly. I have a patch in progress and should have it finished by the end of
the weekend.
Target Milestone: --- → Firefox1.1
Attached patch patch (obsolete) — Splinter Review
Benjamin - the write access checks are performed multiple times for each
install location during the init of the datasource as well as when clicking on
items in the ui. This can cause a noticeable slowdown especially for a location
on a network and this patch addresses this.

I should probably wait on Ben to land the patch he is working on which will
probably mean that I'll need to re-submit. If you'd prefer to wait until then
to review just cancel this review.
Attachment #189589 - Flags: review?(benjamin)
Comment on attachment 189589 [details] [diff] [review]
patch

I have a slightly cleaner fix I'll submit after Ben lands his patch
Attachment #189589 - Flags: review?(benjamin)
Attached patch simple patch (obsolete) — Splinter Review
I doubt this patch will cause a problem for Ben's merge so asking for review.
Attachment #189589 - Attachment is obsolete: true
Attachment #189635 - Flags: review?(benjamin)
Attachment #189635 - Attachment is obsolete: true
Attachment #189635 - Flags: review?(benjamin)
Attached patch actual patchSplinter Review
This is the actual patch - doh!
Attachment #189636 - Flags: review?(benjamin)
Comment on attachment 189636 [details] [diff] [review]
actual patch

Go ahead and land it now, as I haven't landed bug 297312 yet.
Attachment #189636 - Flags: review?(benjamin)
Attachment #189636 - Flags: review+
Attachment #189636 - Flags: approval1.8b4+
Checking in nsExtensionManager.js.in;
/cvsroot/mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in,v  <--
 nsExtensionManager.js.in
new revision: 1.127; previous revision: 1.126
done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: