Gran Paradiso javascript can't open a thunderbird compose window.

RESOLVED INCOMPLETE

Status

()

Firefox
General
RESOLVED INCOMPLETE
11 years ago
8 years ago

People

(Reporter: Daren, Unassigned)

Tracking

3.0 Branch
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [CLOSEME 2010-11-15])

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a7) Gecko/2007080210 GranParadiso/3.0a7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a7) Gecko/2007080210 GranParadiso/3.0a7

Using Thunderbird 2.0.0.6.
With Thunderbird already open, I can execute the following code (which opens a new Thunderbird compose window) successfully in Firefox 2.0.0.6, but not in Gran Paradiso 3.0a7.  

[CODE]
// open a thunderbird compose email page
var file = Components.classes["@mozilla.org/file/local;1"]
  .createInstance(Components.interfaces.nsILocalFile);
file.initWithPath("C:\\Program Files\\Mozilla Thunderbird\\thunderbird.exe");

// create an nsIProcess
var process = Components.classes["@mozilla.org/process/util;1"]
  .createInstance(Components.interfaces.nsIProcess);
process.init(file);
var args = ["-compose","to=me@mail.com,subject=blah,attachment=file://C:\\file.txt"];
process.run(false, args, args.length);
[/CODE]

In Gran Paradiso, I receive the following error:



Reproducible: Always

Steps to Reproduce:
1. Open Thunderbird
2. Open Gran Paradiso
3. Execute the following code in Gran Paradiso (using ExecuteJS or some other method):
[CODE]
// open a thunderbird compose email page
var file = Components.classes["@mozilla.org/file/local;1"]
  .createInstance(Components.interfaces.nsILocalFile);
file.initWithPath("C:\\Program Files\\Mozilla Thunderbird\\thunderbird.exe");

// create an nsIProcess
var process = Components.classes["@mozilla.org/process/util;1"]
  .createInstance(Components.interfaces.nsIProcess);
process.init(file);
var args = ["-compose","to=me@mail.com,subject=blah,attachment=file://C:\\file.txt"];
process.run(false, args, args.length);
[/CODE]

Actual Results:  
The following error:
"Thunderbird is already running, but is not responding.  To open a new window, you must first close the existing Thunderbird process, or restart your system."

Expected Results:  
A new Thunderbird compose window should open with the "To" & "Subject" fields pre-filled and an attachment file added.

According to http://kb.mozillazine.org/Run_multiple_copies_of_Thunderbird_at_the_same_time, it should be possible to open any number of "child windows" for Thunderbird even when it is already open.

Comment 1

11 years ago
I think the underlying code has changed pretty substantially to accomodate the WHATWG spec for content and protocol handling.  Ccing dmose to get his opinion.

Updated

8 years ago
Version: unspecified → 3.0 Branch
Reporter, are you still seeing this issue with Firefox 3.6.10 or later in safe mode? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
Whiteboard: [CLOSEME 2010-11-15]
No reply, INCOMPLETE. Please retest with Firefox 3.6.12 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.