Stop using URLs to search address books
Categories
(MailNews Core :: Address Book, enhancement)
Tracking
(Not tracked)
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
Attachments
(2 files)
|
91.38 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
|
5.20 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
Currently we search an address book directory by appending a LISP-style string to its URL, using the address book manager to create another whole directory object, then reading the childCards property. Except if it's an LDAP address book which does things a different way. This process is synchronous, creates a whole bunch of new objects (which are the same as the existing ones), and quite frankly a mess.
In this bug I'll be adding a search function to nsIAbDirectory which takes the LISP string and a nsIDirSearchListener object and converting the directory implementations to work this way. I won't be removing the old system just yet as it's not my ultimate goal right now.
| Assignee | ||
Comment 1•5 years ago
|
||
Okay, this should do for now. I haven't removed the old query-by-URI stuff yet because it's got pieces all over the place and I want to move forward with things. (For the most part it still works too, I think, although I know at least one of the implementations is now broken.)
| Assignee | ||
Comment 2•5 years ago
|
||
This fixes printing of address books which is the only remaining consumer of nsAbView. It doesn't need search capability so I've removed that piece.
Comment 3•5 years ago
|
||
Updated•5 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/9eda2be91b4e
Stop using URLs to search address books. r=mkmelin
https://hg.mozilla.org/comm-central/rev/a34c59e873c9
Fix printing of address books. r=mkmelin
| Assignee | ||
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Description
•