Allow to disable autocomplete per directory
Categories
(MailNews Core :: Address Book, enhancement)
Tracking
(thunderbird_esr6067+ fixed, thunderbird67 fixed, thunderbird68 fixed)
People
(Reporter: john, Assigned: john)
Details
Attachments
(1 file, 3 obsolete files)
|
1.29 KB,
patch
|
aceman
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
Steps to reproduce:
Currently autocomplete can only be enabled/disabled for ALL local address books. This behavior is defined here:
https://searchfox.org/comm-central/source/mailnews/addrbook/src/nsAbDirProperty.cpp#464-476
I would like to add a directory property, to disable autocomplete for individual directories.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
Nits: will change that.
It can be set programatically. I do not want to add an UI option.
It is intended for advanced address books (addons) that extend the behaviour of the thunderbird address book. In some cases the standard autocomplete function produces wrong results and should be disabled (by the addon managing that address book).
| Assignee | ||
Comment 4•6 years ago
|
||
| Assignee | ||
Comment 6•6 years ago
|
||
Thanks!
I did not check the return value of GetBoolValue() because I did not want to change the final return value by this patch.
The return value is only influenced by the primary check as before and I am only doing the second check, if the first one succeeded (so we have an answer we can work with). The second check is a bonus and if that fails for some reason, your version would change the return value to NS_ERROR compared to a system without this patch, which just gets NS_OK from the first check.
What do you think?
I can change the if (*aResult) of course.
What would be the next step? I am still new to all of this :-)
OK, sounds reasonable, but then make it '(void) GetBoolValue(...)' so indicate we intentionally ignore the return value.
| Assignee | ||
Comment 8•6 years ago
|
||
| Assignee | ||
Comment 9•6 years ago
|
||
Now with correct header, I hope
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/27ccda1bf87f
Allow to disable autocomplete per directory; r=aceman
Updated•6 years ago
|
| Assignee | ||
Comment 12•6 years ago
|
||
Could I have this backported to ESR? Thanks!
| Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 13•6 years ago
|
||
You should have returned NS_OK here: https://hg.mozilla.org/comm-central/rev/27ccda1bf87f#l1.22
| Assignee | ||
Comment 14•6 years ago
|
||
But that does not make a difference, or? rv is NS_OK as it passed NS_ENSURE_SUCCESS(rv, rv). Right? Do you want me to update the patch?
Comment 15•6 years ago
|
||
TB 67 beta 2:
https://hg.mozilla.org/releases/comm-beta/rev/e305f7284ec8eb2449ba95f82042ca7075767ae2
It makes no difference, but is easier to read. Let's leave it as it is now.
Updated•6 years ago
|
Comment 16•6 years ago
|
||
TB 60.7 ESR:
https://hg.mozilla.org/releases/comm-esr60/rev/0ba26e8ccd61fc0092d36f412cd1be0c0baf362f
Description
•