Bug 1343678 - Ensure events expecting a reply get one even if there is no listener r=geckoview-reviewers,droeh,agi

Differential Revision: https://phabricator.services.mozilla.com/D43984

--HG--
extra : moz-landing-system : lando
This commit is contained in:
James Willcox 2019-09-04 21:25:46 +00:00
Родитель 17531c0400
Коммит 99feef5a48
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -318,7 +318,12 @@ public final class EventDispatcher extends JNIObject {
return true;
}
Log.w(LOGTAG, "No listener for " + type);
final String error = "No listener for " + type;
if (callback != null) {
callback.sendError(error);
}
Log.w(LOGTAG, error);
return false;
}