Bug 755122 - remove bufferToArrayHack from frameworker. r=markh, a=gavin
authorGavin Sharp <gavin@gavinsharp.com>
Tue, 04 Sep 2012 10:27:49 +1000
changeset 106953 cb14aa3285c5bfef3e3d70ea71ba40d45689ed46
parent 106952 030540c0d2439936eaf0ada86e45b0848990d238
child 106954 faa63e3c6033b631a9a57a3fef8287d75439ccb6
push id2163
push usergsharp@mozilla.com
push dateTue, 25 Sep 2012 18:36:19 +0000
treeherdermozilla-aurora@cac6e074c72c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh, gavin
bugs755122
milestone17.0a2
Bug 755122 - remove bufferToArrayHack from frameworker. r=markh, a=gavin
toolkit/components/social/FrameWorker.jsm
--- a/toolkit/components/social/FrameWorker.jsm
+++ b/toolkit/components/social/FrameWorker.jsm
@@ -141,21 +141,16 @@ FrameWorker.prototype = {
 
     sandbox._postMessage = function fw_postMessage(d, o) {
       workerWindow.postMessage(d, o)
     };
     sandbox._addEventListener = function fw_addEventListener(t, l, c) {
       workerWindow.addEventListener(t, l, c)
     };
 
-    // And a very hacky work-around for bug 734215
-    sandbox.bufferToArrayHack = function fw_bufferToArrayHack(a) {
-      return new workerWindow.Uint8Array(a);
-    };
-
     this.sandbox = sandbox;
 
     let worker = this;
 
     workerWindow.addEventListener("load", function loadListener() {
       workerWindow.removeEventListener("load", loadListener);
       // the iframe has loaded the js file as text - first inject the magic
       // port-handling code into the sandbox.