Closed Bug 936283 Opened 11 years ago Closed 11 years ago

[B2G][Contacts] Search bar stops functioning when searching contacts in Gmail or Outlook more than once

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:koi+, b2g-v1.2 fixed)

RESOLVED FIXED
blocking-b2g koi+
Tracking Status
b2g-v1.2 --- fixed

People

(Reporter: mclemmons, Assigned: gtorodelvalle)

Details

(Keywords: regression, Whiteboard: burirun3)

Attachments

(1 file)

Description:
The search bar stops functioning if user searches for a contact in Gmail or Outlook taps "Done" then attempts searching again. Nothing will happen when the user tries to tap on the search bar again.

Steps:
1)  Updated Buri to Build ID: 20131107004003
2)  Tap on the "Contacts" app.
3)  Tap on the "Settings" icon.
4)  Tap on "Import Contacts".
5)  Tap on "Gmail" or "Outlook".
6)  Log into user's Gmail or Outlook account.
7)  After the contact list has populated the screen, tap on the "Search bar".
8)  Tap on "Done" while on the search page.
9)  Tap on the "Search bar" again.

Actual:
Nothing happens. 

Expected:
The user can use the search bar to search for contacts without in Gmail or Outlook.

Environmental Variables for Buri 1.2
BuildID: 20131107004003
Gaia: 590eb598aacf1e2136b2b6aca5c3124557a365ca
Gecko: 26f1e160e696
Version: 26.0

Notes: 
Repro frequency: 100% (5/5)
First reported https://bugzilla.mozilla.org/show_bug.cgi?id=926582, listed as verified/fixed but still reproduces
Link to failed test case: https://moztrap.mozilla.org/manage/case/7232/
blocking-b2g: --- → koi?
QA Contact: nkot
regression range:

-last working build-
BuildID: 20131001004003
Gaia: 5e0d0df6a762cf1e1812eeb735fba72e2539dc0c
Gecko: 5689e4237ab7
Version: 26.0a2

-first broken build-
BuildID: 20131002004001
Gaia: def8e152db6a317162c03a316f68c409f3af3979
Gecko: b955a00f4167
Version: 26.0a2
Is this also reproducible on already imported contact list or happens only on a fresh import and does not repeat later on ?
blocking-b2g: koi? → koi+
Flags: needinfo?(nkot)
(In reply to bhavana bajaj [:bajaj] from comment #2)
> Is this also reproducible on already imported contact list or happens only
> on a fresh import and does not repeat later on ?

It's happening with already imported contact list too
Flags: needinfo?(nkot)
Assignee: nobody → gtorodelvalle
Attached file 13628.html
In the import case, the contacts.js library is not available for search.js to use and consequently accessing the undeclared |Contacts| variable throws a ReferenceError. There are several options to solve this, such as the one proposed (using |window.Contacts|) ;-)
Attachment #830864 - Flags: review?(jmcf)
Attachment #830864 - Flags: review?(jmcf) → review+
Merged in master: https://github.com/mozilla-b2g/gaia/commit/351f9ad4b8f5e427cd90ae6bdfbafb9a4c9639c7
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Uplifted 351f9ad4b8f5e427cd90ae6bdfbafb9a4c9639c7 to:
v1.2: 34a34e92b2131bd9cd539ebc3357ffa941cd862e
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: