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 12:58:07 +02:00
parent 14988b5704
commit 6de4e1495d

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);
}