mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 776116 - In BrowserElementParent.js, return the result of sync messages. (Broken by bug 773980.) r=mounir
This commit is contained in:
parent
8ede837e1a
commit
7cd67d1fd5
@ -139,7 +139,7 @@ function BrowserElementParent(frameLoader) {
|
||||
function addMessageListener(msg, handler) {
|
||||
function checkedHandler() {
|
||||
if (self._isAlive()) {
|
||||
handler.apply(self, arguments);
|
||||
return handler.apply(self, arguments);
|
||||
}
|
||||
}
|
||||
self._mm.addMessageListener('browser-element-api:' + msg, checkedHandler);
|
||||
|
Loading…
Reference in New Issue
Block a user