Closed Bug 126282 Opened 23 years ago Closed 22 years ago

Missing awInputElement object in Mail compose window

Categories

(MailNews Core :: Composition, defect)

x86
Linux
defect
Not set
blocker

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0

People

(Reporter: alam, Assigned: vparthas)

Details

I tried today's linux trunk build, and realize the mail compose chrome
window is missing the "awInputElement" object.

I checked with today's window build, and the"awInputElement" is there.  It is 
missing only in Linux build.

This bug is currently preventing me from running my autamated test.
-->varada
Assignee: ducarroz → varada
Marking worksforme. 
Couldnt be reproduced on reporter's build either.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Re-open the bug.

Now it consistently saying it has no properties for 
<messageWindow>.awInputElement object in the JavaScript Console.

It just worked perfectly fine with 2002021513 build with the same test script. 
Only with today's build, the above error pop up, and the test can not continue 
from there.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Keywords: nsbeta1
Varada - you may need to work directly with Antonio to see this problem.
QA Contact: sheelar → alam
Discussed in 2/27/02 Mail & News bug meeting.  Decisions was to minus and Fuure
this bug.
Keywords: nsbeta1nsbeta1-
Target Milestone: --- → Future
Changing to an nsbeta1+ to unblock the S/MIME automated tests.  Varada, could
you look into this?  If you get a fix and the trunk is still in 0.9.9 this I
think it would be worth asking for checkin approval since it's blocking testing.
Keywords: nsbeta1-nsbeta1+
Target Milestone: Future → mozilla1.0
The problem doesnt seem to be related to compose directly. The test code tries
to enumerate all the windows to obtain the mail compose window by detecting a
function and then obtaining variables inside it. At the first try the code
seemed to fail at determining the window and couldnt proceed beyond it so
obtaining values from local variables is not going to be possible. 
Apparently something must have changed on the linux build that makes it unable
to get the window. I plan to help lam with his code when he gets back later today.
Varada, I tried your suggestion on how to get the compose window:

var windowManager = 
Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getServ
ice();
var iwindowManager = Components.interfaces.nsIWindowMediator;
var windowManager  = cwindowManager.QueryInterface(iwindowManager);
var mailWindow = windowManager.getMostRecentWindow('msgcompose');

And also, I added some delays in the script to make sure the compose window is 
fully loaded before proceeding to the next statement.

After doing all these, my test case just run fine
Status: REOPENED → RESOLVED
Closed: 23 years ago22 years ago
Resolution: --- → FIXED
Verified.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.