зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1301127 - Make nsNavHistoryFolderResultNode QueryInterface to mozIStorageStatementCallback, r=smaug
MozReview-Commit-ID: 5CPNIz3w4Iy
This commit is contained in:
Родитель
5abbe17848
Коммит
60651a924f
|
@ -70,10 +70,7 @@ public:
|
|||
// Hold a strong reference to the callback while notifying it, so that if
|
||||
// it spins the event loop, the callback won't be released and freed out
|
||||
// from under us.
|
||||
//
|
||||
// We can't put it in a nsCOMPtr, as sometimes mCallback doesn't
|
||||
// QueryInterface to a mozIStorageStatementCallback, despite being one
|
||||
RefPtr<mozIStorageStatementCallback> callback = mCallback;
|
||||
nsCOMPtr<mozIStorageStatementCallback> callback = mCallback;
|
||||
|
||||
(void)callback->HandleResult(mResults);
|
||||
}
|
||||
|
@ -108,10 +105,7 @@ public:
|
|||
// Hold a strong reference to the callback while notifying it, so that if
|
||||
// it spins the event loop, the callback won't be released and freed out
|
||||
// from under us.
|
||||
//
|
||||
// We can't put it in a nsCOMPtr, as sometimes mCallback doesn't
|
||||
// QueryInterface to a mozIStorageStatementCallback, despite being one
|
||||
RefPtr<mozIStorageStatementCallback> callback = mCallback;
|
||||
nsCOMPtr<mozIStorageStatementCallback> callback = mCallback;
|
||||
|
||||
(void)callback->HandleError(mErrorObj);
|
||||
}
|
||||
|
|
|
@ -3014,7 +3014,8 @@ nsNavHistoryQueryResultNode::OnItemMoved(int64_t aFolder,
|
|||
*/
|
||||
NS_IMPL_ISUPPORTS_INHERITED(nsNavHistoryFolderResultNode,
|
||||
nsNavHistoryContainerResultNode,
|
||||
nsINavHistoryQueryResultNode)
|
||||
nsINavHistoryQueryResultNode,
|
||||
mozIStorageStatementCallback)
|
||||
|
||||
nsNavHistoryFolderResultNode::nsNavHistoryFolderResultNode(
|
||||
const nsACString& aTitle, nsNavHistoryQueryOptions* aOptions,
|
||||
|
|
Загрузка…
Ссылка в новой задаче