[Pkg-mozext-commits] [firebug] 13/30: Catch exception to avoid Firebug UI breakage (happens when cloning extraKeys, see issue 7535)
David Prévot
taffit at moszumanska.debian.org
Fri Jun 20 22:34:24 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 e215eb5e2de9f7a779ffd2864fe8f30a4dd394c8
Author: Jan Odvarko <odvarko at gmail.com>
Date: Mon Jun 16 13:46:23 2014 +0200
Catch exception to avoid Firebug UI breakage (happens when cloning extraKeys, see issue 7535)
---
extension/content/firebug/editor/sourceEditor.js | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/extension/content/firebug/editor/sourceEditor.js b/extension/content/firebug/editor/sourceEditor.js
index 1c9494f..7bb9f41 100644
--- a/extension/content/firebug/editor/sourceEditor.js
+++ b/extension/content/firebug/editor/sourceEditor.js
@@ -184,7 +184,19 @@ SourceEditor.prototype =
// cannot use plain cloneIntoCMScope).
var newConfig = new this.win.Object();
for (var prop in config)
- newConfig[prop] = Wrapper.cloneIntoContentScope(this.win, config[prop]);
+ {
+ try
+ {
+ newConfig[prop] = Wrapper.cloneIntoContentScope(
+ this.win, config[prop]);
+ }
+ catch (err)
+ {
+ TraceError.sysout("sourceEditor.onInit; EXCEPTION when " +
+ "cloning " + prop + ", ERROR: " + err, err);
+ }
+ }
+
Cu.makeObjectPropsNormal(newConfig);
var self = this;
--
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