Bug 755122 - remove bufferToArrayHack from frameworker. r=markh
authorGavin Sharp <gavin@gavinsharp.com>
Tue, 04 Sep 2012 10:27:49 +1000
changeset 104169 3f7c590243c7a56daf3eddb5d6b1be2d83dc3b4a
parent 104168 6e3beef67bf5a2cb537f24ac519f0836e6cda4b7
child 104170 9ae254fcee77f7f34db7f661bea18cc19317581b
push id14367
push usermhammond@skippinet.com.au
push dateTue, 04 Sep 2012 00:28:21 +0000
treeherdermozilla-inbound@3f7c590243c7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh
bugs755122
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 755122 - remove bufferToArrayHack from frameworker. r=markh
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.