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)

defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.3

People

(Reporter: olgac, Assigned: srilatha)

References

Details

(Whiteboard: Fix checked in)

Attachments

(1 file)

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.
QA Contact: sheelar → yulian
This bug is likely to have been fixed by Thursdays checkin. Can you please see if it still exists on current builds?
Priority: -- → P2
Target Milestone: --- → mozilla0.9.3
Tried 20010629 trunk builds. The problem is still there.
Attached patch patch v1Splinter Review
ccing ducarroz for r= ccing sspitzer for sr=
Blocks: 17880
Status: NEW → ASSIGNED
Whiteboard: have a fix, need r=
looks good. R=ducarroz
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; + }
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.
Whiteboard: have a fix, need r= → have a fix, r=, need sr=
sounds good to me. sr=sspitzer
Fix checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: have a fix, r=, need sr= → Fix checked in
Verified with 2001080603 Windows trunck build.
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.

Attachment

General

Created:
Updated:
Size: