зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
3abf59cdb7
Коммит
75c069fff9
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче