Closed
Bug 860559
Opened 12 years ago
Closed 12 years ago
Contacts API: add pref field
Categories
(Core :: DOM: Device Interfaces, defect)
Core
DOM: Device Interfaces
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: gwagner, Assigned: reuben)
References
Details
(Whiteboard: [fixed-in-birch])
Attachments
(1 file)
|
12.64 KB,
patch
|
gwagner
:
review+
mounir
:
superreview+
|
Details | Diff | Splinter Review |
From:
https://wiki.mozilla.org/ContactsAPI
We should add the pref field:
interface ContactField : nsISupports
{
attribute DOMString[] type; // "home", "work", etc.
attribute DOMString value;
attribute integer pref; // 0 = no pref, 1 = preferred (vCard3 type:PREF)
};
Reuben can you take this?
Comment 1•12 years ago
|
||
Also in interface ContactAddress.
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → reuben.bmo
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
| Assignee | ||
Comment 2•12 years ago
|
||
Holding up on the review until bug 856358 lands to avoid rebase hell.
| Assignee | ||
Updated•12 years ago
|
Attachment #736472 -
Flags: review?(anygregor)
| Reporter | ||
Comment 3•12 years ago
|
||
Comment on attachment 736472 [details] [diff] [review]
Add pref field
Review of attachment 736472 [details] [diff] [review]:
-----------------------------------------------------------------
Adding Jonas for the IDL review.
::: dom/interfaces/contacts/nsIContactProperties.idl
@@ +8,4 @@
> interface nsIContactAddress : nsISupports
> {
> attribute DOMString type;
> + attribute integer pref; // 0 = no pref, 1 = preferred (vCard3 type:PREF)
We should change it to a bool because the sysapps group is in favor of a bool pref.
@@ +23,2 @@
> attribute DOMString value;
> + attribute integer pref; // 0 = no pref, 1 = preferred (vCard3 type:PREF)
bool as well
Attachment #736472 -
Flags: superreview?(jonas)
Attachment #736472 -
Flags: review?(anygregor)
Attachment #736472 -
Flags: review+
Comment 4•12 years ago
|
||
Spec updated accordingly as well for a boolean pref:
https://wiki.mozilla.org/WebAPI/ContactsAPI#ContactField
| Reporter | ||
Updated•12 years ago
|
Blocks: b2g-contact
Comment 5•12 years ago
|
||
Comment on attachment 736472 [details] [diff] [review]
Add pref field
Review of attachment 736472 [details] [diff] [review]:
-----------------------------------------------------------------
sr=me if you use bool
Attachment #736472 -
Flags: superreview?(jonas) → superreview+
| Assignee | ||
Comment 6•12 years ago
|
||
Whiteboard: [fixed-in-birch]
Comment 7•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Comment 8•12 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•