Web Inspector: TabBar redesign: only show allowed tabs in the available tabs context menu
https://bugs.webkit.org/show_bug.cgi?id=182721
<rdar://problem/37479019>

Reviewed by Timothy Hatcher.

In addition to only including allowed tabs in the TabBar context menu,
perform a sanity check when setting the selected tab item, since the
serialized selection index could refer to a tab that is no longer allowed.

* UserInterface/Views/LegacyTabBar.js:
(WI.LegacyTabBar.prototype.set selectedTabBarItem):
(WI.LegacyTabBar.prototype._handleContextMenu):

* UserInterface/Views/TabBar.js:
(WI.TabBar.prototype.set selectedTabBarItem):
(WI.TabBar.prototype._handleContextMenu):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@228479 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebInspectorUI/ChangeLog b/Source/WebInspectorUI/ChangeLog
index 277bc54..a45d525 100644
--- a/Source/WebInspectorUI/ChangeLog
+++ b/Source/WebInspectorUI/ChangeLog
@@ -1,3 +1,23 @@
+2018-02-14  Matt Baker  <mattbaker@apple.com>
+
+        Web Inspector: TabBar redesign: only show allowed tabs in the available tabs context menu
+        https://bugs.webkit.org/show_bug.cgi?id=182721
+        <rdar://problem/37479019>
+
+        Reviewed by Timothy Hatcher.
+
+        In addition to only including allowed tabs in the TabBar context menu,
+        perform a sanity check when setting the selected tab item, since the
+        serialized selection index could refer to a tab that is no longer allowed.
+
+        * UserInterface/Views/LegacyTabBar.js:
+        (WI.LegacyTabBar.prototype.set selectedTabBarItem):
+        (WI.LegacyTabBar.prototype._handleContextMenu):
+
+        * UserInterface/Views/TabBar.js:
+        (WI.TabBar.prototype.set selectedTabBarItem):
+        (WI.TabBar.prototype._handleContextMenu):
+
 2018-02-09  Matt Baker  <mattbaker@apple.com>
 
         Web Inspector: Canvas tab: tree selection abruptly changes when selecting a recording frame