From 4a023989b98c75995ff44fd43495c5e8560ab282 Mon Sep 17 00:00:00 2001 From: saneyuki_s Date: Tue, 18 Sep 2012 12:01:39 +0900 Subject: [PATCH] Remove TreeStyleTabUtils.WindowMediator. --- modules/utils.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/modules/utils.js b/modules/utils.js index eccee2fd..ff725914 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -277,14 +277,6 @@ var TreeStyleTabUtils = { }, _SessionStore : null, - get WindowMediator() { - if (!this._WindowMediator) { - this._WindowMediator = Services.wm; - } - return this._WindowMediator; - }, - _WindowMediator : null, - get PromptService() { if (!this._PromptService) { @@ -635,18 +627,18 @@ var TreeStyleTabUtils = { }, get topBrowserWindow() { - return this.WindowMediator.getMostRecentWindow('navigator:browser'); + return Services.wm.getMostRecentWindow('navigator:browser'); }, get browserWindows() { var windows = []; - var targets = this.WindowMediator.getZOrderDOMWindowEnumerator('navigator:browser', true); + var targets = Services.wm.getZOrderDOMWindowEnumerator('navigator:browser', true); // By the bug 156333, we cannot find windows by their Z order on Linux. // https://bugzilla.mozilla.org/show_bug.cgi?id=156333 if (!targets.hasMoreElements()) - targets = this.WindowMediator.getEnumerator('navigator:browser'); + targets = Services.wm.getEnumerator('navigator:browser'); while (targets.hasMoreElements()) {