Closed
Bug 832861
Opened 11 years ago
Closed 11 years ago
[OPEN_][contacts]Add new Contacts, you can't use "custom" to edit numbers, mailbox, mailing address type.(617001971176)
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(blocking-b2g:tef+, b2g18+ verified, b2g18-v1.0.1 verified)
VERIFIED
FIXED
blocking-b2g | tef+ |
People
(Reporter: Firefox_Mozilla, Assigned: rexboy)
References
Details
(Whiteboard: [MZ])
Attachments
(1 file)
Steps to reproduce: 1.create a new contact 2.input the number type, mailbox, mailing address type in input box of "custom". Actual results: After we input some custom item in the input box of "custom", we can save this custom item. Expected results: create a new contact, normal self-definition of the type of number, E-mail, Address Type.
Reporter | ||
Updated•11 years ago
|
Summary: [OPEN_][contacts]Add new Contacts, you can't use "custom" to edit numbers, mailbox, mailing address type. → [OPEN_][contacts]Add new Contacts, you can't use "custom" to edit numbers, mailbox, mailing address type.(617001971176)
Updated•11 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → Gonk (Firefox OS)
Hardware: x86 → ARM
Updated•11 years ago
|
tracking-b2g18:
--- → 19+
Updated•11 years ago
|
Group: mozilla-corporation-confidential
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → rexboy
Assignee | ||
Comment 1•11 years ago
|
||
mouse_event_shim.js failed to synthesize a click event for customTag.onclick. The examination below at handleTouchStart(:73) always failed: // Sometimes an unknown gecko bug causes us to get a touchstart event // for an iframe target that we can't use because it is cross origin. // Don't start handling a touch in that case try { e.changedTouches[0].target.ownerDocument; } catch (e) { // Ignore the event if we can't see the properties of the target return; } We have an apparent workaround: just use ontouchend rather than onclick. I'll patch it and try to add an unit test.
Updated•11 years ago
|
Reporter | ||
Updated•11 years ago
|
Whiteboard: [MZ]
Updated•11 years ago
|
blocking-b2g: --- → leo?
Assignee | ||
Comment 2•11 years ago
|
||
Well.. the patch ended up with more test codes than bugfix itself. Arcturus, may you help reviewing this patch? Thanks a lot!
Attachment #710110 -
Flags: review?(francisco.jordano)
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 710110 [details]
Patch
Found something breaks the contacts_list test. Let me check for a while and I will set review flag again. Sorry for disturbing.
Attachment #710110 -
Flags: review?(francisco.jordano)
Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 710110 [details]
Patch
OK I got rid of the problem now (I think). Setting r?.
Attachment #710110 -
Flags: review?(francisco.jordano)
Comment 5•11 years ago
|
||
Comment on attachment 710110 [details]
Patch
Asking Alberto to do the r?
Right now I'm a bit overloaded and he can do the r? better than me.
Thanks folks!
Attachment #710110 -
Flags: review?(francisco.jordano) → review?(alberto.pastor)
Assignee | ||
Comment 6•11 years ago
|
||
Seems this patch has been out-dated mainly due to the startup time tuning & lazy loading recently. Alberto if you are overloaded, please tell me if someone can help review this patch. Thank you!
Comment 7•11 years ago
|
||
Sorry, completely forgot this patch after a crazy week of improving startup times... my fault. Could you please rebase it with current master? I'll review it ASAP. Thanks!
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 710110 [details]
Patch
Alberto: It's OK, I've rebased the patch.
To perform unit test, I made some refactoring that may need to be take care of (on initializing). Thank you for the help!
Comment 10•11 years ago
|
||
I did some lasts comments on github. Thanks :rexboy!
Assignee | ||
Comment 11•11 years ago
|
||
I've updated the code. If things are OK we can land it. Thank you Alberto!
Updated•11 years ago
|
Attachment #710110 -
Flags: review?(alberto.pastor) → review+
Comment 13•11 years ago
|
||
https://github.com/mozilla-b2g/gaia/commit/374e612fcb1b57f99c927f4353f7186fbae213cf
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 14•11 years ago
|
||
Uplifted commit 374e612fcb1b57f99c927f4353f7186fbae213cf as: v1-train: 23b017d99169848b194f11e870ac7c9e8d2bc8ab
status-b2g18:
--- → fixed
Comment 15•11 years ago
|
||
(tef+ due to partner request for uplift)
blocking-b2g: leo+ → tef+
status-b2g18-v1.0.1:
--- → affected
Comment 16•11 years ago
|
||
(In reply to Michael Vines [:m1] [:evilmachines] from comment #15) > (tef+ due to partner request for uplift) This doesn't apply cleanly on v1.0.1. It looks like the new bit of code is completely equivalent to the old bit of code, but I'd like someone who's more familiar double check. diff --cc apps/communications/contacts/js/contacts.js index c307a4e,110f766..0000000 --- a/apps/communications/contacts/js/contacts.js +++ b/apps/communications/contacts/js/contacts.js @@@ -790,15 -817,15 +808,24 @@@ var Contacts = (function() currentContact.id == event.contactID) { contactsList.getContactById(event.contactID, function success(contact, enrichedContact) { ++<<<<<<< HEAD + currentContact = contact; + var mergedContact = enrichedContact || contact; + contactsDetails.render(mergedContact, false, + enrichedContact ? true : false); + contactsList.refresh(mergedContact, checkPendingChanges, + event.reason); ++======= + currentContact = enrichedContact || contact; + contactsDetails.render(currentContact, false, + enrichedContact ? true : false); + contactsList.refresh(currentContact, checkPendingChanges, + event.reason); ++>>>>>>> 23b017d... Merge pull request #7961 from rexboy7/fix-bug832861 }); } else { - contactsList.refresh(event.contactID, checkPendingChanges, event.reason); + contactsList.refresh(event.contactID, checkPendingChanges, + event.reason); } break; case 'create':
Assignee | ||
Comment 17•11 years ago
|
||
In this patch these are just changes for linter check. So applying newer changes should be safe. Thanks!
Comment 18•11 years ago
|
||
v1.0.1: cf3b5ae42a851d266752b4d82ca2d08a8eb0c459
Comment 19•11 years ago
|
||
Verified fixed on Unagi Build ID: 20130401070203 Kernel Date: Dec 5 Gecko: http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/b28463f2e718 Gaia: ddb38ac8a34f9e30e09d0ff3b5c1bfb9b664b7c3 and Unagi Build ID: 20130401070203 Kernel Date: Dec 5 Gecko: http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/b28463f2e718 Gaia: ddb38ac8a34f9e30e09d0ff3b5c1bfb9b664b7c3
You need to log in
before you can comment on or make changes to this bug.
Description
•