[Pkg-mozext-commits] [firebug] 15/48: Issue 7480: Firefox UI blocked when breakpoint is hit
David Prévot
taffit at moszumanska.debian.org
Tue Jun 3 01:47:43 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 c8f41304a9d1ea0f26d70f4ad85782eb38c70f75
Author: Jan Odvarko <odvarko at gmail.com>
Date: Wed May 28 12:45:59 2014 +0200
Issue 7480: Firefox UI blocked when breakpoint is hit
---
extension/content/firebug/chrome/chrome.js | 6 ++++++
extension/content/firebug/debugger/script/scriptPanel.js | 5 +++++
2 files changed, 11 insertions(+)
diff --git a/extension/content/firebug/chrome/chrome.js b/extension/content/firebug/chrome/chrome.js
index fdad759..cf49ed7 100644
--- a/extension/content/firebug/chrome/chrome.js
+++ b/extension/content/firebug/chrome/chrome.js
@@ -460,6 +460,12 @@ var FirebugChrome =
panelBar1.browser.contentWindow.focus();
},
+ blur: function()
+ {
+ win.blur();
+ panelBar1.browser.contentWindow.blur();
+ },
+
isFocused: function()
{
return wm.getMostRecentWindow(null) == win;
diff --git a/extension/content/firebug/debugger/script/scriptPanel.js b/extension/content/firebug/debugger/script/scriptPanel.js
index 62ecd78..cb106f5 100644
--- a/extension/content/firebug/debugger/script/scriptPanel.js
+++ b/extension/content/firebug/debugger/script/scriptPanel.js
@@ -1650,6 +1650,11 @@ ScriptPanel.prototype = Obj.extend(BasePanel,
this.syncCommands(this.context);
this.syncListeners(this.context);
+ // Handling focus events causes Firebug UI to freeze (see issue 7480),
+ // so, release the focus from the browser window it'll be focused
+ // again on the line below.
+ Firebug.chrome.blur();
+
// issue 3463 and 4213
Firebug.chrome.syncPanel("script");
Firebug.chrome.focus();
--
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