mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1434126 - Call GeckoSession.closeWindow() from onDestroy() in CustomTabsActivity and WebAppActivity. r=snorp
This commit is contained in:
parent
a11a9d201f
commit
cb9419b55e
@ -179,6 +179,7 @@ public class CustomTabsActivity extends AppCompatActivity
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
mGeckoSession.closeWindow();
|
||||
mTextSelection.destroy();
|
||||
mFormAssistPopup.destroy();
|
||||
mDoorHangerPopup.destroy();
|
||||
|
@ -217,6 +217,7 @@ public class WebAppActivity extends AppCompatActivity
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
mGeckoSession.closeWindow();
|
||||
mTextSelection.destroy();
|
||||
mDoorHangerPopup.destroy();
|
||||
mPromptService.destroy();
|
||||
|
@ -565,7 +565,8 @@ public class GeckoSession extends LayerSession
|
||||
ThreadUtils.assertOnUiThread();
|
||||
|
||||
if (!isOpen()) {
|
||||
throw new IllegalStateException("Session is not open");
|
||||
Log.w(LOGTAG, "Attempted to close a GeckoSession that was already closed.")
|
||||
return;
|
||||
}
|
||||
|
||||
if (GeckoThread.isStateAtLeast(GeckoThread.State.PROFILE_READY)) {
|
||||
|
Loading…
Reference in New Issue
Block a user