Persona is no longer an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 736200 - Contacts API: Using cleaner IDs for the mozContact objects
: Contacts API: Using cleaner IDs for the mozContact objects
Product: Core
Classification: Components
Component: DOM (show other bugs)
: unspecified
: All All
: -- normal (vote)
: mozilla14
Assigned To: Gregor Wagner [:gwagner]
: Andrew Overholt [:overholt]
Depends on:
  Show dependency treegraph
Reported: 2012-03-15 11:55 PDT by Etienne Segonzac (:etienne)
Modified: 2012-03-16 06:23 PDT (History)
4 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

patch (1.08 KB, patch)
2012-03-15 13:02 PDT, Gregor Wagner [:gwagner]
fabrice: review+
Details | Diff | Splinter Review

Description Etienne Segonzac (:etienne) 2012-03-15 11:55:07 PDT
The ID generated for each mozContact currently looks like


For various reason devs might want to these IDs to construct dom #id like

So if it doesn't have any bad side effect it would be great to stripe the "{", "}" and "-" from the mozContact IDs.

This way preventing the need for each mozContacts API user to 
stripe them himself. And facilitating the search by ID.
Comment 1 Gregor Wagner [:gwagner] 2012-03-15 13:02:07 PDT
Created attachment 606333 [details] [diff] [review]
Comment 2 Gregor Wagner [:gwagner] 2012-03-15 13:14:32 PDT
Comment on attachment 606333 [details] [diff] [review]

We could also change it in _getRandomId() if this is a general problem
Comment 4 Marco Bonardo [::mak] 2012-03-16 06:23:25 PDT

Note You need to log in before you can comment on or make changes to this bug.