Bug 800281 - Remove usage of MozWebSocket in FrameWorker.jsm. r=jaws
authorEkanan Ketunuti <ananuti@gmail.com>
Fri, 12 Oct 2012 10:09:58 +0700
changeset 110267 eaffa9d2341ea5b92c68951d8cda4cb1004b0bbd
parent 110266 0fc7b1fbc8af638ba51e1895d7d1b107d2e512a2
child 110268 057589f16a3acda5898755666999df67bc9f7a37
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersjaws
bugs800281
milestone19.0a1
Bug 800281 - Remove usage of MozWebSocket in FrameWorker.jsm. r=jaws
toolkit/components/social/FrameWorker.jsm
--- a/toolkit/components/social/FrameWorker.jsm
+++ b/toolkit/components/social/FrameWorker.jsm
@@ -91,18 +91,18 @@ function FrameWorker(url, name) {
 FrameWorker.prototype = {
   createSandbox: function createSandbox() {
     let workerWindow = this.frame.contentWindow;
     let sandbox = new Cu.Sandbox(workerWindow);
 
     // copy the window apis onto the sandbox namespace only functions or
     // objects that are naturally a part of an iframe, I'm assuming they are
     // safe to import this way
-    let workerAPI = ['MozWebSocket', 'WebSocket', 'localStorage',
-                     'atob', 'btoa', 'clearInterval', 'clearTimeout', 'dump',
+    let workerAPI = ['WebSocket', 'localStorage', 'atob', 'btoa',
+                     'clearInterval', 'clearTimeout', 'dump',
                      'setInterval', 'setTimeout', 'XMLHttpRequest',
                      'MozBlobBuilder', 'FileReader', 'Blob',
                      'location'];
     workerAPI.forEach(function(fn) {
       try {
         // XXX Need to unwrap for this to work - find out why!
         sandbox[fn] = XPCNativeWrapper.unwrap(workerWindow)[fn];
       }