summaryrefslogtreecommitdiffstats
path: root/devtools/client/netmonitor/request-list-context-menu.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-01 17:29:55 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-01 17:29:55 +0100
commit13a6805652925398b2f079f7ee7fba4b512b51ad (patch)
tree9f3dcbcf5b771aa92447421bc875b7062a863659 /devtools/client/netmonitor/request-list-context-menu.js
parentaa60e7f7146d3b90931fd9e1fb01bed8399e6c23 (diff)
downloadUXP-13a6805652925398b2f079f7ee7fba4b512b51ad.tar
UXP-13a6805652925398b2f079f7ee7fba4b512b51ad.tar.gz
UXP-13a6805652925398b2f079f7ee7fba4b512b51ad.tar.lz
UXP-13a6805652925398b2f079f7ee7fba4b512b51ad.tar.xz
UXP-13a6805652925398b2f079f7ee7fba4b512b51ad.zip
Properly pass postData into new tab
https://github.com/MoonchildProductions/moebius/pull/352
Diffstat (limited to 'devtools/client/netmonitor/request-list-context-menu.js')
-rw-r--r--devtools/client/netmonitor/request-list-context-menu.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/devtools/client/netmonitor/request-list-context-menu.js b/devtools/client/netmonitor/request-list-context-menu.js
index 215296265..331a7bde3 100644
--- a/devtools/client/netmonitor/request-list-context-menu.js
+++ b/devtools/client/netmonitor/request-list-context-menu.js
@@ -10,6 +10,7 @@ const Services = require("Services");
const { Task } = require("devtools/shared/task");
const { Curl } = require("devtools/client/shared/curl");
const { gDevTools } = require("devtools/client/framework/devtools");
+const { openRequestInTab } = require("devtools/client/netmonitor/open-request-in-tab");
const Menu = require("devtools/client/framework/menu");
const MenuItem = require("devtools/client/framework/menu-item");
const { L10N } = require("./l10n");
@@ -186,8 +187,7 @@ RequestListContextMenu.prototype = {
*/
openRequestInTab() {
let win = Services.wm.getMostRecentWindow(gDevTools.chromeWindowType);
- let { url } = this.selectedItem.attachment;
- win.openUILinkIn(url, "tab", { relatedToCurrent: true });
+ openRequestInTab(this.selectedItem.attachment);
},
/**