[Pkg-mozext-commits] [firebug] 03/16: Little improvement after 7e10b8b (issue 7620): make sure the Console panel is focused after the user has clicked an anchor and switches back to the Console panel
David Prévot
taffit at moszumanska.debian.org
Thu Sep 18 18:10:13 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 a489f76dc5ff994009ee527e4c58e6dccd20db5a
Author: Florent FAYOLLE <florent.fayolle69 at gmail.com>
Date: Fri Aug 15 00:22:08 2014 +0200
Little improvement after 7e10b8b (issue 7620):
make sure the Console panel is focused after the user has clicked an
anchor and switches back to the Console panel
---
extension/content/firebug/chrome/tabWatcher.js | 4 +++-
extension/content/firebug/console/consolePanel.js | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/extension/content/firebug/chrome/tabWatcher.js b/extension/content/firebug/chrome/tabWatcher.js
index 922542e..6a6cc4b 100644
--- a/extension/content/firebug/chrome/tabWatcher.js
+++ b/extension/content/firebug/chrome/tabWatcher.js
@@ -187,7 +187,7 @@ Firebug.TabWatcher = Obj.extend(new EventSource(),
FBTrace.sysout("tabWatcher.watchTopWindow; page already watched");
return;
}
- context.reused = true;
+ context.beingReused = true;
}
else // then we've not looked this window in this session
{
@@ -321,6 +321,8 @@ Firebug.TabWatcher = Obj.extend(new EventSource(),
}
this.watchContext(win, context); // calls showContext
+
+ context.beingReused = false;
},
// Listeners decide to show or not
diff --git a/extension/content/firebug/console/consolePanel.js b/extension/content/firebug/console/consolePanel.js
index 89f4300..93de8b4 100644
--- a/extension/content/firebug/console/consolePanel.js
+++ b/extension/content/firebug/console/consolePanel.js
@@ -231,7 +231,7 @@ ConsolePanel.prototype = Obj.extend(ActivablePanel,
// xxxFlorent: FIXME? Opening Firebug twice in detached mode on the same webpage doesn't
// give the Focus to the Command Line.
if (this.context.window.document.readyState === "complete" && !isAboutLocation &&
- !(Firebug.isDetached() && !hasSwitchedPanel) && !this.context.reused)
+ !(Firebug.isDetached() && !hasSwitchedPanel) && !this.context.beingReused)
{
CommandLine.focus(this.context);
}
--
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