[Pkg-mozext-commits] [requestpolicy] 233/280: clean up code

David Prévot taffit at moszumanska.debian.org
Sat May 2 20:30:33 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 86b9703dbeb2d1167f008443eb5c073424ad3b13
Author: Martin Kimmerle <dev at 256k.de>
Date:   Thu Mar 19 00:47:36 2015 +0100

    clean up code
---
 src/content/lib/logger.jsm | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/src/content/lib/logger.jsm b/src/content/lib/logger.jsm
index 77c8bcd..3ccd6e2 100644
--- a/src/content/lib/logger.jsm
+++ b/src/content/lib/logger.jsm
@@ -158,22 +158,6 @@ let Logger = (function() {
                   ", stack was:\n" + aError.stack : "";
       self.printFunc("[RequestPolicy] [" + levelName + "] [" + typeName + "] "
           + aMessage + stack + "\n");
-
-      if (aError) {
-        // if an error was provided, report it to the browser console
-        Cu.reportError(aError);
-        console.trace();
-      }
-
-      // TODO: remove the following after finishing e10s
-      if (aLevel == self.LEVEL_SEVERE && aType == self.TYPE_ERROR) {
-        let windowtype = 'navigator:browser';
-        let mostRecentWindow  = Services.wm.getMostRecentWindow(windowtype);
-
-        if (mostRecentWindow) {
-          mostRecentWindow.alert("Sorry, RequestPolicy crashed! " + aMessage);
-        }
-      }
     }
   };
 

-- 
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