Bug 1658988 - Close tab in ContentDelegate#onCloseRequest instead of finishing the activity to keep GVE from going into background r=geckoview-reviewers,agi

Differential Revision: https://phabricator.services.mozilla.com/D107484
This commit is contained in:
owlishDeveloper 2021-03-08 17:24:11 +00:00
Родитель 3abf59cdb7
Коммит 75c069fff9
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -1538,8 +1538,9 @@ public class GeckoViewActivity
@Override
public void onCloseRequest(final GeckoSession session) {
if (session == mTabSessionManager.getCurrentSession()) {
finish();
final TabSession currentSession = mTabSessionManager.getCurrentSession();
if (session == currentSession) {
closeTab(currentSession);
}
}