Bug 743615 - MainThreadWorkerStructuredCloneCallbacks should not call the WorkerStructuredCloneCallbacks variants. r=bent

Doing so makes no sense. It seems like a no-op right now because we handle all the same cases first. But it's a hazard, and a problem for my upcoming patches.
This commit is contained in:
Bobby Holley 2012-04-24 00:53:37 +02:00
parent 415205d98d
commit 867538f142

View File

@ -466,12 +466,6 @@ struct MainThreadWorkerStructuredCloneCallbacks
}
}
JSObject* clone =
WorkerStructuredCloneCallbacks::Read(aCx, aReader, aTag, aData, aClosure);
if (clone) {
return clone;
}
JS_ClearPendingException(aCx);
return NS_DOMReadStructuredClone(aCx, aReader, aTag, aData, nsnull);
}
@ -527,12 +521,6 @@ struct MainThreadWorkerStructuredCloneCallbacks
}
}
JSBool ok =
WorkerStructuredCloneCallbacks::Write(aCx, aWriter, aObj, aClosure);
if (ok) {
return ok;
}
JS_ClearPendingException(aCx);
return NS_DOMWriteStructuredClone(aCx, aWriter, aObj, nsnull);
}