[Pkg-mozext-commits] [firexpath] 05/51: 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
Sun Mar 22 15:08:50 UTC 2015


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

taffit pushed a commit to branch master
in repository firexpath.

commit 9c381bf7ed42816e8473bc5b6104f77fa3c5c5dd
Author: pierre.tholence <pierre.tholence at dfa30af4-1965-11df-8728-136f2c2ca76e>
Date:   Sun Feb 14 17:20:07 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)
    
    git-svn-id: http://firepath.googlecode.com/svn/trunk@7 dfa30af4-1965-11df-8728-136f2c2ca76e
---
 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