[Pkg-mozext-commits] [firexpath] 02/02: Resolve a bug when switching off Firebug in separate window mode the highlight wasn't reset and when reattaching there were an uncaught exception that was messing up Firebug (could not switch tab anymore)

David Prévot taffit at moszumanska.debian.org
Sat Mar 26 19:35:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag FireXPath-0.9.2
in repository firexpath.

commit 1e839441a49d6cfb6861441f5add3f502b07bc4d
Author: pierre.tholence <pierre.tholence at dfa30af4-1965-11df-8728-136f2c2ca76e>
Date:   Sun Feb 14 17:23:17 2010 +0000

    Resolve a bug when switching off Firebug in separate window mode the highlight wasn't reset and when reattaching there were an uncaught exception that was messing up Firebug (could not switch tab anymore)
---
 content/XPathPanel.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/content/XPathPanel.js b/content/XPathPanel.js
index 6818ee9..294babd 100644
--- a/content/XPathPanel.js
+++ b/content/XPathPanel.js
@@ -177,8 +177,10 @@ Firebug.XPathPanel.prototype = extend(Firebug.Panel,
 	},
 	
 	showModules: function(show) {
-		this.xPathBar.show(this.context, show);
-		this.xPathStatusBar.show(this.context, show);
+		try {
+			this.xPathBar.show(this.context, show);
+			this.xPathStatusBar.show(this.context, show);
+		} catch (e) {}
 		
 		var $ = FBL.$;
 		if(this.context.chrome)
@@ -1630,6 +1632,7 @@ Firebug.XPathPanel.ResultHighlightModule = extend(Firebug.Module,
 	
 	destroyContext: function(context, persistedState) {
 		persistedState.persistedXPathResultNotHighlighted = !!context.xPathResultNotHighlighted;
+		this.clear();
 	},
 	
 	loadedContext: function(context) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firexpath.git



More information about the Pkg-mozext-commits mailing list