Permanent Orange: TEST-UNEXPECTED-FAIL | test_index_junk_imap_offline.js | uncaught exception: 2147500037

RESOLVED FIXED in Thunderbird 26.0


MailNews Core
Testing Infrastructure
4 years ago
4 years ago


(Reporter: standard8, Assigned: standard8)



Thunderbird 26.0

Thunderbird Tracking Flags

(thunderbird24 fixed, thunderbird25 fixed)



(1 attachment)

Seen since we've had the major orange:

TEST-UNEXPECTED-FAIL | ../../../../resources/logHelper.js | Error console says [stackFrame uncaught exception: 2147500037] - See following stack:
JS frame :: ../../../../resources/logHelper.js :: _errorConsoleTunnel.observe :: line 63
native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0
Created attachment 788118 [details] [diff] [review]

I've traced this through via the debugger. This is roughly what is happening:

- The test sets up the message folders, and configures for offline storage
- Attempting to get one of the messages (in test_never_indexes_a_message_marked_as_junk), causes the IMAP service to initialise the offline cache
- It then looks in the offline storage, it is not there, so it looks in the "browser" cache
- The "browser" cache gets initialised, and as part of this it looks for "cachePDir" from the nsIDirectoryServiceProvider.
- The implemented directory service providers throw as they should do.
- The javascript console records the error as uncaught, even though c++ handles the result.

So I think this is really some sort of xpconnect issue. Unfortunately I've not been able to come up with a simple test case just yet.

I'm therefore proposing that we work around it by setting two prefs that will mean we avoid calling the directory service with "cachePDir". (See nsCacheProfilePrefObserver::ReadPrefs for more info).

When I get time, I'll then see if I can come up with a test case later on and get a core bug filed.
Assignee: nobody → mbanner
Attachment #788118 - Flags: review?(Pidgeot18)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Attachment #788118 - Flags: review?(Pidgeot18) → review+
Comment hidden (Treeherder Robot)
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 26.0
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment on attachment 788118 [details] [diff] [review]

[Triage Comment]
Passes on trunk, so taking to aurora & beta
Attachment #788118 - Flags: approval-comm-beta+
Attachment #788118 - Flags: approval-comm-aurora+
status-thunderbird24: --- → fixed
status-thunderbird25: --- → fixed
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
You need to log in before you can comment on or make changes to this bug.