[Pkg-mozext-commits] [firebug] 03/59: FBTrace: Catch an exception when Firebug is not installed

David Prévot taffit at moszumanska.debian.org
Thu Aug 14 14:52:52 UTC 2014


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

taffit pushed a commit to branch master
in repository firebug.

commit d2527bb4fc25514b61f4f7e4aaac380c88d9de7a
Author: Jan Odvarko <odvarko at gmail.com>
Date:   Wed Jul 9 14:50:49 2014 +0200

    FBTrace: Catch an exception when Firebug is not installed
---
 trace/FBTrace/chrome/content/traceFirebugOverlay.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/trace/FBTrace/chrome/content/traceFirebugOverlay.js b/trace/FBTrace/chrome/content/traceFirebugOverlay.js
index ada7002..a13db6f 100644
--- a/trace/FBTrace/chrome/content/traceFirebugOverlay.js
+++ b/trace/FBTrace/chrome/content/traceFirebugOverlay.js
@@ -27,8 +27,12 @@ var Ci = Components.interfaces;
 var Cu = Components.utils;
 
 // For "Open Firebug Tracing" menu item (in Firebug).
-var Locale = Cu.import("resource://firebug/locale.js").Locale;
-Locale.registerStringBundle("chrome://fbtrace/locale/firebug-tracing.properties");
+try {
+  var Locale = Cu.import("resource://firebug/locale.js").Locale;
+  Locale.registerStringBundle("chrome://fbtrace/locale/firebug-tracing.properties");
+}
+catch (err) {
+}
 
 this.initialize = function()
 {

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



More information about the Pkg-mozext-commits mailing list