Bug 776116 - In BrowserElementParent.js, return the result of sync messages. (Broken by bug 773980.) r=mounir

This commit is contained in:
Justin Lebar 2012-07-20 18:47:52 -04:00
parent 8ede837e1a
commit 7cd67d1fd5

View File

@ -139,7 +139,7 @@ function BrowserElementParent(frameLoader) {
function addMessageListener(msg, handler) { function addMessageListener(msg, handler) {
function checkedHandler() { function checkedHandler() {
if (self._isAlive()) { if (self._isAlive()) {
handler.apply(self, arguments); return handler.apply(self, arguments);
} }
} }
self._mm.addMessageListener('browser-element-api:' + msg, checkedHandler); self._mm.addMessageListener('browser-element-api:' + msg, checkedHandler);