From a8337233b1595ad9bbca7390f7372c6efe261003 Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Fri, 16 Aug 2013 19:04:25 -0700 Subject: [PATCH] Back out ae91affad44f (bug 889944) for browser-chrome bustage CLOSED TREE --- .../devtools/netmonitor/netmonitor-view.js | 12 ------ browser/devtools/netmonitor/netmonitor.xul | 4 -- browser/devtools/netmonitor/test/Makefile.in | 1 - .../test/browser_net_open_request_in_tab.js | 37 ------------------- .../chrome/browser/devtools/netmonitor.dtd | 10 ----- 5 files changed, 64 deletions(-) delete mode 100644 browser/devtools/netmonitor/test/browser_net_open_request_in_tab.js diff --git a/browser/devtools/netmonitor/netmonitor-view.js b/browser/devtools/netmonitor/netmonitor-view.js index 1fd9d5736281..3e3761d9fd51 100644 --- a/browser/devtools/netmonitor/netmonitor-view.js +++ b/browser/devtools/netmonitor/netmonitor-view.js @@ -362,18 +362,6 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, { this.selectedItem = newItem; }, - /** - * Opens selected item in a new tab. - */ - openRequestInTab: function() { - let win = Services.wm.getMostRecentWindow("navigator:browser"); - let browser = win.getBrowser(); - - let selected = this.selectedItem.attachment; - - browser.selectedTab = browser.addTab(selected.url); - }, - /** * Copy the request url from the currently selected item. */ diff --git a/browser/devtools/netmonitor/netmonitor.xul b/browser/devtools/netmonitor/netmonitor.xul index 6d20dcdd6102..e4a1c4138264 100644 --- a/browser/devtools/netmonitor/netmonitor.xul +++ b/browser/devtools/netmonitor/netmonitor.xul @@ -20,10 +20,6 @@ - { - info("Starting test..."); - - let { NetMonitorView } = aMonitor.panelWin; - let { RequestsMenu } = NetMonitorView; - - RequestsMenu.lazyUpdate = false; - - waitForNetworkEvents(aMonitor, 1).then(() => { - let requestItem = RequestsMenu.getItemAtIndex(0); - RequestsMenu.selectedItem = requestItem; - - gBrowser.tabContainer.addEventListener("TabOpen", function(event) { - ok(true, "A new tab has been opened "); - removeTab(event.target); - cleanUp(); - }, false); - - RequestsMenu.openRequestInTab(); - }); - - aDebuggee.performRequests(1); - function cleanUp(){ - teardown(aMonitor).then(finish); - } - }); -} diff --git a/browser/locales/en-US/chrome/browser/devtools/netmonitor.dtd b/browser/locales/en-US/chrome/browser/devtools/netmonitor.dtd index 38ad11fd73a7..a265947962a9 100644 --- a/browser/locales/en-US/chrome/browser/devtools/netmonitor.dtd +++ b/browser/locales/en-US/chrome/browser/devtools/netmonitor.dtd @@ -177,16 +177,6 @@ - for the Copy URL menu item displayed in the context menu for a request --> - - - - - -