Change OnItem{Unichar}PropertyChanged to use smart strings
Categories
(MailNews Core :: General, enhancement)
Tracking
(Not tracked)
People
(Reporter: jorgk-bmo, Assigned: jorgk-bmo)
Details
Attachments
(2 files, 3 obsolete files)
|
21.88 KB,
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
|
13.74 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
If seen this while working on bug 1575512. It's a little stone-age and up for some renovation.
| Assignee | ||
Comment 1•6 years ago
|
||
Part 1 for nsIFolderListener.idl.
| Assignee | ||
Comment 2•6 years ago
|
||
Part 2 for AB.
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=10f3722fce98c43366cc56a114dd0cd5e45d9ff6
Note: I left the property parameters of notifyItemPropertyChanged and onItemPropertyChanged as a char* to avoid too many changes, particularly in the two Mac files, for no added benefit.
| Assignee | ||
Comment 3•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=d88fd521f05e3f469a80fc232597f0d9c7efb3a2
Looks like using VoidString() wasn't a total success :-(
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 4•6 years ago
|
||
No more crashes, but two tests need to be adapted:
TEST-UNEXPECTED-FAIL | xpcshell-mdbaddrbook.ini:comm/mailnews/addrbook/test/unit/test_notifications.js | xpcshell return code: 0
TEST-UNEXPECTED-FAIL | xpcshell-mdbaddrbook.ini:comm/mailnews/addrbook/test/unit/test_notifications.js | - "" == null
TEST-UNEXPECTED-FAIL | xpcshell-mdbaddrbook.ini:comm/mailnews/addrbook/test/unit/test_jsaddrbook.js | xpcshell return code: 0
TEST-UNEXPECTED-FAIL | xpcshell-mdbaddrbook.ini:comm/mailnews/addrbook/test/unit/test_jsaddrbook.js | addMailingListMember - [addMailingListMember : 83] "" == null
Anyway, the folder patch is good to go.
| Assignee | ||
Comment 5•6 years ago
|
||
I think the tests weren't really good insisting on one particular falsy value when now we deliver a different one.
(In reply to Jorg K (GMT+2) from comment #2)
Note: I left the property parameters of notifyItemPropertyChanged and onItemPropertyChanged as a char* to avoid too many changes, particularly in the two Mac files, for no added benefit.
OK, but those should probably be done later too, as the folder listeners already have property parameters as nsACString.
| Assignee | ||
Comment 7•6 years ago
|
||
That would be unnecessary churn. Looks like we mostly use literal C-strings for this parameter. The aim of the patches is to get rid of the unnecessary .get() and nsString(xx).get() which should have been a PromiseFlatString(xx).get() to start with.
| Assignee | ||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
| Assignee | ||
Comment 12•6 years ago
|
||
Thanks. Folded AB patch with the comments fixed.
| Assignee | ||
Updated•6 years ago
|
Comment 13•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/432747ceaabe
Change OnItemPropertyChanged/NotifyItemPropertyChanged to use smart strings in nsIAbListener.idl/nsIAbManager.idl. r=aceman,darktrojan
Description
•