Closed
Bug 22957
Opened 25 years ago
Closed 16 years ago
move openWindow() out of nsNNTPNewsgroupList.cpp and nsMsgComposeService.cpp
Categories
(MailNews Core :: Backend, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.0b2
People
(Reporter: sspitzer, Assigned: standard8)
Details
Attachments
(1 file)
(deleted),
patch
|
neil
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
right now, both nsNNTPNewsgroupList.cpp and nsMsgComposeService have a static
function openWindow(). news uses it to launch the download headers dialog and
compose uses it to open the compose window.
to make it work, both compose and news are linking against the javascript
library, to get JS_PushArguments() and JS_PopArguments
the right thing to do would be to move this code into the nsCommonDialog service
code. we want the ability to launch any given xul url as a dialog or as a window.
the second step will be to pass the arguments not as a PRUnichar * (like
"arg1=val1,arg2=val2", but as nsIDialogParamBlock or something like that.
see DoDialog()
Reporter | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M13
Reporter | ||
Comment 1•25 years ago
|
||
marking m13, accepting.
Reporter | ||
Updated•25 years ago
|
Target Milestone: M13 → M14
Reporter | ||
Comment 2•25 years ago
|
||
moving this to m14.
Reporter | ||
Updated•25 years ago
|
Priority: P3 → P2
Reporter | ||
Comment 3•25 years ago
|
||
marking p2
Comment 4•25 years ago
|
||
No user-visible downside is described here, so pushing out to M15.
Target Milestone: M14 → M15
Reporter | ||
Comment 5•25 years ago
|
||
I'm nsIDialogParamBlock in nsNNTPNewsgroupList.cpp (and eventually I'll switch
to nsINewsDownloadDialogArgs)
now that I understand what I'm doing, I can fix openWindow in
nsMsgComposeService and pass arguments without having to parse them from js.
Comment 7•25 years ago
|
||
Triage to M17. Please add beta2 keyword if this must make beta2. Please let me
know if this must be done by M16 feature freeze.
Target Milestone: M16 → M17
QA Contact: ppandit → stephend
Updated•20 years ago
|
Product: MailNews → Core
Comment 9•17 years ago
|
||
sorry for the spam. making bugzilla reflect reality as I'm not working on these bugs. filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
Status: ASSIGNED → NEW
Updated•16 years ago
|
Product: Core → MailNews Core
Assignee | ||
Comment 11•16 years ago
|
||
Although we still have OpenWindow in nsMsgComposeService.cpp, IMHO that's the right place for it.
Additionally, it doesn't use any JS functions. So I think we can stop linking against the js libs. This works for me on Mac.
If this doesn't work on other platforms, then we'll just close this bug. Otherwise we'll do this patch, then close this bug.
Assignee: nobody → bugzilla
Status: NEW → ASSIGNED
Attachment #350760 -
Flags: superreview?(neil)
Attachment #350760 -
Flags: review?(neil)
Assignee | ||
Comment 12•16 years ago
|
||
(In reply to comment #11)
> Created an attachment (id=350760) [details]
> Don't link against JS libs
...
> Additionally, it doesn't use any JS functions. So I think we can stop linking
> against the js libs. This works for me on Mac.
Also works on Linux.
Updated•16 years ago
|
Attachment #350760 -
Flags: superreview?(neil)
Attachment #350760 -
Flags: superreview+
Attachment #350760 -
Flags: review?(neil)
Attachment #350760 -
Flags: review+
Comment 13•16 years ago
|
||
Comment on attachment 350760 [details] [diff] [review]
Don't link against JS libs
> $(LIBS_DIR) \
> $(EXTRA_DSO_LIBS) \
>- $(MOZ_JS_LIBS) \
> $(MOZ_UNICHARUTIL_LIBS) \
> $(MOZ_COMPONENT_LIBS) \
> $(NULL)
>diff --git a/mailnews/news/build/Makefile.in b/mailnews/news/build/Makefile.in
>--- a/mailnews/news/build/Makefile.in
>+++ b/mailnews/news/build/Makefile.in
>@@ -85,9 +85,8 @@ EXTRA_DSO_LDOPTS = \
> -L$(DIST)/bin \
> -L$(DIST)/lib \
Not part of this bug but this should be $(LIBS_DIR) too, no?
Assignee | ||
Comment 14•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: Future → Thunderbird 3.0b2
You need to log in
before you can comment on or make changes to this bug.
Description
•