mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 762717: Tab's onDestroy needs to clear the HashMap, and can be executed in background. [r=margaret]
--HG-- extra : rebase_source : a9494cbbca15a30993d39f939df250d25b831db0
This commit is contained in:
parent
a8447801e6
commit
1444b2fab2
@ -106,7 +106,7 @@ public final class Tab {
|
||||
}
|
||||
|
||||
public void onDestroy() {
|
||||
mDoorHangers = new HashMap<String, DoorHanger>();
|
||||
mDoorHangers.clear();
|
||||
BrowserDB.unregisterContentObserver(mContentResolver, mContentObserver);
|
||||
}
|
||||
|
||||
|
@ -161,11 +161,11 @@ public class Tabs implements GeckoEventListener {
|
||||
|
||||
int tabId = tab.getId();
|
||||
removeTab(tabId);
|
||||
tab.onDestroy();
|
||||
|
||||
GeckoApp.mAppContext.mMainHandler.post(new Runnable() {
|
||||
public void run() {
|
||||
notifyListeners(tab, TabEvents.CLOSED);
|
||||
tab.onDestroy();
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user