Closed
Bug 56365
Opened 25 years ago
Closed 15 years ago
mailOverlay.xul abuses <script>...</script>
Categories
(SeaMonkey :: MailNews: Message Display, defect)
SeaMonkey
MailNews: Message Display
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.1final
People
(Reporter: timeless, Assigned: ewong)
References
()
Details
Attachments
(1 file, 3 obsolete files)
|
6.15 KB,
patch
|
ewong
:
review+
ewong
:
superreview+
|
Details | Diff | Splinter Review |
Please move
<script language="JavaScript">
<![CDATA[
...
]]>
</script>
into a .js file.
Comment 1•25 years ago
|
||
See related bugs 56365, 56368, 56370, 56372, and 56374.
Comment 2•25 years ago
|
||
Why create more files? I don't see this as a bug.
QA Contact: esther → stephend
Updated•21 years ago
|
Product: Browser → Seamonkey
Updated•17 years ago
|
Assignee: scottputterman → mail
Priority: P3 → --
QA Contact: stephend → search
Comment 3•17 years ago
|
||
This bug is being marked EXPIRED as it has seen no activity in a very long time.
If you think that the issue reported might still be relevant, please test with a recent release of SeaMonkey and if the problem persists feel free to re-open the report. Thank you.
http://www.seamonkey-project.org/
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → EXPIRED
Comment 4•17 years ago
|
||
This bug is being marked EXPIRED as it has seen no activity in a very long time.
If you think that the issue reported might still be relevant, please test with a recent release of SeaMonkey and if the problem persists feel free to re-open the report. Thank you.
http://www.seamonkey-project.org/
Comment 5•17 years ago
|
||
Surprisingly enough, just the passage of time doesn't make it right to include script in XUL.
Status: RESOLVED → REOPENED
Resolution: EXPIRED → ---
Updated•17 years ago
|
Assignee: mail → nobody
QA Contact: search → message-display
Updated•16 years ago
|
Status: REOPENED → NEW
Updated•16 years ago
|
| Assignee | ||
Comment 6•15 years ago
|
||
Taking this for a spin.
Assignee: nobody → ewong
Status: NEW → ASSIGNED
| Assignee | ||
Comment 7•15 years ago
|
||
Attachment #523980 -
Flags: review?(mnyromyr)
Comment 8•15 years ago
|
||
Comment on attachment 523980 [details] [diff] [review]
Moved the scripting into a new js file.
>+++ b/suite/mailnews/openMsgDialog.js
What's the reason not to name it mailOverlay.js?
Usually a .js file included by just one .xul file gets the same base name.
>+ * The Original Code is Thunderbird Mail Client.
I very much doubt that. ;-)
>+ * The Initial Developer of the Original Code is
>+ * the Mozilla Foundation.
>+ * Portions created by the Initial Developer are Copyright (C) 2009
>+ * the Initial Developer. All Rights Reserved.
You may want rethink those as well. ;-)
>+function goOpenNewMessage()
>+{
…
>+ var msgComposeService = Components.classes["@mozilla.org/messengercompose;1"].getService();
>+ msgComposeService = msgComposeService.QueryInterface(Components.interfaces.nsIMsgComposeService);
While touching this, you could as well move the QI into the getService call.
Attachment #523980 -
Flags: review?(mnyromyr) → review-
| Assignee | ||
Comment 9•15 years ago
|
||
Attachment #523980 -
Attachment is obsolete: true
Attachment #526724 -
Flags: review?(mnyromyr)
Comment 10•15 years ago
|
||
Comment on attachment 526724 [details] [diff] [review]
Moved JS code to mailOverlay.js
Just two nits:
>+ * The Original Code is SeaMonkey code.
>+ *
>+ * The Initial Developer of the Original Code is
>+ * the Mozilla Foundation.
>+ *
>+ * Portions created by the Initial Developer are Copyright (C) 2011
>+ * the Initial Developer. All Rights Reserved.
According to <http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/mailnews/base/resources/content/mailOverlay.xul&rev=1.22&mark=10-40>, the code was written initially in 2000-2003, so just use that range instead of 2011.
>+ var msgComposeService =
>+ Components.classes["@mozilla.org/messengercompose;1"]
>+ .getService(Components.interfaces.nsIMsgComposeService);
>+
>+ msgComposeService.OpenComposeWindow(null, null, null,
>+ Components.interfaces.nsIMsgCompType.New,
>+ Components.interfaces.nsIMsgCompFormat.Default,
>+ null, null);
Contemplating over this a bit I think we don't need the variable msgComposeService at all, just take care of the indentation.
Attachment #526724 -
Flags: review?(mnyromyr) → review-
| Assignee | ||
Comment 11•15 years ago
|
||
Attachment #526724 -
Attachment is obsolete: true
Attachment #526968 -
Flags: review?(mnyromyr)
Comment 12•15 years ago
|
||
Comment on attachment 526968 [details] [diff] [review]
Moved JS code to mailOverlay.js (v3)
>+ Components.classes["@mozilla.org/messengercompose;1"]
>+ .getService(Components.interfaces.nsIMsgComposeService);
>+ .OpenComposeWindow(null, null, null,
>+ Components.interfaces.nsIMsgCompType.New,
>+ Components.interfaces.nsIMsgCompFormat.Default,
>+ null, null);
I know, some changes seem dead simple, but I'd really suggest applying patches and at least checking the JS error console before attaching them. :-P
r/moa=me with the obvious syntax error fixed.
Attachment #526968 -
Flags: superreview+
Attachment #526968 -
Flags: review?(mnyromyr)
Attachment #526968 -
Flags: review+
| Assignee | ||
Comment 13•15 years ago
|
||
Fixed obvious mistake in v3.
Attachment #526968 -
Attachment is obsolete: true
Attachment #527266 -
Flags: superreview+
Attachment #527266 -
Flags: review+
| Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Comment 14•15 years ago
|
||
I fixed your DOS line endings before pushing!
Pushed:
http://hg.mozilla.org/comm-central/rev/62b048f67953
http://hg.mozilla.org/releases/comm-2.0/rev/7ca68abfacca
Status: ASSIGNED → RESOLVED
Closed: 17 years ago → 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.1final
You need to log in
before you can comment on or make changes to this bug.
Description
•