mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +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 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user