[Pkg-mozext-commits] [firebug] 01/16: Issue 7620: Command Line grabs focus when anchor link is clicked
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 7e10b8bdbd8af4b97121d172ec44fccdce96dd7f
Author: Florent FAYOLLE <florent.fayolle69 at gmail.com>
Date: Sun Aug 10 15:06:44 2014 +0200
Issue 7620: Command Line grabs focus when anchor link is clicked
---
extension/content/firebug/chrome/tabWatcher.js | 1 +
extension/content/firebug/console/consolePanel.js | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/extension/content/firebug/chrome/tabWatcher.js b/extension/content/firebug/chrome/tabWatcher.js
index 5c035f7..922542e 100644
--- a/extension/content/firebug/chrome/tabWatcher.js
+++ b/extension/content/firebug/chrome/tabWatcher.js
@@ -187,6 +187,7 @@ Firebug.TabWatcher = Obj.extend(new EventSource(),
FBTrace.sysout("tabWatcher.watchTopWindow; page already watched");
return;
}
+ context.reused = true;
}
else // then we've not looked this window in this session
{
diff --git a/extension/content/firebug/console/consolePanel.js b/extension/content/firebug/console/consolePanel.js
index eb369da..89f4300 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))
+ !(Firebug.isDetached() && !hasSwitchedPanel) && !this.context.reused)
{
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