Closed
Bug 431130
Opened 17 years ago
Closed 16 years ago
xpcshell test test_nsIDownloadHistory.js fails on Thunderbird
Categories
(Thunderbird :: General, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3
People
(Reporter: standard8, Assigned: standard8)
References
Details
Attachments
(1 file)
(deleted),
patch
|
sdwilsh
:
review+
|
Details | Diff | Splinter Review |
test_nsIDownloadHistory.js fails when running against Thunderbird:
[Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]" nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)" location: "JS frame :: ../../_tests/xpcshell-simple/test_docshell/unit/test_nsIDownloadHistory.js :: testLinkVistedObserver :: line 48" data: no]
I'm filing this to get it tracked. Not sure if this is a core or a Thunderbird specific problem yet. Will post more info when I have it.
Assignee | ||
Comment 1•17 years ago
|
||
(In reply to comment #0)
> test_nsIDownloadHistory.js fails when running against Thunderbird:
>
> [Exception... "Component returned failure code: 0x80570016
> (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]" nsresult:
> "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)" location: "JS frame ::
> ../../_tests/xpcshell-simple/test_docshell/unit/test_nsIDownloadHistory.js ::
> testLinkVistedObserver :: line 48" data: no]
So this bug is caused by us not building toolkit/components/history or toolkit/components/places.
I think we should probably try changing the test to detect places (or lack therefore) like I have proposed for bug 431159. If I don't get any objections in the next day, then I'll go for it.
Assignee | ||
Comment 2•16 years ago
|
||
This is similar to what I did in bug 431159. Thunderbird doesn't build with any history in place; the reason the getService fails is because the docshell/ code assumes that older extensions will provide an nsGlobalHistory or nsGlobalHistory2 implementation and tries to use an adapter. This will always fail in the Thunderbird case.
Therefore this code catches that and turns the test into a pass. Other tests (esp those in toolkit/components/places) will detect the lack of an appropriate history object for Firefox builds.
Attachment #325300 -
Flags: review?
Assignee | ||
Updated•16 years ago
|
Attachment #325300 -
Flags: review? → review?(benjamin)
Updated•16 years ago
|
Attachment #325300 -
Flags: review?(benjamin) → review?(sdwilsh)
Comment 3•16 years ago
|
||
Comment on attachment 325300 [details] [diff] [review]
Don't run the test if getService fails.
bah - please make sure I'm cc'd to bugs that need my review. I don't always check my review queue.
r=sdwilsh
Attachment #325300 -
Flags: review?(sdwilsh) → review+
Assignee | ||
Updated•16 years ago
|
Priority: -- → P2
Comment 4•16 years ago
|
||
Pushed to mozilla-central:
http://hg.mozilla.org/mozilla-central/index.cgi/rev/b71578e7622a
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Target Milestone: --- → Thunderbird 3
You need to log in
before you can comment on or make changes to this bug.
Description
•