Bug 1301127 - Make nsNavHistoryFolderResultNode QueryInterface to mozIStorageStatementCallback, r=smaug

MozReview-Commit-ID: 5CPNIz3w4Iy
This commit is contained in:
Michael Layzell 2016-09-07 13:48:23 -04:00
Родитель 5abbe17848
Коммит 60651a924f
2 изменённых файлов: 4 добавлений и 9 удалений

Просмотреть файл

@ -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,