Bug 1019662 - Report errors when we can't send frameworker:connect. r=flo
authorDavid Rajchenbach-Teller <dteller@mozilla.com>
Wed, 04 Jun 2014 03:23:00 -0400
changeset 186576 41817bdae9f03bd8d4d6fe475bc1f85181e40074
parent 186575 35a50dd7629d5e9c04da36d50814e711c40386b1
child 186577 0a3b529d97ca3724aced508a270e3758c1c2925d
push id26896
push userkwierso@gmail.com
push dateThu, 05 Jun 2014 00:44:23 +0000
treeherdermozilla-central@882826199076 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflo
bugs1019662
milestone32.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 1019662 - Report errors when we can't send frameworker:connect. r=flo
toolkit/components/social/FrameWorker.jsm
--- a/toolkit/components/social/FrameWorker.jsm
+++ b/toolkit/components/social/FrameWorker.jsm
@@ -52,16 +52,18 @@ this.getFrameWorkerHandle =
     existingWorker = workerCache[url] = new _Worker(browserPromise, options);
   }
 
   // message the content so it can establish a new connection with the worker.
   let portid = _nextPortId++;
   existingWorker.browserPromise.then(browser => {
     browser.messageManager.sendAsyncMessage("frameworker:connect",
                                             { portId: portid });
+  }).then(null, (ex) => {
+    Cu.reportError("Could not send frameworker:connect: " + ex);
   });
   // return the pseudo worker object.
   let port = new ParentPort(portid, existingWorker.browserPromise, clientWindow);
   existingWorker.ports.set(portid, port);
   return new WorkerHandle(port, existingWorker);
 };
 
 // A "_Worker" is an internal representation of a worker.  It's never returned