[Pkg-mozext-commits] [firebug] 13/21: #7918 The Script panel does not show any script when reopening Firebug in Fx 39
David Prévot
taffit at moszumanska.debian.org
Tue Sep 15 16:17:06 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firebug.
commit 137d302e0777b707c9bc7c32d0fc935411bc4332
Author: Jan Odvarko <odvarko at gmail.com>
Date: Mon Aug 10 15:38:49 2015 +0200
#7918 The Script panel does not show any script when reopening Firebug in Fx 39
---
extension/content/firebug/remoting/debuggerClient.js | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/extension/content/firebug/remoting/debuggerClient.js b/extension/content/firebug/remoting/debuggerClient.js
index c8ecb1d..3f54fdb 100644
--- a/extension/content/firebug/remoting/debuggerClient.js
+++ b/extension/content/firebug/remoting/debuggerClient.js
@@ -405,6 +405,12 @@ var DebuggerClient = Obj.extend(Firebug.Module,
onThreadAttached: function(context)
{
+ // "newSource" events are emitted by thread-actor now.
+ // https://hg.mozilla.org/integration/mozilla-inbound/rev/152f968b6b13
+ // https://github.com/firebug/firebug/issues/7918
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1171967
+ context.activeThread.addListener("newSource", this.newSource);
+
this.dispatch("onThreadAttached", [context, false]);
Firebug.dispatchEvent(context.browser, "onThreadAttached");
@@ -412,6 +418,8 @@ var DebuggerClient = Obj.extend(Firebug.Module,
onThreadDetached: function(context)
{
+ context.activeThread.removeListener("newSource");
+
this.dispatch("onThreadDetached", [context]);
Firebug.dispatchEvent(context.browser, "onThreadDetached");
--
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