Closed Bug 287441 Opened 20 years ago Closed 20 years ago

add __LOCATION__ property to help JS components to find their current location

Categories

(Core :: XPConnect, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: shaver, Assigned: shaver)

Details

Attachments

(1 file)

We have some JS components in Calendar that need to find their current path, so
that they can subscript-load other files we package in the same dir.  This code
needs to work in Sunbird, the calendar extensions for Firefox/Tbird/Seamonkey,
and in Lightning, so having a way to find the installed path at createInstance
time would be very, very helpful.

This seems like something that will likely help others as well, since it's one
of the few ways to write extension-UUID-agnostic, multi-file JS component code.
 Patch coming up, it's exactly what you expect.
Attachment #178406 - Flags: review?(dbradley)
Comment on attachment 178406 [details] [diff] [review]
__LOCATION__ is the nsILocalFile

r=dbradley

Looks good
Attachment #178406 - Flags: review?(dbradley) → review+
Fixed.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: