Closed
Bug 86749
Opened 23 years ago
Closed 23 years ago
Changes to LDAP serv properties not honored if composition window open
Categories
(MailNews Core :: Composition, defect, P2)
MailNews Core
Composition
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.3
People
(Reporter: olgac, Assigned: srilatha)
References
Details
(Whiteboard: Fix checked in)
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
If you change LDAP server properties you autocomplete against while the
composition window is open, the changes are not reflected until the composition
window is closed and a new one is open.
Reporter | ||
Updated•23 years ago
|
QA Contact: sheelar → yulian
Comment 1•23 years ago
|
||
This bug is likely to have been fixed by Thursdays checkin. Can you please see
if it still exists on current builds?
Assignee | ||
Updated•23 years ago
|
Priority: -- → P2
Target Milestone: --- → mozilla0.9.3
Reporter | ||
Comment 2•23 years ago
|
||
Tried 20010629 trunk builds. The problem is still there.
Assignee | ||
Comment 3•23 years ago
|
||
Assignee | ||
Comment 4•23 years ago
|
||
ccing ducarroz for r=
ccing sspitzer for sr=
Comment 5•23 years ago
|
||
looks good. R=ducarroz
Comment 6•23 years ago
|
||
1) style nit:
+ currentAutocompleteDirectory = autocompleteDirectory;
+ if (prevAutocompleteDirectory) {
+ if (prevAutocompleteDirectory != currentAutocompleteDirectory) {
+ RemoveDirectorySettingsObserver(prevAutocompleteDirectory);
+ AddDirectorySettingsObserver();
+ }
+ }
just do:
if (a && (a != b)) {
RemoveDirectorySettingsObserver(a);
AddDirectorySettingsObserver();
}
2)
+ RemoveDirectorySettingsObserver(currentAutocompleteDirectory);
+ currentAutocompleteDirectory = null;
based on that code, shouldn't you be doing that in all places where you call
RemoveDirectorySettingsObserver()?
+ if (prevAutocompleteDirectory) && (prevAutocompleteDirectory !=
currentAutocompleteDirectory) {
+ RemoveDirectorySettingsObserver(prevAutocompleteDirectory);
+ prevAutocompleteDirectory = null;
+ AddDirectorySettingsObserver();
+ }
and
+ if (currentAutocompleteDirectory) {
+ RemoveDirectorySettingsObserver(currentAutocompleteDirectory);
+ currentAutocompleteDirectory = null;
+ }
Assignee | ||
Comment 7•23 years ago
|
||
1) I can't do this since I have an else in there. Don't do anything if a == b
if (a) {
if (a != b)) {
RemoveDirectorySettingsObserver(a);
AddDirectorySettingsObserver();
}
}
else
AddDirectorySettingsObserver();
2) The following code is part of setupLdapAutocompleteSession()
+ if (prevAutocompleteDirectory) && (prevAutocompleteDirectory !=
currentAutocompleteDirectory) {
+ RemoveDirectorySettingsObserver(prevAutocompleteDirectory);
+ prevAutocompleteDirectory = null;
+ AddDirectorySettingsObserver();
+ }
Do not have to do this because prevAutocompleteDirectory is set to null in the
beginning of the function setupLdapAutocompleteSession() and we are not using
this variable after RemoveDirectorySettingsObserver is called.
+ if (currentAutocompleteDirectory) {
+ RemoveDirectorySettingsObserver(currentAutocompleteDirectory);
+ currentAutocompleteDirectory = null;
+ }
Do not have to do this since teh above code is in ComposeUnload() and we will
not be using currentAutocompleteDirectory after this call.
Assignee | ||
Updated•23 years ago
|
Whiteboard: have a fix, need r= → have a fix, r=, need sr=
Comment 8•23 years ago
|
||
sounds good to me.
sr=sspitzer
Assignee | ||
Comment 9•23 years ago
|
||
Fix checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: have a fix, r=, need sr= → Fix checked in
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
•