зеркало из https://github.com/mozilla/gecko-dev.git
Bug 776116 - In BrowserElementParent.js, return the result of sync messages. (Broken by bug 773980.) r=mounir
This commit is contained in:
Родитель
8ede837e1a
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче