Closed Bug 876754 Opened 11 years ago Closed 11 years ago

Use comma instead of | separator in contact auto suggestion

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect)

x86
macOS
defect
Not set
normal

Tracking

(blocking-b2g:leo+, b2g18+ fixed, b2g-v1.1hd fixed)

RESOLVED FIXED
blocking-b2g leo+
Tracking Status
b2g18 + fixed
b2g-v1.1hd --- fixed

People

(Reporter: greg, Assigned: greg)

References

Details

Attachments

(1 file)

Per discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=873498
How do you mock contacts to test the contact auto suggest?
Flags: needinfo?(waldron.rick)
I mean mock them in the browser, not in unit tests.
Rick has put some useful mocks in his PR in https://github.com/mozilla-b2g/gaia/pull/9970.

But this bug should be very easy to fix: just change ' |' to ',' in [1]


[1] https://github.com/mozilla-b2g/gaia/blob/master/apps/sms/js/thread_ui.js#L1386
Flags: needinfo?(waldron.rick)
I agree that it should be simple but I don't feel comfortable making PRs that I can't test. Would really appreciate information on how to add contacts so I can test this.
I really don't know how to do that in the browser other than by using Rick's mocks that you can steal from his PR (because it won't land until next week). Otherwise, just test on the device where you can easily add contacts with the Contact app.
To make the contacts app work in the browser, you need to switch off the pref "dom.navigator-property.disable.mozContacts" in "about:config", and restart Firefox.

However, we still can't add contacts, this probably means there is a bug in Firefox for this, Alexandre Poirot is investigating this. So maybe soon in your browser without mocks ;)
"dom.global-constructor.disable.mozContact" need to be "false" too, restart nightly, and then everything works in the browser. yay !

Bug 877595 will put that in DEBUG=1 profiles soon !
:julien This is awesome, I will try this. Thanks!
This did not allow me to add contacts in nightly, sadly. However, Contacts app is now working on my phone. It was not working before, but I have pulled the latest master, so maybe this was related to something else that was fixed.

In any case, I can now test and fix this bug. PR will be soon.
Attached patch Pull RequestSplinter Review
Attachment #756065 - Flags: review?(gnarf37)
Comment on attachment 756065 [details] [diff] [review]
Pull Request

Having problems with github for now, but this is a tiny simple fix - will merge when github returns to a working order.
Attachment #756065 - Flags: review?(gnarf37) → review+
master: 86d7da26f2a4468e46686006d5f09b09c6175db9
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee: nobody → greg
Depends on: 873498
Depends on: 872395
Blocks: 877842
Blocks: 877145
This should be on the train: https://bugzilla.mozilla.org/show_bug.cgi?id=873498#c14

Note to uplifters: there is a followup commit and the real commit:

in order:
master: https://github.com/mozilla-b2g/gaia/commit/86d7da26f2a4468e46686006d5f09b09c6175db9
master: https://github.com/mozilla-b2g/gaia/commit/26b9f19d10c0009c2fc1c950fa3341dfa9e9235c
blocking-b2g: --- → leo?
Flags: needinfo?(dietrich)
As per leo not a blocker.
blocking-b2g: leo? → -
tracking-b2g18: --- → +
I'd like to uplift this simple patch to prevent conflicts (eg bug 881248) and therefore making other uplifts safer. There is zero risk this patch can break anything, as it is only a string change.
blocking-b2g: - → leo?
Partner triage agreed is safe (landed 24 days ago) and worth taking to reduce uplift friction.
blocking-b2g: leo? → leo+
Flags: needinfo?(dietrich)
uplifted masteR: 86d7da26f2a4468e46686006d5f09b09c6175db9
to v1-train: fc11358d986610ca128f85146da2fbe130b3ff65

uplifted master: 26b9f19d10c0009c2fc1c950fa3341dfa9e9235c
to v1-train: 04a668505226863d2749fe85e7057691e5093950
1.1hd: 04a668505226863d2749fe85e7057691e5093950
1.1hd: fc11358d986610ca128f85146da2fbe130b3ff65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: