mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug #236774 --> port some seamonkey improvements suggested by Neil to thunderbird to clean up some JS
This commit is contained in:
parent
1e40577df7
commit
efdffbdc63
@ -1158,19 +1158,17 @@ function ComposeStartup(recycled, aParams)
|
||||
|
||||
else if (window.arguments && window.arguments[0]) {
|
||||
try {
|
||||
if (typeof window.arguments[0] == "string")
|
||||
if (window.arguments[0] instanceof Components.interfaces.nsIMsgComposeParams)
|
||||
params = window.arguments[0];
|
||||
else
|
||||
params = handleMailtoArgs(window.arguments[0]);
|
||||
else if (typeof window.arguments[0] == "object" && window.arguments[0] instanceof Components.interfaces.nsIMsgComposeParams)
|
||||
params = window.arguments[0].QueryInterface(Components.interfaces.nsIMsgComposeParams);
|
||||
}
|
||||
catch(ex) { dump("ERROR with parameters: " + ex + "\n"); }
|
||||
|
||||
// if still no dice, try and see if the params is an old fashioned list of string attributes
|
||||
// XXX can we get rid of this yet?
|
||||
if (!params)
|
||||
{
|
||||
args = GetArgs(window.arguments[0]);
|
||||
}
|
||||
}
|
||||
|
||||
var identityList = document.getElementById("msgIdentity");
|
||||
|
Loading…
Reference in New Issue
Block a user