Closed
Bug 294405
Opened 20 years ago
Closed 20 years ago
First launch of application results in "usage" dialog being shown
Categories
(Toolkit Graveyard :: XULRunner, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.8beta2
People
(Reporter: darin.moz, Assigned: darin.moz)
References
Details
Attachments
(1 file)
|
2.21 KB,
patch
|
benjamin
:
first-review+
|
Details | Diff | Splinter Review |
First launch of application results in "usage" dialog being shown, and the application doesn't show. I have to re-run the xulrunner command line to actually show my application files. This is reproducible using the 'simple' application.
| Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla1.8beta2
| Assignee | ||
Comment 1•20 years ago
|
||
This turns out to be a regression caused by the patch for bug 293461. The incrementing and decrementing of argv and argc respectively (in nsXULRunnerApp.cpp) was causing the app restart logic to fail miserably. I removed that code, and everything works properly. I think bsmedberg was trying to avoid tickling the command line handling code, but my original solution for that was to leverage the '--app' command line flag to encapsulate the path-to-application.ini argument. At any rate, the current code is just plain broken :(
| Assignee | ||
Comment 2•20 years ago
|
||
I suspect that this bug might lend some clues as to why we are seeing a major Ts hit on beast. It seems to me that startup without a profile should not require a restart, yet as this bug exhibits, it now does. I believe that the tinderboxen usually start with a fresh profile, so they should be restarting as well.
| Assignee | ||
Comment 3•20 years ago
|
||
This patch just restores the old code and adds a comment explaining in more detail why the code is needed.
Attachment #183804 -
Flags: first-review?(benjamin)
Comment 4•20 years ago
|
||
Comment on attachment 183804 [details] [diff] [review] v1 patch ok. We might want to use an envvar instead. But this won't explain the Ts jump for Firefox.
Attachment #183804 -
Flags: first-review?(benjamin) → first-review+
| Assignee | ||
Comment 5•20 years ago
|
||
> ok. We might want to use an envvar instead.
Yeah, an envvar could be used. I would still need to munge argv since the other
arguments specified on the command line would still need to be forwarded to
nsAppRunner.cpp. I could probably just shift arguments down or something like
that. Hrm..| Assignee | ||
Comment 6•20 years ago
|
||
fixed-on-trunk i added a XXX comment about implementing this using an envvar. i wanted to just get the nightly builds working again. i'll return with a better patch later.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 7•20 years ago
|
||
*** Bug 294436 has been marked as a duplicate of this bug. ***
Updated•9 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•