Closed Bug 856358 Opened 11 years ago Closed 11 years ago

Remove Contact types from window

Categories

(Core :: DOM: Device Interfaces, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: reuben, Assigned: reuben)

Details

Attachments

(1 file)

As far as I can see, ContactProperties, ContactAddress, ContactField, ContactTelField, ContactFindSortOptions and ContactFindOptions are unnecessarily exposed to the Web.
Gregor, should those be exposed in |window|?
Flags: needinfo?(anygregor)
(In reply to Reuben Morais [:reuben] from comment #1)
> Gregor, should those be exposed in |window|?

They are basically just types for the API and dictionaries. Since you can just pass any js object into the API we don't have to expose them any more.
Flags: needinfo?(anygregor)
Comment on attachment 734157 [details] [diff] [review]
Don't expose ContactProperties types on window

Looks green on Try: https://tbpl.mozilla.org/?tree=Try&rev=c753d6b8a5cc
Attachment #734157 - Flags: review?(anygregor)
Attachment #734157 - Flags: review?(anygregor) → review+
I think you have to change the uuid as well.
Follow-up to fix a UUID mismatch… ಠ_ಠ
https://hg.mozilla.org/integration/mozilla-inbound/rev/59360cb3396f
https://hg.mozilla.org/mozilla-central/rev/ab0974ead030
https://hg.mozilla.org/mozilla-central/rev/59360cb3396f
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
This won't affect site compatibility as the availability of the API is limited.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: