Closed Bug 888801 Opened 12 years ago Closed 12 years ago

Contacts API: Remove searchable fields from IPC transfer in cached scenario

Categories

(Core :: DOM: Device Interfaces, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: gwagner, Assigned: reuben)

References

Details

(Whiteboard: [fixed-in-birch])

Attachments

(1 file)

Currently we copy all information to the child when we use cursors. We should use makeExport to strip unneeded info.
Attached patch PatchSplinter Review
Attachment #769999 - Flags: review?(anygregor)
Comment on attachment 769999 [details] [diff] [review] Patch Review of attachment 769999 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! ::: dom/contacts/fallback/ContactDB.jsm @@ +31,5 @@ > + > + for (let field in aRecord.properties) > + contact.properties[field] = aRecord.properties[field]; > + > + contact.properties.secret = !!contact.properties.secret; Remove this line.
Attachment #769999 - Flags: review?(anygregor) → review+
(In reply to Gregor Wagner [:gwagner] from comment #2) > Remove this line. Why? It's there so we send a bool back instead of an integer. We store it as a number because you can't create an index over a boolean property.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Blocks: 888666
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: