Closed
Bug 86966
Opened 23 years ago
Closed 23 years ago
first time you reply, window is blank, no identities
Categories
(MailNews Core :: Composition, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.3
People
(Reporter: alecf, Assigned: srilatha)
References
Details
(Keywords: regression, Whiteboard: [PDT+] [nsbeta1+], have a fix, r=, sr=, need a=)
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
To reproduce:
start mail
read a message
hit reply All
note that the compose window appears, but all fields are blank! There are no
identities, the message is not pre-addressed, and the message is not quoted.
Seen for the first time with today's tip build (2001-06-20-04)
this seems really bad if the first time you ever see this window, it is broken!
Comment 2•23 years ago
|
||
We must fix that for RTM, nominating nsbeta1.
Severity: normal → major
Status: NEW → ASSIGNED
Comment 4•23 years ago
|
||
moving into 0.9.2
Priority: -- → P1
Whiteboard: [nsbeta1+]
Target Milestone: --- → mozilla0.9.2
I am trying this on WinNT 2001-06-20-04 and not seeing this behaviour.
Alec is this a Win 2000 only problem?
Comment 6•23 years ago
|
||
here is the console's message when the problem occurs:
>>> Time Stamp: [ 0][ 0] - Start opening the window, message size = 0
WEBSHELL+ = 9
Disabling Quirk StyleSheet
************************************************************
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "'[JavaScript Error: "gPrefInt.SavePrefFile is not a function"
{file: "S:\mozilla\dist\WIN32_D.OBJ\bin\components\nsLD
APPrefsService.js" line: 198}]' when calling method:
[nsIFactory::createInstance]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_E
RROR_WITH_DETAILS)" location: "JS frame ::
chrome://messenger/content/messengercompose/MsgComposeCommands.js :: <TOP_LEVEL>
:: line
46" data: yes]
************************************************************
JavaScript error:
line 0: uncaught exception: [Exception... "Component returned failure code:
0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID
.getService]" nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)"
location: "JS frame :: chrome://messenger/content/messenge
rcompose/MsgComposeCommands.js :: <TOP_LEVEL> :: line 46" data: no]
###!!! ASSERTION: not a container: 'nsnull == aChildList', file
s:\mozilla\layout\html\base\src\nsFrame.cpp, line 344
###!!! ASSERTION: not a container: 'nsnull == aChildList', file
s:\mozilla\layout\html\base\src\nsFrame.cpp, line 344
###!!! ASSERTION: not a container: 'nsnull == aChildList', file
s:\mozilla\layout\html\base\src\nsFrame.cpp, line 344
WEBSHELL+ = 10
JavaScript strict warning:
chrome://global/content/autocomplete.xml#autocomplete-result-popup.textbox
(getter) line 0: reference to undefined property this.__A
UTOCOMPLETE_BOX__
JavaScript strict warning:
chrome://global/content/autocomplete.xml#autocomplete-result-popup.textbox
(getter) line 0: reference to undefined property this.__A
UTOCOMPLETE_BOX__
JavaScript strict warning:
line 63: anonymous function does not always return a value
JavaScript strict warning:
chrome://global/content/autocomplete.xml#autocomplete.fireInit() line 1:
reference to undefined property this.oninit
JavaScript strict warning:
chrome://global/content/autocomplete.xml#autocomplete.fireInit() line 1:
reference to undefined property this.oninit
Enabling Quirk StyleSheet
JavaScript error:
line 0: uncaught exception: [Exception... "Component returned failure code:
0x80004003 (NS_ERROR_INVALID_POINTER) [nsIObserverServi
ce.AddObserver]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location:
"JS frame :: chrome://messenger/content/messengercomp
ose/MsgComposeCommands.js :: AddMessageComposeOfflineObserver :: line 584"
data: no]
Comment 7•23 years ago
|
||
This regression has been caused by the fix for bug 79252. Potential fix:
Index: MsgComposeCommands.js
===================================================================
RCS file:
/cvsroot/mozilla/mailnews/compose/resources/content/MsgComposeCommands.js,v
retrieving revision 1.192
diff -u -2 -w -r1.192 MsgComposeCommands.js
--- MsgComposeCommands.js 2001/06/22 01:12:30 1.192
+++ MsgComposeCommands.js 2001/06/22 21:57:50
@@ -44,4 +44,5 @@
//This migrates the LDAPServer Preferences from 4.x to mozilla format.
+try {
var LDAPPrefsService = Components.classes[
"@mozilla.org/ldapprefs-service;1"].getService();
@@ -52,4 +53,5 @@
"@mozilla.org/autocompleteSession;1?type=ldap"].createInstance().
QueryInterface(Components.interfaces.nsILDAPAutoCompleteSession);
+} catch (ex) {dump ("ERROR:" + ex + "\n");}
var msgCompose = null;
But I rather prefer let srilatha take a look at the problem. Reassign...
Assignee: ducarroz → srilatha
Status: ASSIGNED → NEW
Assignee | ||
Comment 9•23 years ago
|
||
Assignee | ||
Comment 10•23 years ago
|
||
I think we are getting this exception because I have gPrefInt.SavePrefFile
instead of gPrefInt.savePrefFile. It happens only the first time because the
migration code gets executed only once.
In the patch I corrected the name and also
Added try catch in nsLDAPPrefsService.js
Added try catch in MsgcomposeCommands.js.
ducarroz can you review the patch
Comment 11•23 years ago
|
||
R=ducarroz
Reporter | ||
Comment 12•23 years ago
|
||
sr=alecf on the first file in the patch, but the second file in the patch seems
wrong. You're trying to initialize the variables "ldapSession" and
"LDAPPrefsService"
If those exceptions are simply caught but not handled (i.e. such as returning
from the function) then any place where you're saying something like
LDAPPrefsService.migrate() will throw a JS error, "LDAPPrefsService is not defined"
Assignee | ||
Comment 13•23 years ago
|
||
LDAPPrefsSevice.migrate() gets called from the constructor of
LDAPPrefsService(). and we are not calling any methods on it anywhere else in
the file.
And for ldapSession, before any method is called on it, we check if ldapSession
is not null.
Reporter | ||
Comment 14•23 years ago
|
||
ok, cool sr=alecf
I should add that the whole migrate() thing is kinda broken - i.e. why expose it
in an IDL file if nobody ever calls it, and you're just calling it in the
constructor. Seems like you're better off simply implementing nsISupports or
something.. not to mention that this means the migration service sits around in
RAM for the lifetime of the product, even though code in it only executes once.
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Keywords: regression
Whiteboard: [nsbeta1+] → [nsbeta1+], have a fix, r=, sr=, need a=
Assignee | ||
Comment 15•23 years ago
|
||
Filed a bug on the migrate() bug #87660
Assignee | ||
Comment 16•23 years ago
|
||
Fix checked into the trunk.
Comment 17•23 years ago
|
||
*** Bug 87745 has been marked as a duplicate of this bug. ***
Comment 18•23 years ago
|
||
please land this on the branch, too.
Comment 19•23 years ago
|
||
Reproduced the above problem on all platforms using 2001062506 on
mac,linux,win98. I created a new profile and the first time you read a message
and clicking on reply all opens a blank window.
verified on the following trunk builds:
2001062606 -win98, linux
20010626008 -mac,
I will leave it as resolved till I verify this on branch build. Adding keyword
as vbranch since this needs to be verified on branch after it gets checked in.
Keywords: vbranch
Comment 20•23 years ago
|
||
*** Bug 88062 has been marked as a duplicate of this bug. ***
Comment 21•23 years ago
|
||
Build 2001-06-27-03: Win2k
Build 2001-06-27-03: Mac 9.1
Build 2001-06-27-06: Linux RH 7
After migrating 4.x profile, create a new message or reply to a message and
sender is blank. I see the same problems as Ninoschka. And if I close it and try
again it's fine. It is only the first attempt that is affected.
*Please disregard these comments on bug 87377 (marked as duplicate of this bug)
Comment 22•23 years ago
|
||
pushing out. 0.9.2 is done. (querying for this string will get you the list of
the 0.9.2 bugs I moved to 0.9.3)
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Comment 23•23 years ago
|
||
Adding PDT+; OK to be checked into 0.9.2 branch for RTM.
Whiteboard: [nsbeta1+], have a fix, r=, sr=, need a= → [PDT+] [nsbeta1+], have a fix, r=, sr=, need a=
Assignee | ||
Comment 24•23 years ago
|
||
Checked into the branch
Comment 25•23 years ago
|
||
Branch build 2001-07-05-03: WinMe, Mac 9.04
Branch build 2001-07-05-10: Linux RH 6.2
Verified Fixed on the branch.
Scenarios tried:
- Existing profiles, first new message: ok
- New profile, first new message: ok
- Exit/Restart, reply to a message: ok
Status: RESOLVED → VERIFIED
Comment 26•23 years ago
|
||
*** Bug 93278 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•