Bug 1168853 - Implement WorkerDebugger.isInitialized;r=khuey

This commit is contained in:
Eddy Bruël 2015-06-08 09:08:20 +02:00
parent 2252d80a77
commit 7154d69771
2 changed files with 18 additions and 1 deletions

View File

@ -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)
{

View File

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