Clear parent/child tab relationships when clearing history.
Fixes http://b/issue?id=2330279
diff --git a/src/com/android/browser/TabControl.java b/src/com/android/browser/TabControl.java
index 07cf2ac..5dc6b6d 100644
--- a/src/com/android/browser/TabControl.java
+++ b/src/com/android/browser/TabControl.java
@@ -174,6 +174,15 @@
}
/**
+ * Remove the parent child relationships from all tabs.
+ */
+ void removeParentChildRelationShips() {
+ for (Tab tab : mTabs) {
+ tab.removeFromTree();
+ }
+ }
+
+ /**
* Remove the tab from the list. If the tab is the current tab shown, the
* last created tab will be shown.
* @param t The tab to be removed.