Closed Bug 624230 Opened 11 years ago Closed 10 years ago
Error: 0x80070057 (NS
_ERROR _ILLEGAL _VALUE) [ns INav History Service .execute Queries]
I'm not sure we actually care about random queries that are not generated by us being forced to display here. Normal code paths that a user would hit are unit tested.
it's ok on ff 4.0 beta 11,but it's come out on ff 4.0 beta 12 Error: uncaught exception: addToLocal: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsINavHistoryService.executeQuery]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: resource://gre/modules/PlacesUtils.jsm :: PU_getFolderContents :: line 790" data: no] the code is: var historyService = PlacesUtils.history; var options = historyService.getNewQueryOptions(); var query = historyService.getNewQuery(); query.setFolders([folder], 1); historyService.executeQuery(query, options);
sounds correct to me, if folder doesn't exist it should throw
(In reply to comment #3) > sounds correct to me, if folder doesn't exist it should throw Sorry, it's my fault, thanks
This seems resolved in the nightly build, maybe by bug 641074?
Yes, that uniformed the behavior across invalid queries and invalid folder shortcuts. Indeed this case was throwing only for an invalid shortcut, but not for any invalid query, as I initially thought.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Depends on: 641074
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.