Closed Bug 932763 Opened 11 years ago Closed 11 years ago

assignment of an empty array to a mozContact object does not take effect

Categories

(Core Graveyard :: DOM: Contacts, defect)

x86
macOS
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED
mozilla28

People

(Reporter: jmcf, Assigned: reuben)

References

Details

(Whiteboard: [systemsfe])

Attachments

(1 file, 1 obsolete file)

if you assign an empty array to a mozContact it does not take effect. 

let myMozContact be a contact which tel attr is not previously defined. 

myContact.tel is falsy 

myMozContact.tel = []

myContact.tel is still falsy and null

this is a bug and, as usual with WebIDL recent changes, is causing regressions in comms.
blocking-b2g: --- → 1.3?
Hm, this indeed a bug in validateArrayField. ni? myself to look at this.
Flags: needinfo?(reuben.bmo)
Attached patch Allow empty arrays (obsolete) (deleted) — Splinter Review
Assignee: nobody → reuben.bmo
Attachment #824647 - Flags: review?(anygregor)
Flags: needinfo?(reuben.bmo)
Whiteboard: [systemsfe]
Reuben, can you add a test as well?
Attachment #824647 - Attachment is obsolete: true
Attachment #824647 - Flags: review?(anygregor)
Attachment #824662 - Flags: review?(anygregor)
Comment on attachment 824662 [details] [diff] [review]
Allow empty arrays, with test. v2

Review of attachment 824662 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks!
Attachment #824662 - Flags: review?(anygregor) → review+
aaand backed out for mochitest failures:
https://hg.mozilla.org/integration/b2g-inbound/rev/9ca5613535ab
https://hg.mozilla.org/mozilla-central/rev/a840636df700
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
resolved in master 1.3. remove flag
blocking-b2g: 1.3? → ---
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: