[Pkg-mozext-commits] [requestpolicy] 06/280: remove Prompter.jsm

David Prévot taffit at moszumanska.debian.org
Sat May 2 20:29:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit d507ffa551ed5c45423b6de98ffaeb416c512d50
Author: Martin Kimmerle <dev at 256k.de>
Date:   Tue Nov 25 04:25:17 2014 +0100

    remove Prompter.jsm
---
 src/content/lib/Prompter.jsm | 33 ---------------------------------
 src/content/requestLog.js    |  3 +--
 2 files changed, 1 insertion(+), 35 deletions(-)

diff --git a/src/content/lib/Prompter.jsm b/src/content/lib/Prompter.jsm
deleted file mode 100644
index 6f9521f..0000000
--- a/src/content/lib/Prompter.jsm
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * ***** BEGIN LICENSE BLOCK *****
- *
- * RequestPolicy - A Firefox extension for control over cross-site requests.
- * Copyright (c) 2008-2012 Justin Samuel
- * Copyright (c) 2014 Martin Kimmerle
- *
- * This program is free software: you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation, either version 3 of the License, or (at your option) any later
- * version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- * details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see <http://www.gnu.org/licenses/>.
- *
- * ***** END LICENSE BLOCK *****
- */
-
-var EXPORTED_SYMBOLS = ["Prompter"]
-
-var Prompter = new function() {
-  this._promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
-      .getService(Components.interfaces.nsIPromptService);
-};
-
-Prompter.alert = function(title, text) {
-  this._promptService.alert(null, title, text);
-}
diff --git a/src/content/requestLog.js b/src/content/requestLog.js
index 744c8cd..13d0752 100644
--- a/src/content/requestLog.js
+++ b/src/content/requestLog.js
@@ -27,7 +27,6 @@ if (!rp) {
 
 Components.utils.import("chrome://requestpolicy/content/lib/DomainUtil.jsm", rp.mod);
 Components.utils.import("chrome://requestpolicy/content/lib/Util.jsm", rp.mod);
-Components.utils.import("chrome://requestpolicy/content/lib/Prompter.jsm", rp.mod);
 
 requestpolicy.requestLog = {
 
@@ -86,7 +85,7 @@ requestpolicy.requestLog = {
       var alertTitle = this._strbundle.getString("actionForbidden");
       var alertText = this._strbundle
           .getString("urlCanOnlyBeCopiedToClipboard");
-      rp.mod.Prompter.alert(alertTitle, alertText);
+      Services.prompt.alert(null, alertTitle, alertText);
       return;
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list