зеркало из https://github.com/mozilla/pjs.git
bug 660783 - JSClass::trace hooks must allow for calls from any thread. r=bent
This commit is contained in:
Родитель
d652e05dc4
Коммит
ede579598c
|
@ -914,7 +914,6 @@ nsDOMWorkerScope::Trace(nsIXPConnectWrappedNative* /* aWrapper */,
|
|||
JSTracer* aTracer,
|
||||
JSObject* /*aObj */)
|
||||
{
|
||||
NS_ASSERTION(NS_IsMainThread(), "Wrong thread!");
|
||||
nsDOMWorkerMessageHandler::Trace(aTracer);
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -1509,8 +1508,6 @@ nsDOMWorker::Trace(nsIXPConnectWrappedNative* /* aWrapper */,
|
|||
JSTracer* aTracer,
|
||||
JSObject* /*aObj */)
|
||||
{
|
||||
NS_ASSERTION(NS_IsMainThread(), "Wrong thread!");
|
||||
|
||||
PRBool canceled = PR_FALSE;
|
||||
{
|
||||
MutexAutoLock lock(mLock);
|
||||
|
|
|
@ -430,8 +430,6 @@ nsDOMWorkerXHR::Trace(nsIXPConnectWrappedNative* /* aWrapper */,
|
|||
JSTracer* aTracer,
|
||||
JSObject* /*aObj */)
|
||||
{
|
||||
NS_ASSERTION(NS_IsMainThread(), "Wrong thread!");
|
||||
|
||||
if (!mCanceled) {
|
||||
nsDOMWorkerMessageHandler::Trace(aTracer);
|
||||
if (mUpload) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче