Closed
Bug 470971
Opened 15 years ago
Closed 15 years ago
add ability to pass GRE dir to xpcshell
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla1.9.2a1
People
(Reporter: ted, Assigned: benjamin)
References
Details
(Keywords: fixed1.9.1)
Attachments
(1 file, 1 obsolete file)
7.65 KB,
patch
|
Details | Diff | Splinter Review |
Currently you can't run xpcshell from a directory other than where components/ lives, because it expects to find those components alongside the executable. It should be possible to pass that path to xpcshell on the command line, so that you could run xpcshell from a different location.
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → benjamin
Reporter | ||
Comment 1•15 years ago
|
||
Per IRC, bsmedberg says this is tricky because we init XPCOM before parsing the commandline in xpcshell. I agreed that if it simplifies things, I'm fine with requiring the option to be the first thing on the commandline.
Assignee | ||
Comment 2•15 years ago
|
||
This supports -g <gredir> for xpcshell. You still have to do some munging of {LD,DYLD}_LIBRARY_PATH, in order to get all the libraries loaded correctly... I recommend not using run-mozilla.sh, because it messes with MOZILLA_FIVE_HOME and can get confused.
Attachment #357216 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 3•15 years ago
|
||
Note, I'm still running this through tryserver... I'm a little anxious about whether all the libxul/non-libxul configurations will work correctly, but I think they will.
Reporter | ||
Comment 4•15 years ago
|
||
Comment on attachment 357216 [details] [diff] [review] -g <gredir> for xpcshell, rev. 1 Looks sane to me, but of course I'm not an XPConnect peer.
Attachment #357216 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Updated•15 years ago
|
Attachment #357216 -
Flags: superreview?(mrbkap)
Reporter | ||
Comment 5•15 years ago
|
||
I have an updated patch for bug 460515, and it works great with this patch applied.
Updated•15 years ago
|
Attachment #357216 -
Flags: superreview?(mrbkap) → superreview+
Assignee | ||
Comment 6•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/700bca4b693f
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•15 years ago
|
||
Reopened due to Tunit bustage... it's somehow failing to get XpcomLib from the directory service, probably due to the xpcom directory being wrong somehow. I tried http://hg.mozilla.org/mozilla-central/rev/a563bc0ec80a but that didn't work.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 8•15 years ago
|
||
Just in case you haven't noticed, you backed out comment 6, but did not backout comment 7
Assignee | ||
Comment 9•15 years ago
|
||
The former patch was buggy because XRE_GetBinaryPath gives you the path of xpcshell.exe, and we really want the parent directory. This patch fixes, and also rebases against minor changes.
Attachment #357216 -
Attachment is obsolete: true
Reporter | ||
Comment 10•15 years ago
|
||
You never re-landed this, did you?
Assignee | ||
Comment 11•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/9a28db57d6a9
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 12•14 years ago
|
||
Pushed to 1.9.1: http://hg.mozilla.org/releases/mozilla-1.9.1/rev/917e4f318003
Keywords: fixed1.9.1
Updated•14 years ago
|
Target Milestone: --- → mozilla1.9.2a1
You need to log in
before you can comment on or make changes to this bug.
Description
•