Open Bug 599708 Opened 14 years ago Updated 2 years ago

UpdateFolderWithListener should properly indicate when it's done

Categories

(MailNews Core :: Filters, defect)

defect

Tracking

(Not tracked)

People

(Reporter: bugzilla, Unassigned)

References

Details

(Whiteboard: [patchlove])

Attachments

(1 file)

As Kent mentioned in bug 584327 comment #9 this could be a core bug. Perhaps this could be also related to the random oranges we get e.g. for test_imapUndo.js?
This could be related to bug 580179.
See Also: → 580179
I spent quite a bit of time trying to get updateFolderWithListener working more reliably in tests, trying to get test_imapPlayback working with maildir in bug 1113275. The issues have to do with nsImapOfflineSync which returns early while urls are still running.

I ultimately decided that, for the purposes of bug 1113275, then changes needed were too extensive and unrelated to getting maildir working. I could get maildir working by not trying to restart the test like we do in other tests.

I'll post the patch I was working on, which does not work but a least shows some of the areas where the problems exist.
Whiteboard: [patchlove]

For me it seems like the reasons to upgrade UpdateFolderWithListener was the test infrastructure.
This reason should be gone with the usage of PromiseTestUtils.

PromiseUrlListener

https://searchfox.org/comm-central/rev/9ebb9d17182a3fef3b11a30fcbec14db9a2949fe/mailnews/test/resources/PromiseTestUtils.jsm#25

Example Usage

https://searchfox.org/comm-central/rev/9ebb9d17182a3fef3b11a30fcbec14db9a2949fe/mailnews/base/test/unit/test_detachToFile.js#85

If you have another usage besides the test infrastructure we could consider adding this feature.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: