Closed Bug 1234732 Opened 9 years ago Closed 8 years ago

[email] HeaderCursor seems to be insantiated multiple times for message_list somehow

Categories

(Firefox OS Graveyard :: Gaia::E-Mail, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: asuth, Assigned: jrburke)

References

Details

Attachments

(1 file)

On bug 1234488 I noticed that the front-end seems to be invoking viewFolderMessages() twice for each folder which suggests 2 HeaderCursors are being created when one should be, suggesting maybe in the most recent refactor we ended up with two things happening when there should only be one.

Hopefully with that knowledge this is trivial/obvious, but I'm expecting maybe there may be some decisions needed by :jrburke, so assigning/needinfoing to :jrburke for now.

Note that with the fix for bug 1234488 this becomes an efficiency issue, although it wouldn't surprise me if some other back-end edge cases might be exposed by this.

If a repro is required, I've noticed this with the following scenario:
- Already have some accounts created.
- Add a new ActiveSync account.
- Enter the inbox, note that 2 slices are created.
- Switch to a different folder, note that the 2 slices die and 2 new ones are created.

Enabling the realtime log dumping will expose the viewFolderMessages and killSlice messages if you want some (very chatty) debug to help you identify what's going on.
Flags: needinfo?(jrburke)
See Also: → 1234488
Comment on attachment 8704933 [details] [review]
[gaia] jrburke:bug1234732-email-cleanup-header-cursor > mozilla-b2g:master

Review notes in the pull request. Basically, missed cleaning up a defunct HeaderCursor instance.
Flags: needinfo?(jrburke)
Attachment #8704933 - Flags: review?(bugmail)
Attachment #8704933 - Flags: review?(bugmail) → review+
Merged in Gaia master:
https://github.com/mozilla-b2g/gaia/commit/664e9c376606b9633d20e24edd5b6fa0ab9edadf
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: