зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1378738 - Stop using sdk/window/utils in Netmonitor; r=rickychien
MozReview-Commit-ID: 4Z4pDHxhbZN --HG-- extra : rebase_source : febe5d1737f7d80711aa890065308dd9422236d7
This commit is contained in:
Родитель
2b08986be1
Коммит
5bfbba28c6
|
@ -6,8 +6,10 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const Services = require("Services");
|
||||
const { Ci, Cc, CC } = require("chrome");
|
||||
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.jsm");
|
||||
const { gDevTools } = require("devtools/client/framework/devtools");
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "dirService", function () {
|
||||
return Cc["@mozilla.org/file/directory_service;1"]
|
||||
|
@ -23,7 +25,7 @@ XPCOMUtils.defineLazyGetter(this, "LocalFile", function () {
|
|||
});
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "getMostRecentBrowserWindow", function () {
|
||||
return require("sdk/window/utils").getMostRecentBrowserWindow;
|
||||
return Services.wm.getMostRecentWindow(gDevTools.chromeWindowType);
|
||||
});
|
||||
|
||||
const OPEN_FLAGS = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче