Closed
Bug 978011
Opened 11 years ago
Closed 11 years ago
Unload properly Image Loader when syncing/importing
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(blocking-b2g:1.3+, b2g-v1.3 fixed, b2g-v1.3T fixed, b2g-v1.4 fixed)
People
(Reporter: gerard-majax, Assigned: crdlc)
References
Details
Attachments
(1 file)
190 bytes,
text/html
|
jmcf
:
review+
fabrice
:
approval-gaia-v1.3+
|
Details |
Follow-up of bug 970832. We need some code to properly remove the event listeners when performing import operations.
Copy/paste of the suggestion that was on the pull request [https://github.com/mozilla-b2g/gaia/pull/16721]:
> I have also another additional idea to make the importer module safer if you're comfortable with it
>
> https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/contacts/js/importer_ui.js#L781
> Just after the user clicks on "Import button", we could call something like this:
>
> imgLoader.unload(); // or imgLoader.uninit() or imgLoader.destroy(),...
>
> This method should remove the listeners "scroll" and "onupdate" thought. > I guess that to keep listeners running does not make sense here.
>
> What do you think @jmcanterafonseca ?
Comment 1•11 years ago
|
||
Nominating for 1.4 since this solution looks safer, but requires some extra code that we don't want to add taking into account timeframe for 1.3
blocking-b2g: --- → 1.4?
Updated•11 years ago
|
Assignee: nobody → crdlc
Comment 2•11 years ago
|
||
Not a blocker, just land it if ready before March 17th
blocking-b2g: 1.4? → ---
Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Comment 4•11 years ago
|
||
Comment on attachment 8386631 [details]
Patch v1
works perfectly. please land once you get a green Travis.
Attachment #8386631 -
Flags: review?(jmcf) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Merged in master:
https://github.com/mozilla-b2g/gaia/commit/e48412f1230b3a8c8603b1fc7222d4765601cd55
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•11 years ago
|
Flags: in-testsuite+
Updated•11 years ago
|
Target Milestone: --- → 1.4 S3 (14mar)
Comment 7•11 years ago
|
||
Tested on master (see environment details below). It is working as expected, with 1951 contacts in gmail server and selecting 10 contacts with photo, all the photos have been properly imported so nominating to v1.3
Device: Hamachi
Platform version: 30.0a1
Build ID: 20140307120944
Gecko: 83c9562
Gaia: 5bc9b5c
blocking-b2g: --- → 1.3?
Comment 8•11 years ago
|
||
Comment on attachment 8386631 [details]
Patch v1
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): Contacts photos are not imported properly. See bug 970832
[User impact] if declined: High impact on the experience. Phone appear as buggy
[Testing completed]: Yes, in master by the QA team. Also unit tests available
[Risk to taking this patch] (and alternatives if risky): Very low risk.
[String changes made]: The image loader component is unloaded properly
Attachment #8386631 -
Flags: approval-gaia-v1.3?(fabrice)
Updated•11 years ago
|
Attachment #8386631 -
Flags: approval-gaia-v1.3?(fabrice) → approval-gaia-v1.3+
Updated•11 years ago
|
status-b2g-v1.3:
--- → affected
Comment 10•11 years ago
|
||
Hi Ryan,
Could you please help us with the uplift to v1.3 branch?. Thanks!
Flags: needinfo?(ryanvm)
Comment 11•11 years ago
|
||
v1.3: 5b75c885f0f29412942188fec0433e86ffdf36c3
Updated•11 years ago
|
status-b2g-v1.3T:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•