Bug 1084385 - Clone chrome arrays before passing them to emitSync. r=gabor

This commit is contained in:
Bobby Holley 2014-10-18 11:02:08 +02:00
parent 6e028cdcea
commit 2ffb10c766

View File

@ -83,7 +83,7 @@ const WorkerSandbox = EventEmitter.compose({
*/
emitSync: function emitSync() {
let args = Array.slice(arguments);
return this._emitToContent(args);
return this._emitToContent(Cu.cloneInto(args, this._addonWorker._window));
},
/**