Bug 1168853 - Implement WorkerDebugger.isInitialized;r=khuey

This commit is contained in:
Eddy Bruël 2015-06-08 09:08:20 +02:00
Родитель e8e57ab99e
Коммит 9fa7476bb3
2 изменённых файлов: 18 добавлений и 1 удалений

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

@ -4289,6 +4289,21 @@ WorkerDebugger::GetIsFrozen(bool* aResult)
return NS_OK;
}
NS_IMETHODIMP
WorkerDebugger::GetIsInitialized(bool* aResult)
{
AssertIsOnMainThread();
MutexAutoLock lock(mMutex);
if (!mWorkerPrivate) {
return NS_ERROR_UNEXPECTED;
}
*aResult = mIsInitialized;
return NS_OK;
}
NS_IMETHODIMP
WorkerDebugger::GetParent(nsIWorkerDebugger** aResult)
{

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

@ -17,7 +17,7 @@ interface nsIWorkerDebuggerListener : nsISupports
void onThaw();
};
[scriptable, builtinclass, uuid(d7c73e54-3c41-4393-9d13-fa2ed4Ba6764)]
[scriptable, builtinclass, uuid(bdcaf96f-916a-4b24-bb53-165c1785668b)]
interface nsIWorkerDebugger : nsISupports
{
const unsigned long TYPE_DEDICATED = 0;
@ -30,6 +30,8 @@ interface nsIWorkerDebugger : nsISupports
readonly attribute bool isFrozen;
readonly attribute bool isInitialized;
readonly attribute nsIWorkerDebugger parent;
readonly attribute unsigned long type;