Closed Bug 1212325 Opened 8 years ago Closed 8 years ago

[Contacts] When going to settings in the console log we can see an error message.

Categories

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

defect
Not set
normal

Tracking

(blocking-b2g:2.5+)

RESOLVED FIXED
blocking-b2g 2.5+

People

(Reporter: arcturus, Assigned: arcturus)

Details

Attachments

(1 file)

- Launch contacts, with adb logcat enabled.
- Quickly press on the settings button several times.

You'll observer in the console the following:

E/Communications( 9471): [JavaScript Error: "ReferenceError: ImportStatusData is not defined" {file: "app://communications.gaiamobile.org/shared/js/contacts/import/utilities/misc.js" line: 18}]

And the settings panel doesn't open. After 3-4 seconds (I think is when navigation ready event is fired) we can press the settings button and access settings without this error.
[Blocking Requested - why for this release]:
Bad user experience, the settings button takes too long to be accessible, and we have an error being output to the console.
blocking-b2g: --- → 2.5?
Comms triage: Bad user experience. Depending on how many contacts you have, being able to go to settings can take 3+ seconds, whereas the button is enabled.
blocking-b2g: 2.5? → 2.5+
Comment on attachment 8671474 [details] [review]
[gaia] arcturus:bug-1212325 > mozilla-b2g:master

Ensuring that we have all the dependencies loaded when we go to settings.

We were lucky cause after performing the deferred actions, that is waiting until we load all contacts, we were loading the dependency.

Now we load (if not being loaded before) when we need it for settings.
Attachment #8671474 - Flags: review?(ferjmoreno)
Assignee: nobody → francisco
Status: NEW → ASSIGNED
Attachment #8671474 - Flags: review?(ferjmoreno) → review+
You need to log in before you can comment on or make changes to this bug.