https://bugs.webkit.org/show_bug.cgi?id=147554
Reviewed by Timothy Hatcher.
Check current tab before appending context menu items.
* UserInterface/Base/Main.js:
(WebInspector.isShowingDebuggerTab):
* UserInterface/Views/SourceCodeTextEditor.js:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187900
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-08-04 Matt Baker <mattbaker@apple.com>
+
+ Web Inspector: Don't show 'Reveal In Debugger Tab' menu item if already in Debugger tab
+ https://bugs.webkit.org/show_bug.cgi?id=147554
+
+ Reviewed by Timothy Hatcher.
+
+ Check current tab before appending context menu items.
+
+ * UserInterface/Base/Main.js:
+ (WebInspector.isShowingDebuggerTab):
+ * UserInterface/Views/SourceCodeTextEditor.js:
+
2015-08-04 Devin Rousso <drousso@apple.com>
Web Inspector: buttons in new tab screen lack hover styles
this.tabBrowser.showTabForContentView(tabContentView);
};
+WebInspector.isShowingDebuggerTab = function()
+{
+ return this.tabBrowser.selectedTabContentView instanceof WebInspector.DebuggerTabContentView;
+};
+
WebInspector.showResourcesTab = function()
{
var tabContentView = this.tabBrowser.bestTabContentViewForClass(WebInspector.ResourcesTabContentView);
}
// Single breakpoint.
- if (breakpoints.length === 1) {
+ if (breakpoints.length === 1 && !WebInspector.isShowingDebuggerTab()) {
var breakpoint = breakpoints[0];
breakpoint.appendContextMenuItems(contextMenu, event.target);